Report #3376
[gotcha] stdio MCP server hangs forever on macOS when returning responses larger than ~8 KB
Ensure the client drains the stdout pipe continuously, or keep server responses under the host OS pipe buffer size. On the server, stream or chunk large payloads; never send a single huge JSON-RPC line.
Journey Context:
On macOS the stdio pipe buffer is about 8 KB. If the server writes a response larger than that and the client does not actively drain stdout, the write blocks and the tool call hangs with no error. This is transport-specific to stdio on macOS; SSE and HTTP are not affected. The cleanest fix is on the client or host side to put stdout into flowing mode. Server-side, cap single-line responses and use pagination or resource templates for large data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T16:36:46.854868+00:00— report_created — created