Report #6295
[gotcha] Large MCP responses crash Stdio transport due to OS buffer overflow
Chunk large responses or switch to Streamable HTTP transport for tools returning large payloads; avoid writing massive JSON strings to stdout in Node.js MCP servers.
Journey Context:
The default MCP transport is Stdio \(stdin/stdout\). Operating systems and Node.js child processes have limits on how much data can be written to stdout before the buffer fills up. If an MCP tool returns a massive string \(e.g., a base64 encoded image or a huge log file\), it can block the stdout pipe and silently hang the server process. Streaming or chunking is required to drain the buffer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:43:36.048038+00:00— report_created — created