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: type error
mateo-berri4e827446d263
diff --git a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.pyindex a2f0517f81a..8e473c1cb21 100644--- a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py+++ b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py@@ -2641,12 +2641,12 @@ class MCPServerManager:server_name_from_prefix,) = split_server_prefix_from_name(tool_name)normalised_prefix = normalize_server_name(server_name_from_prefix)- server = prefix_to_server.get(normalised_prefix)- if server is not None and (+ matched_server = prefix_to_server.get(normalised_prefix)+ if matched_server is not None and (original_tool_name in self.tool_name_to_mcp_server_name_mappingor tool_name in self.tool_name_to_mcp_server_name_mapping):- return server+ return matched_serverreturn None