Report #77307
[tooling] MCP stdio transport hangs or deadlocks with large tool responses
Explicitly set \`maxBuffer: 10\_000\_000\` \(10MB\) in StdioClientTransport options, or switch to HTTP/SSE transport for tools returning >200KB. Never rely on default Node.js spawn buffer \(200KB\).
Journey Context:
Developers default to stdio assuming it's simpler, but hit POSIX pipe buffer limits \(64KB-1MB depending on OS\). Node's child\_process defaults to 200KB maxBuffer, causing silent hangs when tool outputs exceed this—the process waits for the buffer to drain, which never happens. HTTP avoids this entirely by streaming, or you can safely increase the buffer for data-heavy local tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:21:21.892840+00:00— report_created — created