Rejects the MCP-Protocol-Version header
rejects-version-header · Protocol versioning
Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/rejects-version-header/mcp
On the wire — recorded from a real request
Symptom
what you'll observeModern clients fail immediately: any request carrying an MCP-Protocol-Version header is rejected with HTTP 400. Older clients that omit it work fine.
Cause
what this reproducesAn older/over-strict server validates request headers against an allow-list and treats the (newer) MCP-Protocol-Version header as unexpected.
Fix
how you'd resolve itIgnore unknown headers; never hard-fail on a protocol header you simply don't recognise.
Try it with curl
bash
curl -sS -X POST \
https://chaos-mcp.thomascdnns.com/s/rejects-version-header/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {"name": "curl", "version": "1"}
}
}'