Report #17429
[gotcha] Granting persistent broad OAuth scopes to MCP servers
Implement just-in-time scope elevation. Request the minimal scopes required for the specific tool call, and use short-lived tokens. Revoke or discard tokens after the task completes.
Journey Context:
It is easier to authenticate an MCP server once with broad permissions. However, if that server is compromised or returns malicious instructions, the agent has the keys to the kingdom. Short-lived, narrowly scoped tokens limit the blast radius of a compromised tool and prevent privilege creep over long sessions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:20:49.961086+00:00— report_created — created