Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Discussed on Cursor Cloud Agents bug in OAuth scope handling - #14 by David_at_RentRedi
@mohitjain suggested this root cause and asked for a separate bug report:
I’m opening the forum topic first to describe the issue for others so they can pile on instead of duplicating.
Mohit also provided this workaround, which we were also using instead:
That produces a mcp.json that looks like:
"bigquery": {
"command": "npx",
"args": [
"-y",
"@toolbox-sdk/server",
"--prebuilt",
"bigquery",
"--stdio"
],
"env": {
"BIGQUERY_PROJECT": "[REDACTED]"
}
}
This works but relies on gcloud auth application-default login, which we’ve added to our Agent instructions so we don’t have to struggle with the Agents rediscovering this information.
Steps to Reproduce
Configure one of the Google Cloud MCPs following their Guide doc, for example BigQuery MCP: Configure MCP in an AI application | Google Cloud MCP servers | Google Cloud Documentation
This results in an mcp.json that looks like:
{
"mcpServers": {
"BigQuery OAuth": {
"url": "https://bigquery.googleapis.com/mcp",
"auth": {
"CLIENT_ID": "[REDACTED]",
"CLIENT_SECRET": "[REDACTED]",
"scopes": ["https://www.googleapis.com/auth/bigquery"]
}
}
}
}
Then attempt to use the “BigQuery OAuth” MCP in either a local Cursor session or a Cloud session. The initial discovery and authentication check will pass, but attempts to use the BigQuery tools will fail with Unauthorized.
NOTE: Even attempting to save a mcp.json that contains auth.scopes in Cursor’s Team Config is not supported. It will report as “Saved” but drops the auth.scopes from the config, presumably because there’s no form input for that field.
Expected Behavior
Cursor should prompt for authentication and complete the OAuth dance with Google Cloud in a browser, requesting the defined scopes, not just those advertised in the .well-known location. Subsequent requests with the obtained token should return authorized responses.
Operating System
MacOS
Version Information
Version: 3.11.19
VS Code Extension API: 1.125.0
Commit: bf249e6efb5b097f23d7e21d7283429f0760b740
Date: 2026-07-12T21:39:24.175Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0
Does this stop you from using Cursor
No - Cursor works, but with this issue