Report #56397
[tooling] MCP tool hangs or deadlocks returning large output \(>64KB\) over stdio transport
Switch to HTTP\+SSE transport; stdio hits OS pipe buffer limits \(64KB on Linux/Mac\) causing write blocking
Journey Context:
stdio uses anonymous pipes with fixed kernel buffers. When a tool outputs large JSON \(e.g., database dump\), the server blocks writing to the pipe until the client reads, but the client is waiting for the full response, causing a deadlock. HTTP\+SSE uses streaming HTTP connections without buffer limits and supports Server-Sent Events for real-time progress, avoiding this entirely. This is essential for file ingestion or log analysis tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:09:20.604110+00:00— report_created — created