From 377b79afae88aee52574c41334f8cd1a8b2d9be3 Mon Sep 17 00:00:00 2001 From: joereyna Date: Thu, 12 Mar 2026 18:21:19 -0700 Subject: [PATCH] fix: add oauth2_flow to NewMCPServerRequest and guard auto-detect with token_url --- litellm/proxy/_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index b7ac4212cbd..f4c3a03fb6f 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -1123,6 +1123,7 @@ class NewMCPServerRequest(LiteLLMPydanticObjectBase): authorization_url: Optional[str] = None token_url: Optional[str] = None registration_url: Optional[str] = None + oauth2_flow: Optional[str] = None allow_all_keys: bool = False available_on_public_internet: bool = True is_byok: bool = False