`v2`: Errors refactor (ProtocolError, SdkError, OAuthError) by KKonstantinov · Pull Request #1454 · modelcontextprotocol/typescript-sdk
KKonstantinov
changed the title
v2: Errors refactor (ProtocolError, SdkError)v2: Errors refactor (ProtocolError, SdkError, OAuthError)
felixweinberger added a commit that referenced this pull request
Mar 25, 2026Follow-up to #1454. Converts the 6 capability-assertion call sites that were missed to throw SdkError(SdkErrorCode.CapabilityNotSupported, ...) instead of plain Error: - Client.assertCapability() in packages/client/src/client/client.ts - assertToolsCallTaskCapability() in experimental/tasks/helpers.ts (2 throws) - assertClientRequestTaskCapability() in experimental/tasks/helpers.ts (3 throws) Fixes #430 Closes #1329 Co-authored-by: Matteo Gobbo <info@matteogobbo.it>
This was referenced
Mar 26, 2026This was referenced
Mar 30, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters