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 code quality
Ishaan Jafffb3a67ba8d14
diff --git a/litellm/proxy/_experimental/mcp_server/server.py b/litellm/proxy/_experimental/mcp_server/server.pyindex 4ad3580a7e7..bd050516c74 100644--- a/litellm/proxy/_experimental/mcp_server/server.py+++ b/litellm/proxy/_experimental/mcp_server/server.py@@ -3,7 +3,6 @@ LiteLLM MCP Server Routes"""import asyncio-import loggingfrom typing import Any, Dict, List, Unionfrom anyio import BrokenResourceError@@ -17,7 +16,7 @@ from litellm._logging import verbose_logger# "mcp" requires python 3.10 or higher, but several litellm users use python 3.8# We're making this conditional import to avoid breaking users who use python 3.8.try:- import mcp+ from mcp.server import ServerMCP_AVAILABLE = Trueexcept ImportError as e: