Skip to content

feat(mcp): Add 'X-Goog-User-Project' billing quota header support to IDE MCP configuration. - #319

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_972697722
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_972697722

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Add 'X-Goog-User-Project' billing quota header support to IDE MCP configuration.

Configure MCP service definitions to inject the 'X-Goog-User-Project' header for remote Google Cloud MCP servers.

Resolves the billing quota project from extension state via CommonStateService. On desktop IDEs, the header is stripped when no explicit billing project is set, allowing quota to fall back cleanly to the shared client quota. In Cloud Shell and Cloud Workstations, it falls back to the current active project. In stdio proxy mode, headers are serialized to X_GOOG_PROXY_HEADERS for mcp_proxy.

…figuration.

Configure MCP service definitions to inject the 'X-Goog-User-Project' header for remote Google Cloud MCP servers.

Resolves the billing quota project from extension state via CommonStateService. On desktop IDEs, the header is stripped when no explicit billing project is set, allowing quota to fall back cleanly to the shared client quota. In Cloud Shell and Cloud Workstations, it falls back to the current active project. In stdio proxy mode, headers are serialized to X_GOOG_PROXY_HEADERS for mcp_proxy.

PiperOrigin-RevId: 972697722
@copybara-service
copybara-service Bot requested review from a team as code owners September 9, 2026 15:00
@github-actions
github-actions Bot requested a review from belluru September 9, 2026 15:01
@arjun37602 arjun37602 changed the title Add 'X-Goog-User-Project' billing quota header support to IDE MCP configuration. Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant