feat(core): auto-negotiation fallback and custom protocol array support#396
Open
anubhav756 wants to merge 1 commit into
Open
feat(core): auto-negotiation fallback and custom protocol array support#396anubhav756 wants to merge 1 commit into
anubhav756 wants to merge 1 commit into
Conversation
09cce7c to
59364c1
Compare
991d611 to
d92afc5
Compare
b2f21ed to
cd5294b
Compare
d92afc5 to
b213139
Compare
cd5294b to
d0f4c59
Compare
b213139 to
01fd05c
Compare
01fd05c to
a0c429f
Compare
d0f4c59 to
b2a948b
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.[Protocol.MCP_v20251125, Protocol.MCP_DRAFT]) when initializing the client. 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.