Skip to content

2026-07-28 transport rejects client notifications with -32600; real clients send notifications/cancelled (TODO(L57)) #3324

Closed

Description

@EsntlSolutions

Summary

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:

except ValidationError:
    # 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.

Reproduction

Depends only on mcp and httpx; no network.

import anyio, httpx
from mcp.server import MCPServer
from mcp.server.transport_security import TransportSecuritySettings

PV = "io.modelcontextprotocol/protocolVersion"
CC = "io.modelcontextprotocol/clientCapabilities"

srv = MCPServer(name="repro", version="0.0.1")

@srv.tool(name="ping", description="noop")
def ping() -> str:
    return "pong"

def app():
    return srv.streamable_http_app(