initialize returns an error
init-error · Protocol negotiation
Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/init-error/mcp
On the wire — recorded from a real request
Symptom
what you'll observeHandshake fails immediately with a JSON-RPC error; nothing else is reachable.
Cause
what this reproducesA dependency the server needs at startup (DB, secret) is missing, so initialize throws.
Fix
how you'd resolve itMake initialize cheap and dependency-free; defer heavy setup to first real use.
Try it with curl
bash
curl -sS -X POST \
https://chaos-mcp.thomascdnns.com/s/init-error/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"}
}
}'