fix: add UnsupportedCapabilityError to handle capabilities custom exception by gotamm · Pull Request #1329 · modelcontextprotocol/typescript-sdk
added 4 commits
December 20, 2025 12:31
gotamm
marked this pull request as ready for review
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 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