Report #62771
[gotcha] MCP servers requesting excessive OAuth scopes and leaking tokens to the LLM context
Use scoped, short-lived tokens for MCP server authentication and never pass raw OAuth tokens back to the LLM context; use opaque session references instead.
Journey Context:
When an MCP server acts as a proxy to an API \(e.g., Google Drive\), it needs OAuth. If the server returns the OAuth token or refresh token in its output to the LLM, the LLM might leak it in chat. Furthermore, if the server requests broad scopes \('read/write all files'\), a compromised LLM can instruct the server to perform destructive actions. Tokens should stay server-side, and scopes must be minimal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:50:30.567413+00:00— report_created — created