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
fix: dead code cleanup in MCP server error handler
Ryan Crabbe26611dd4bd95
diff --git a/litellm/proxy/_experimental/mcp_server/server.py b/litellm/proxy/_experimental/mcp_server/server.pyindex 6d54c3871e5..545d5956bd2 100644--- a/litellm/proxy/_experimental/mcp_server/server.py+++ b/litellm/proxy/_experimental/mcp_server/server.py@@ -1898,7 +1898,6 @@ if MCP_AVAILABLE:await session_manager.handle_request(scope, receive, send)except Exception as e:- raise everbose_logger.exception(f"Error handling MCP request: {e}")# Instead of re-raising, try to send a graceful error responsetry: