In this article
Exercise MCP results around the reported size boundary and verify end-to-end delivery of the parsed result.
The LiteLLM 1.108.3 LTS notes identify a failure where MCP tool results over 1 MiB ended with an SSE stream error. The patch makes result size a useful upgrade fixture. A small discovery call can succeed while a document or search tool still fails when it returns the first substantial payload.
Use a deterministic large result
Build a local MCP fixture returning harmless structured data and control the serialized size, including escaping and envelope overhead. Run a small payload and variants around the reported boundary. Record the response identifier, the original UTF-8 byte length and a checksum. This exposes truncation that a success status alone can miss.
Separate events from transport chunks
The MCP transport specification describes how messages travel over Streamable HTTP, including SSE where used. The bytes received by a proxy need not align with complete events. Measure what reaches the consumer and verify the final JSON-RPC message corresponds to the original call. Keep framing failures separate from tool-level failures.
Run the actual gateway chain
Repeat the test against the same reverse proxy and timeout configuration used in staging. Inspect buffering, elapsed time and decoded length independently. If a direct call passes but the gateway fails, capture the last observed event on each hop. That narrows the fault to the component that changed the observable stream.
Check the effect of retries
A missing response may prompt a caller to retry even though the tool already executed. In the fixture, count how often the tool actually ran. Use a read-only operation for the size regression. For write tools, review the application’s existing idempotency or reconciliation behavior before enabling automatic retries.
Record the compatibility result
Save the exact patch version and serialized fixture with the deployment record. An upgrade is ready for this path when all expected payloads arrive intact and timeouts remain explainable.
Primary sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.