Report #58381
[tooling] Choosing between stdio and HTTP transport for MCP servers with long-running operations
Use stdio for local CLI-heavy tools with fast execution \(<30s\); use HTTP with Server-Sent Events \(SSE\) for long-running operations, remote services, or anything exceeding stdio timeout limits. Implement heartbeat checks for HTTP to detect zombie connections.
Journey Context:
Many developers default to stdio because it feels simpler \(no network stack\), but MCP clients typically enforce a 30-second timeout on stdio transports. When a tool calls a long LLM chain or a heavy data processing job, the stdio pipe breaks. HTTP SSE allows streaming progress updates and handles indefinite runtimes. The tradeoff is added operational complexity \(port management, auth\), but for production agent systems, HTTP is the only robust choice for non-instant tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:29:00.208498+00:00— report_created — created