Skip to content

feat(mcp): accept the 2025-11-25 handshake too, so shipping clients connect - #36

Merged
bahadirarda merged 1 commit into
mainfrom
feat/mcp-back-compat
Jul 30, 2026
Merged

feat(mcp): accept the 2025-11-25 handshake too, so shipping clients connect#36
bahadirarda merged 1 commit into
mainfrom
feat/mcp-back-compat

Conversation

@bahadirarda

Copy link
Copy Markdown
Contributor

The endpoint was strict 2026-07-28 only, which no released MCP client speaks yet - every current client opens with the 2025-11-25 initialize handshake and was refused, so nothing could connect. This serves BOTH revisions from one handler: a request that DECLARES 2026-07-28 gets the strict rules (server/discover, per-request _meta, header mirroring); anything else is a legacy 2025-11-25 client (initialize handshake, no _meta, no mirroring). The 2026-07-28 security property (header/body agreement) is never relaxed for a request that declares that version. Health gate adds a legacy-initialize probe + keeps the modern reject() tests; conformance 23/23; adversarial review found no mirroring bypass and confirmed the gate catches a regression either way.

@bahadirarda
bahadirarda merged commit 6de921e into main Jul 30, 2026
5 checks passed
@bahadirarda
bahadirarda deleted the feat/mcp-back-compat branch July 30, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant