Skip to content

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]

Update tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server.py

jquinterc3fb5e1ea563
diff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server.py b/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server.py
index 30a917bb225..8996ef1b7e7 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
@@ -30,9 +30,11 @@ def cleanup_mcp_global_state():
)
# Clear before test
global_mcp_server_manager.registry.clear()
+ global_mcp_server_manager.tool_name_to_mcp_server_name_mapping.clear()
yield
# Clear after test
global_mcp_server_manager.registry.clear()
+ global_mcp_server_manager.tool_name_to_mcp_server_name_mapping.clear()
except ImportError:
# MCP not available, skip cleanup
yield