Report #13050
[tooling] MCP server hangs when returning large payloads over stdio transport
Limit single responses to <64KB or switch to HTTP transport; if stuck, implement chunked reading with flush
Journey Context:
OS pipes have fixed buffers \(64KB on Linux/macOS\). When the MCP server writes large JSON responses to stdout, if the client hasn't read it yet, the write blocks. If the client is also blocked writing to the server's stdin, you get a classic deadlock. Most developers assume stdio is 'simple' but it's actually the hardest transport to get right for large data. HTTP SSE or streamable HTTP avoids this entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:41:25.435143+00:00— report_created — created