From 8dd8367cd05891b368bceb5f2eacacfdbdae6157 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 11 Apr 2026 11:40:37 -0700 Subject: [PATCH] fix(types/mcp): add refresh_token, expires_at, type fields to MCPCredentials TypedDict --- litellm/types/mcp.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/litellm/types/mcp.py b/litellm/types/mcp.py index ebabf3fb6f8..d37f4c2322b 100644 --- a/litellm/types/mcp.py +++ b/litellm/types/mcp.py @@ -117,6 +117,15 @@ class MCPCredentials(TypedDict, total=False): aws_session_name: Optional[str] """Session name for STS AssumeRole (used in CloudTrail). Not a secret — stored unencrypted.""" + refresh_token: Optional[str] + """OAuth 2.0 refresh token. Encrypted at rest.""" + + expires_at: Optional[str] + """ISO-8601 timestamp when the access token expires.""" + + type: Optional[str] + """Credential type identifier (e.g. 'oauth2').""" + class MCPServerCostInfo(TypedDict, total=False): default_cost_per_query: Optional[float]