not-json-rpc · Transport & framing
Client says 'invalid response' / missing jsonrpc field, though the body parses as JSON.
Server returns its own REST-style envelope and forgot the JSON-RPC 2.0 wrapper.
Wrap every response in {"jsonrpc":"2.0","id":<id>,"result":...}.
curl -sS -X POST \
https://chaos-mcp.thomascdnns.com/s/not-json-rpc/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"}
}
}'