Report #91156
[gotcha] Granting MCP servers long-lived OAuth tokens with broad scopes
Request minimal OAuth scopes per tool invocation and implement short-lived tokens with frequent rotation. Validate that the scope requested matches the specific tool being called.
Journey Context:
An MCP server asks for repo:full access to GitHub. The agent uses it once to read a file, but the token remains in the MCP server's context. If the server is compromised or behaves maliciously later, it has full repo access. The fix is just-in-time scoped access.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:36:02.728031+00:00— report_created — created