You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcp: streamable server requires Mcp-Method on notifications, which the 2026-07-28 spec does not #1503
I searched the existing issues, and this has not been reported before.
This is a real problem that I ran into myself, using the latest release of the SDK.
I ran into it in a production system, not in a toy example, a benchmark, or an automated or AI-driven scan of the code.
I (a human) examined the relevant SDK code, and wrote or reviewed every line of this report. It is not unreviewed AI output.
This report is brief and concise, and sticks to the facts needed to understand the problem.
What happened?
A stateless Streamable HTTP server rejects client notifications that omit Mcp-Method with 400 / -32020 "missing required Mcp-Method header". Claude Code 2.1.316 to 2.1.318 sends notifications on protocol 2026-07-28 with MCP-Protocol-Version but without Mcp-Method.
validateMcpHeaders applies the presence check to every *jsonrpc.Request, notifications included.
Expected: notifications pass without Mcp-Method, while a header that is present must still match the body. #1215 made the same exemption for the _meta check.
I'd like to try to fix this :). The patch skips only the presence check for notifications and keeps the mismatch check, with unit and HTTP-level tests.
Drafted with AI assistance; I reviewed the report and the SDK code.
Activity
guglielmo-san commentedon Nov 5, 2026
@toledompm Issue assigned to you, feel free to send the PR
mcp: do not require Mcp-Method on notifications (modelcontextprotocol…