Repository navigation
Support server experimental and extension capabilities - #289
EhsanAzish80 wants to merge 4 commits into
Conversation
Clients may advertise experimental capabilities as JSON objects rather than strings. Decode those values using Value so initialization accepts clients such as Codex without rejecting their capability payloads. Expose optional experimental and extensions dictionaries on server capabilities as well, following upstream PR modelcontextprotocol#289. Existing server initializer calls retain their defaults, and nested capability values survive Codable encoding and decoding.
|
Hi @EhsanAzish80, thanks for this PR! I've reviewed it and it looks good to merge. Could you please rebase it onto the latest This pairs with #276 (the client side of the same change); I plan to merge them together so both use If you're no longer able to work on this, no problem: just let us know. If we don't hear back in about two weeks, we may carry the change forward in a new PR, with credit to you. |
77f1275 to
5a7688c
Compare
5a7688c to
dd90085
Compare
|
Hi @EhsanAzish80, thank you for this PR, and for the care you put into the capabilities work! We have just opened the Swift SDK 1.0.0 release (#372, branch Could you check whether 1.0.0 covers your case? If it does, we would suggest closing this PR. If something is still missing, please open a new PR against Thank you again for contributing. We would love to see more from you on the new stack! |
|
Thanks Varun. P2 has both server capability fields as [String: Value]?, which covers this PR. I’ll close #289 and follow the release stack. |
Swift servers can now advertise object-valued experimental capabilities from the 2025-11-25 schema and extension settings from 2026-07-28. Both fields are optional and existing initializer calls keep working. This is part of #234.
The branch is updated to current
mainand includes the Ubuntu CI setup and client-test timing fixes shared with #307.Tests: the initialize JSON and decode round trip passed locally before this update. All six CI jobs passed on
09ae2a5, including Ubuntu tests. AI helped write the test; I ran it.