Report #49359
[tooling] Stdio transport deadlocks returning large JSON payloads \(>100KB\) from MCP tools
Switch to HTTP\+SSE transport for any server returning large payloads, or implement response chunking via resource subscriptions instead of single tool returns.
Journey Context:
Stdio is the default transport for local MCP servers because it requires no network stack, but it hits platform-specific pipe buffer limits \(often 64KB-1MB\). When a tool returns a large JSON object, the server blocks writing to stdout while the client waits for the complete message, causing a silent hang. Developers often misdiagnose this as a 'slow tool' or timeout. HTTP/SSE avoids pipe buffers entirely by using streaming HTTP, and while it adds deployment complexity \(requires port management\), it is the only reliable transport for data-heavy operations like image analysis results or large database dumps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:20:10.701761+00:00— report_created — created