From 37c75ff43bd4d6cb998489ad436c8983bc386d5c Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Wed, 10 Jun 2026 17:17:07 +0000 Subject: [PATCH] make MCP event store bounds plain constants The documentation CI check requires every os.getenv key to be documented in the litellm-docs config_settings reference; the event store bounds don't need to be operator-tunable, so drop the env lookups instead --- litellm/constants.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/litellm/constants.py b/litellm/constants.py index fe376ff0e97..7865ac2261a 100644 --- a/litellm/constants.py +++ b/litellm/constants.py @@ -146,12 +146,8 @@ MCP_PER_USER_TOKEN_EXPIRY_BUFFER_SECONDS = int( # Bounds for the in-memory Streamable HTTP event store backing MCP session # resumability (Last-Event-ID replay). -MCP_EVENT_STORE_MAX_STREAMS = int( - os.getenv("LITELLM_MCP_EVENT_STORE_MAX_STREAMS", "1000") -) -MCP_EVENT_STORE_MAX_EVENTS_PER_STREAM = int( - os.getenv("LITELLM_MCP_EVENT_STORE_MAX_EVENTS_PER_STREAM", "100") -) +MCP_EVENT_STORE_MAX_STREAMS = 1000 +MCP_EVENT_STORE_MAX_EVENTS_PER_STREAM = 100 # MCP timeout defaults (seconds). Override via env vars for slow/custom MCP servers. MCP_CLIENT_TIMEOUT = float(os.getenv("LITELLM_MCP_CLIENT_TIMEOUT", "60.0"))