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
mcp test fix
Ishaan Jafferc3f150b13d69
diff --git a/tests/mcp_tests/test_mcp_server.py b/tests/mcp_tests/test_mcp_server.pyindex 90ee80ad4bd..3b3813a9e0e 100644--- a/tests/mcp_tests/test_mcp_server.py+++ b/tests/mcp_tests/test_mcp_server.py@@ -729,7 +729,6 @@ async def test_get_tools_from_mcp_servers():from litellm.proxy._experimental.mcp_server.mcp_server_manager import (MCPServer,MCPTransport,- MCPSpecVersion,)# Mock datadiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server.py b/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server.pyindex 9d8f3b0cf6b..8fa9964b1fc 100644--- a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server.py+++ b/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server.py@@ -294,9 +294,9 @@ async def test_concurrent_initialize_session_managers():"""Test that concurrent calls to initialize_session_managers don't cause race conditions."""try:from litellm.proxy._experimental.mcp_server.server import (- initialize_session_managers,- _SESSION_MANAGERS_INITIALIZED,_INITIALIZATION_LOCK,+ _SESSION_MANAGERS_INITIALIZED,+ initialize_session_managers,)except ImportError:pytest.skip("MCP server not available")@@ -374,15 +374,15 @@ async def test_mcp_routing_with_conflicting_alias_and_group_name():conflicts with an access group name (e.g., "group")."""try:+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (+ global_mcp_server_manager,+ )from litellm.proxy._experimental.mcp_server.server import (_get_mcp_servers_in_path,_get_tools_from_mcp_servers,)- from litellm.proxy._experimental.mcp_server.mcp_server_manager import (- global_mcp_server_manager,- )+ from litellm.proxy._types import MCPTransportfrom litellm.types.mcp_server.mcp_server_manager import MCPServer- from litellm.proxy._types import MCPTransport, MCPSpecVersionexcept ImportError:pytest.skip("MCP server not available")