Skip to content

feat: add flag to enable draft specs#3530

Open
Yuan325 wants to merge 2 commits into
mcp-v202606from
optin-flag
Open

feat: add flag to enable draft specs#3530
Yuan325 wants to merge 2 commits into
mcp-v202606from
optin-flag

Conversation

@Yuan325

@Yuan325 Yuan325 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Add a flag to allow user to opt in to draft specs.

@Yuan325 Yuan325 requested a review from a team as a code owner June 25, 2026 23:19

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new --enable-draft-specs CLI flag to allow users to opt-in and test upcoming draft MCP specifications, updating the server configuration, documentation, and message processing logic accordingly. It also removes the unused VerifyProtocolVersion function. The reviewer noted that if a client proposes the draft version while draft specs are disabled, the server currently fails initialization rather than negotiating down to the latest supported stable version, and suggested a fix to handle this gracefully.

Comment thread internal/server/mcp.go
Comment thread docs/en/documentation/introduction/_index.md
Comment thread docs/en/documentation/introduction/_index.md
@Yuan325 Yuan325 added the release candidate Use label to signal PR should be included in the next release. label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release candidate Use label to signal PR should be included in the next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants