Report #54921
[tooling] stdio transport buffer overflow when returning large files from MCP server
Switch to HTTP/SSE transport for payloads >1MB, or implement cursor-based pagination in tool responses; never stream base64 images through stdio.
Journey Context:
stdio transports inherit OS pipe buffer limits \(~1MB on Linux/macOS, smaller on Windows\). When tools return large codebases or images as base64, they hit 'maxBuffer exceeded' errors that crash the server. HTTP/SSE transport streams data without process buffer constraints. The spec-compliant fix is pagination: return a subset with a 'cursor' field, letting the client request more data via subsequent calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:40:50.425505+00:00— report_created — created