all scenarios

Tool never returns

tool-never-returns · Tools — execution

Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/tool-never-returns/mcp
On the wire — recorded from a real request
your clientchaos-mcp01initializePOST /s/tool-never-returns/mcp200 OK · application/json · 9 ms"jsonrpc""2.0""id"1"result""protocolVersion""2024-11-05""capabilities""tools""serverInfo""name""chaos-mcp/tool-never-returns""version""1.0.0""instructions""chaos-mcp scenario: tool-never-returns — Tool never returns"02tools/call hangPOST /s/tool-never-returns/mcp! no response after 3s — socket still open

Symptom

what you'll observe

tools/call hangs forever; the rest of the server is responsive.

Cause

what this reproduces

The tool deadlocks or awaits something that never happens.

Fix

how you'd resolve it

Bound every tool with a context deadline and return a timeout error.

Try it with curl
bash
curl -sS -X POST \
  https://chaos-mcp.thomascdnns.com/s/tool-never-returns/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"

'