docs: SEP-2243 clarifications for x-mcp-header#2772
Open
mikekistler wants to merge 9 commits into
Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tion Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kurtisvg
previously approved these changes
May 22, 2026
tarekgh
reviewed
May 22, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Addresses clarification issues raised during implementation of SEP-2243 (HTTP Standardization), primarily from Go SDK implementers in #2243.
Fixes #2762
Changes
RFC 9110 token rule for header names — Replace loose "ASCII excluding space and colon" constraint with RFC 9110
tcharsyntax and explicit CR/LF prohibition. Adds link to RFC 9110 Section 5.1.Base64 sentinel collision — Require clients to Base64-encode any plain-ASCII value that matches the
=?base64?...?=sentinel pattern, preventing ambiguity.Nested property support — Clarify that
x-mcp-headerMAY be applied to properties at any nesting depth, not only top-level properties.Transport scoping — Scope
x-mcp-headerrejection to Streamable HTTP transport only; clients using other transports (e.g., stdio) MAY ignore annotations entirely.Numeric comparison precision — Add implementation note: numeric fields should be compared numerically (within 1E-9 relative precision) rather than as strings.
Stale/missing schema retry — Add note on client behavior when tool schema is unavailable: send without custom headers, retry after
tools/listif rejected. Also allows pre-loading tool definitions from other sources.Case-sensitive sentinel markers — Clarify that
=?base64?and?=markers are case-sensitive and must appear exactly as shown.Version-gating for intermediaries — Add note that intermediaries enforcing policy on mirrored headers should verify
MCP-Protocol-Versionindicates a version requiring header–body validation, and reject otherwise.