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: add oauth2_flow to NewMCPServerRequest and guard auto-detect with token_url
joereyna377b79afae88
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.pyindex b7ac4212cbd..f4c3a03fb6f 100644--- a/litellm/proxy/_types.py+++ b/litellm/proxy/_types.py@@ -1123,6 +1123,7 @@ class NewMCPServerRequest(LiteLLMPydanticObjectBase):authorization_url: Optional[str] = Nonetoken_url: Optional[str] = Noneregistration_url: Optional[str] = None+ oauth2_flow: Optional[str] = Noneallow_all_keys: bool = Falseavailable_on_public_internet: bool = Trueis_byok: bool = False