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 - mcp import error
Ishaan Jaff9e363787e70a
diff --git a/litellm/proxy/_experimental/mcp_server/server.py b/litellm/proxy/_experimental/mcp_server/server.pyindex 74148902995..98dfda8eb25 100644--- a/litellm/proxy/_experimental/mcp_server/server.py+++ b/litellm/proxy/_experimental/mcp_server/server.py@@ -21,10 +21,6 @@ from litellm.types.mcp_server.mcp_server_manager import MCPInfofrom litellm.types.utils import StandardLoggingMCPToolCallfrom litellm.utils import client-from litellm.proxy._experimental.mcp_server.auth.litellm_auth_handler import (- MCPAuthenticatedUser,-)-LITELLM_MCP_SERVER_NAME = "litellm-mcp-server"LITELLM_MCP_SERVER_VERSION = "1.0.0"LITELLM_MCP_SERVER_DESCRIPTION = "MCP Server for LiteLLM"@@ -59,6 +55,9 @@ if MCP_AVAILABLE:from mcp.types import TextContent as MCPTextContentfrom mcp.types import Tool as MCPTool+ from litellm.proxy._experimental.mcp_server.auth.litellm_auth_handler import (+ MCPAuthenticatedUser,+ )from litellm.proxy._experimental.mcp_server.mcp_server_manager import (global_mcp_server_manager,)@@ -329,7 +328,7 @@ if MCP_AVAILABLE:mcp_auth_header=mcp_auth_header,)verbose_logger.debug("CALL TOOL RESULT: %s", call_tool_result)- return call_tool_result.content+ return call_tool_result.content # type: ignore[return-value]async def _handle_local_mcp_tool(name: str, arguments: Dict[str, Any]