feat(core): auto-negotiation fallback and custom protocol array support#282
Open
anubhav756 wants to merge 1 commit into
Open
feat(core): auto-negotiation fallback and custom protocol array support#282anubhav756 wants to merge 1 commit into
anubhav756 wants to merge 1 commit into
Conversation
f4b5c9e to
af4be3e
Compare
e369643 to
d692d91
Compare
838a1bc to
4276bd6
Compare
d692d91 to
c563d8d
Compare
c563d8d to
ae742d2
Compare
4276bd6 to
13da1cb
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements full auto-negotiation fallback support for the SDK as per SEP-2575 (Stateless MCP).
-32004error during connection initialization, the SDK correctly strips the headers and falls back chronologically.[core.MCP_v20251125, core.MCP_DRAFT]) in theClientConfig. The SDK will intersect these with the server's capabilities and strictly negotiate them in a newest-to-oldest order.This PR no longer contains the dual-server integration test infrastructure, which has been extracted to a separate PR to maintain clean history.