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(mcp): restore unrelated exception formatting
yassin22e3fcba54c2
diff --git a/litellm/proxy/management_endpoints/mcp_management_endpoints.py b/litellm/proxy/management_endpoints/mcp_management_endpoints.pyindex 109030a2df5..fd6294fd77e 100644--- a/litellm/proxy/management_endpoints/mcp_management_endpoints.py+++ b/litellm/proxy/management_endpoints/mcp_management_endpoints.py@@ -259,7 +259,7 @@ if MCP_AVAILABLE:if normalize_upstream_header_name(raw) is None:raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST,- detail={ # mutable-ok: FastAPI exception detail requires a JSON-serializable dictionary+ detail={"error": (f"Invalid upstream_token_header {raw!r}: must be a valid HTTP header name ""(RFC 7230 token, e.g. 'esb-oauth')"