Skip to content

[MCP] Crashlytics tools 403 "requires a quota project": client never sends x-goog-user-project #11545

Open

Description

@nilvng

Summary

All Crashlytics MCP tools fail with HTTP 403 ("firebasecrashlytics.googleapis.com API requires a quota project") when authenticated with user credentials. The Crashlytics client never sends x-goog-user-project: src/apiv2.ts (~L366-370) adds it only when env var GOOGLE_CLOUD_QUOTA_PROJECT is set, and CRASHLYTICS_API_CLIENT (src/crashlytics/utils.ts) doesn't set it. ADC's quota_project_id and the project number parsed from appId are ignored.

Expected: default the header to the project number from appId (parseProjectNumber) or ADC's quota_project_id.

Workaround (untested): set GOOGLE_CLOUD_QUOTA_PROJECT=<project> for the MCP server process.

Bug Info

  • Affected Tool(s): crashlytics_get_issue, crashlytics_list_events
  • MCP Client: Claude Code (Firebase plugin)
  • Operating System: macOS

Steps to Reproduce

  1. Authenticate with user credentials (firebase_login), ADC without quota project.
  2. Call crashlytics_get_issue with any valid appId + issueId.
  3. 403 as above. Running gcloud auth application-default set-quota-project <project>, reconnecting the server, and re-login don't change it.
  4. Same endpoint via curl with an ADC token and x-goog-user-project: <project> succeeds.

Activity

  1. added
    api: mcp
    on Nov 18, 2026
  2. aalej commented on Nov 18, 2026

    @aalej
    Contributor

    Thanks for reporting this and for sharing your observations, @nilvng! I was able to reproduce the issue, I used the credentials from gcloud auth application-default login. I think your observations are correct. Since x-goog-user-project header isn't being added, request made using ADC as authentication will encounter that quota error.

    Also, thanks @yeegz for taking the initiative in opening up a PR #11547 for this! I'll mark this as reproducible and raise this to our engineering team so they can take a look.

    While we get this fixed, you should be able to workaround this issue by setting the GOOGLE_CLOUD_QUOTA_PROJECT env variable in your mcp servers config

          "env": {
            "GOOGLE_CLOUD_QUOTA_PROJECT": "PROJECT_ID"
          },
    
  3. added a commit that references this issue on Nov 19, 2026
    bb4757d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions