Malformed serverInfo
bad-server-info · Protocol negotiation
Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/bad-server-info/mcp
On the wire — recorded from a real request
Symptom
what you'll observeClient errors validating the initialize result; serverInfo has the wrong shape.
Cause
what this reproducesserverInfo sent as a string instead of {name, version}.
Fix
how you'd resolve itserverInfo must be an object with string name and version fields.
Try it with curl
bash
curl -sS -X POST \
https://chaos-mcp.thomascdnns.com/s/bad-server-info/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"}
}
}'