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
test: const
Yuta Saito30c4a381795e
diff --git a/tests/mcp_tests/mcp_server.py b/tests/mcp_tests/mcp_server.pyindex c4daff4ab1c..bc6accbb721 100644--- a/tests/mcp_tests/mcp_server.py+++ b/tests/mcp_tests/mcp_server.py@@ -1,6 +1,4 @@# math_server.py-from __future__ import annotations-import argparseimport osdiff --git a/tests/mcp_tests/test_proxy_mcp_e2e.py b/tests/mcp_tests/test_proxy_mcp_e2e.pyindex b124fabe8b8..2b8cde54710 100644--- a/tests/mcp_tests/test_proxy_mcp_e2e.py+++ b/tests/mcp_tests/test_proxy_mcp_e2e.py@@ -27,10 +27,7 @@ PROJECT_ROOT = Path(__file__).resolve().parents[2]PROXY_START_TIMEOUT = 30[email protected](scope="session")-def proxy_authorization_header() -> str:- """Shared Authorization header value for proxy calls."""- return "Bearer sk-1234"+PROXY_AUTHORIZATION_HEADER = "Bearer sk-1234"@pytest.fixture(scope="session", autouse=True)@@ -153,14 +150,12 @@ def proxy_server_url(class TestProxyMcpSimpleConnections:@pytest.mark.asyncio- async def test_proxy_mcp_stdio_roundtrip(- self, proxy_server_url: str, proxy_authorization_header: str- ) -> None:+ async def test_proxy_mcp_stdio_roundtrip(self, proxy_server_url: str) -> None:async with asyncio.timeout(20):async with streamablehttp_client(url=f"{proxy_server_url}/mcp",headers={- "Authorization": proxy_authorization_header,+ "Authorization": PROXY_AUTHORIZATION_HEADER,"x-mcp-servers": "math_stdio",},) as (read, write, _get_session_id):@@ -179,13 +174,13 @@ class TestProxyMcpSimpleConnections:@pytest.mark.asyncioasync def test_proxy_mcp_streamable_http_roundtrip(- self, proxy_server_url: str, proxy_authorization_header: str+ self, proxy_server_url: str) -> None:async with asyncio.timeout(20):async with streamablehttp_client(url=f"{proxy_server_url}/mcp",headers={- "Authorization": proxy_authorization_header,+ "Authorization": PROXY_AUTHORIZATION_HEADER,"x-mcp-servers": "math_streamable_http",},) as (read, write, _get_session_id):@@ -204,12 +199,12 @@ class TestProxyMcpSimpleConnections:@pytest.mark.asyncioasync def test_proxy_mcp_lists_all_servers_without_header(- self, proxy_server_url: str, proxy_authorization_header: str+ self, proxy_server_url: str) -> None:async with asyncio.timeout(20):async with streamablehttp_client(url=f"{proxy_server_url}/mcp",- headers={"Authorization": proxy_authorization_header},+ headers={"Authorization": PROXY_AUTHORIZATION_HEADER},) as (read, write, _get_session_id):async with ClientSession(read, write) as session:await session.initialize()