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
2026-07-28 transport rejects client notifications with -32600; real clients send notifications/cancelled (TODO(L57)) #3324
P1Significant bug affecting many users, highly requested featurebugSomething isn't workingspec-2026-07-28Concerns the SDK's implementation of the 2026-07-28 MCP spec revisionv2Affects the v2 line (2.x on main)
On the 2026-07-28 per-request-envelope path, the streamable-HTTP transport rejects any client notification with HTTP 400 and -32600 "Body must be a single JSON-RPC request object". The same notification is accepted with 202 on the handshake era.
mcp/server/_streamable_http_modern.py:349-362 documents this as a deliberate choice, and notes the decision is still open:
exceptValidationError:
# Well-formed JSON that isn't a single request object. The transport# spec permits notification POSTs and gives the server two responses# (202 accept / 4xx cannot-accept; streamable-http §Sending Messages# item 5). The core protocol defines no client→server notifications# over HTTP at 2026-07-28 (cancellation is SSE-stream close), so this# entry takes the cannot-accept branch. TODO(L57): S4 owns the# strict-vs-lenient choice.
I'm not reporting a spec violation — the transport spec permits either branch, and the reasoning above is sound. I'm supplying the empirical input that TODO(L57) is missing: real clients do send notifications on 2026-07-28, so the strict branch produces a steady stream of 400s in production.
Observed in production
A server running mcp==2.0.0 behind an OAuth-protected streamable-HTTP endpoint, serving live Claude-User connector traffic. Within one client session, on 2026-07-28:
Method
Result
server/discover
200
notifications/cancelled
400-32600
tools/list (234 ms later)
200
The client was unaffected — notifications are fire-and-forget, so it carried on and the next request succeeded. The practical cost is observability rather than function: a monitoring rule of the obvious shape ("no 400s on the new revision") fires permanently, and the 400s are indistinguishable by status code from genuine protocol failures.
Summary
On the
2026-07-28per-request-envelope path, the streamable-HTTP transport rejects any client notification with HTTP 400 and-32600 "Body must be a single JSON-RPC request object". The same notification is accepted with202on the handshake era.mcp/server/_streamable_http_modern.py:349-362documents this as a deliberate choice, and notes the decision is still open:I'm not reporting a spec violation — the transport spec permits either branch, and the reasoning above is sound. I'm supplying the empirical input that
TODO(L57)is missing: real clients do send notifications on2026-07-28, so the strict branch produces a steady stream of 400s in production.Observed in production
A server running
mcp==2.0.0behind an OAuth-protected streamable-HTTP endpoint, serving liveClaude-Userconnector traffic. Within one client session, on2026-07-28:server/discovernotifications/cancelled-32600tools/list(234 ms later)The client was unaffected — notifications are fire-and-forget, so it carried on and the next request succeeded. The practical cost is observability rather than function: a monitoring rule of the obvious shape ("no 400s on the new revision") fires permanently, and the 400s are indistinguishable by status code from genuine protocol failures.
Reproduction
Depends only on
mcpandhttpx; no network.