The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Apply suggestion from @greptile-apps[bot]
Mateo Wang9b6c7c8bf0e2
diff --git a/litellm/proxy/_experimental/mcp_server/rest_endpoints.py b/litellm/proxy/_experimental/mcp_server/rest_endpoints.pyindex 63badc6f703..31252479445 100644--- a/litellm/proxy/_experimental/mcp_server/rest_endpoints.py+++ b/litellm/proxy/_experimental/mcp_server/rest_endpoints.py@@ -1408,7 +1408,7 @@ if MCP_AVAILABLE:raiseexcept BaseException as e:effective_timeout: Final = (- min(request.timeout or MCP_CLIENT_TIMEOUT, timeout_seconds)+ min(request.timeout if request.timeout is not None else MCP_CLIENT_TIMEOUT, timeout_seconds)if any(isinstance(cause, McpError) and _as_read_timeout(cause) is not Nonefor cause in iter_exception_tree(e)