﻿# LiteLLM 1.108.3 and large MCP tool results over SSE

Exercise MCP results around the reported size boundary and verify end-to-end delivery of the parsed result.

Author: Retrivium team
Updated: 2026-11-09
Canonical URL: https://retrivium.ai/journal/news-litellm-mcp-large-sse-result/
Language: en

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

- [LiteLLM 1.108.3 LTS release](https://github.com/BerriAI/litellm/releases/tag/v1.108.3)
- [MCP transports specification](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports)

## Related reading

- [SSE property tests: one event stream under any byte partition](/journal/provider-sse-fragmentation-property-tests/)
- [Retry a delegated job without duplicating its business effect](/journal/frontier-swarm-retry-idempotency/)
