From a97c62a9436550d2a88b0628cd88a9fff4feecc0 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Thu, 9 Apr 2026 17:41:42 -0700 Subject: [PATCH] feat(types): add token_response_metadata to MCPOAuthUserCredentialRequest --- litellm/proxy/_types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index f9185a9bd8c..f03528c82cd 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -1332,6 +1332,9 @@ class MCPOAuthUserCredentialRequest(LiteLLMPydanticObjectBase): refresh_token: Optional[str] = None expires_in: Optional[int] = None # seconds until expiry scopes: Optional[List[str]] = None + # Extra fields from the token response (e.g. Slack's enterprise_id, team_id). + # These are checked against the server's token_validation rules. + token_response_metadata: Optional[Dict[str, Any]] = None class MCPOAuthUserCredentialStatus(LiteLLMPydanticObjectBase):