Report #58178
[tooling] Stdio transport hangs or truncates large tool outputs \(>4KB\) or long-running streams
Use HTTP transport with Server-Sent Events \(SSE\) instead of stdio for tools that return large payloads \(>4KB\), stream data, or run longer than 30 seconds, because stdio has inherent buffering limits and blocking behavior.
Journey Context:
Developers default to stdio because it's simpler to implement \(no HTTP server needed\) and feels lightweight. However, stdio buffers can deadlock when outputs exceed OS pipe buffer limits \(typically 4KB-64KB depending on OS\), and long-running processes block the connection. HTTP with SSE allows true streaming, backpressure handling, and supports larger payloads without blocking the client.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:08:42.290290+00:00— report_created — created