fix: convert remaining capability throws to SdkError (#1761)
Co-authored-by: Matteo Gobbo <info@matteogobbo.it> Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
This commit is contained in:
parent
379392d044
commit
01954e621a
1 changed files with 30 additions and 12 deletions
7
.changeset/finish-sdkerror-capability.md
Normal file
7
.changeset/finish-sdkerror-capability.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'@modelcontextprotocol/core': patch
|
||||
'@modelcontextprotocol/client': patch
|
||||
'@modelcontextprotocol/server': patch
|
||||
---
|
||||
|
||||
Convert remaining capability-assertion throws to `SdkError(SdkErrorCode.CapabilityNotSupported, ...)`. Follow-up to #1454 which missed `Client.assertCapability()`, the task capability helpers in `experimental/tasks/helpers.ts`, and the sampling/elicitation capability checks in `experimental/tasks/server.ts`.
|
||||
Loading…
Reference in a new issue