all scenarios

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
your clientchaos-mcp01initializePOST /s/bad-server-info/mcp200 OK · application/json · 2 ms"jsonrpc""2.0""id"1"result""protocolVersion""2024-11-05""capabilities""tools""serverInfo""chaos-mcp v1""instructions""chaos-mcp scenario: bad-server-info — Malformed serverInfo"02tools/listPOST /s/bad-server-info/mcp200 OK · application/json · 1 ms"jsonrpc""2.0""id"2"result""tools""name""echo""description""Echo back the provided message.""inputSchema""type""object""properties""message""type""string""description""Text to echo"… 40 more lines

Symptom

what you'll observe

Client errors validating the initialize result; serverInfo has the wrong shape.

Cause

what this reproduces

serverInfo sent as a string instead of {name, version}.

Fix

how you'd resolve it

serverInfo 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"

'