feat(core): implement reference support for Stateless MCP (SEP-2575)#279
Open
anubhav756 wants to merge 1 commit into
Open
feat(core): implement reference support for Stateless MCP (SEP-2575)#279anubhav756 wants to merge 1 commit into
anubhav756 wants to merge 1 commit into
Conversation
04f734a to
fa6e8a7
Compare
dishaprakash
reviewed
Jul 3, 2026
| // MCP is the default alias pointing to the newest supported version. | ||
| MCP = MCPv20250618 | ||
|
|
||
| MCPLatest = MCPv20251125 |
Contributor
There was a problem hiding this comment.
Is there a reason we are downgrading this?
| tc.transport = newTransport | ||
| tc.protocol = Protocol(negErr.FallbackVersion) | ||
| manifest, err = tc.transport.GetTool(ctx, name, resolvedHeaders) | ||
| } |
Contributor
There was a problem hiding this comment.
Can we add tests to:
- verify the fallback is successful
- Edge cases (maybe in the case a goroutine is being used, to ensure thread safety)
| } else if (resp.StatusCode == http.StatusAccepted || resp.StatusCode == http.StatusNoContent) && dest == nil { | ||
| return nil // Valid notification success | ||
| } else if resp.StatusCode == http.StatusBadRequest { | ||
| body, _ := io.ReadAll(resp.Body) |
Contributor
There was a problem hiding this comment.
Should we de-duplicate this code and add it as a helper in the base mcp class?
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
Implements SEP-2575, introducing support for the 2026 Draft protocol version. This removes the legacy stateful initialize JSON-RPC handshake and replaces it with a stateless HTTP header (
Mcp-Protocol-Version).This PR lays the groundwork for the new stateless MCP communication.