You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add TokenCache support to GoogleTokenVerifier and GoogleProvider #5365
authRelated to authentication (Bearer, JWT, OAuth, WorkOS) for client or server.enhancementImprovement to existing functionality. For issues and smaller PR improvements.
GoogleTokenVerifier and GoogleProvider currently query Google OAuth endpoints (https://oauth2.googleapis.com/tokeninfo and https://openidconnect.googleapis.com/v1/userinfo) on every single incoming MCP request without any caching.
In contrast, GitHubProvider and IntrospectionProvider support token caching via TokenCache with cache_ttl_seconds and max_cache_size.
Under high-frequency tool calling (such as AI agents executing sequences of MCP tool calls), querying Google's endpoints synchronously on every request causes high latency and transient failures / rate limits (401 Unauthorized / connection timeouts).
Adding TokenCache support to GoogleTokenVerifier and exposing cache_ttl_seconds and max_cache_size on GoogleProvider (matching the pattern in GitHubProvider and IntrospectionProvider) allows verified Google access tokens to be cached in-memory up to their expiration (expires_at / cache_ttl_seconds).
authRelated to authentication (Bearer, JWT, OAuth, WorkOS) for client or server.enhancementImprovement to existing functionality. For issues and smaller PR improvements.
Activity
feat(auth): add TokenCache support to GoogleTokenVerifier and GoogleP…