Report #15852
[tooling] MCP server over stdio hangs indefinitely when tool outputs large results or runs for extended duration
Switch to SSE \(Server-Sent Events\) HTTP transport for tools exceeding ~1MB output or 30s duration, or implement chunked reading in stdio client
Journey Context:
stdio uses OS pipe buffers \(typically 4KB-64KB\). If the server writes to stdout without the client reading, the buffer fills and the server blocks. For long-running operations \(DB migrations, log streaming\), this deadlocks. SSE streams handle backpressure properly. Most tutorials default to stdio because it's 'simpler,' but it's wrong for production long-running tasks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:14:28.942913+00:00— report_created — created