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
chore: remove unused MCP_PROTOCOL_VERSION_HEADER_NAME constant (#17008)
YutaSaitof0b10b854b36
diff --git a/litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py b/litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.pyindex e77ad11fae4..d6df3b76f1a 100644--- a/litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py+++ b/litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py@@ -29,9 +29,6 @@ class MCPRequestHandler:LITELLM_MCP_ACCESS_GROUPS_HEADER_NAME = SpecialHeaders.mcp_access_groups.value- # MCP Protocol Version header- MCP_PROTOCOL_VERSION_HEADER_NAME = "MCP-Protocol-Version"-@staticmethodasync def process_mcp_request(scope: Scope,diff --git a/tests/mcp_tests/test_mcp_server.py b/tests/mcp_tests/test_mcp_server.pyindex a99ef772cf1..eea595a2beb 100644--- a/tests/mcp_tests/test_mcp_server.py+++ b/tests/mcp_tests/test_mcp_server.py@@ -1712,7 +1712,6 @@ async def test_list_tool_rest_api_with_server_specific_auth():"authorization": "Bearer user_token","x-mcp-zapier-authorization": "Bearer zapier_token","x-mcp-slack-authorization": "Bearer slack_token",- "MCP-Protocol-Version": "2025-06-18",}# Create mock user_api_key_dict@@ -1797,7 +1796,6 @@ async def test_list_tool_rest_api_with_default_auth():mock_request.headers = {"authorization": "Bearer user_token","x-mcp-authorization": "Bearer default_token",- "MCP-Protocol-Version": "2025-06-18",}# Create mock user_api_key_dict@@ -1880,7 +1878,6 @@ async def test_list_tool_rest_api_all_servers_with_auth():"authorization": "Bearer user_token","x-mcp-zapier-authorization": "Bearer zapier_token","x-mcp-slack-authorization": "Bearer slack_token",- "MCP-Protocol-Version": "2025-06-18",}# Create mock user_api_key_dict