Skip to content

[MCP] MCP server not auth with Application Default Credentials (ADC) #8671

Closed

Description

@thuanpham582002

Summary

Firebase tools MCP not auth with ADC

Bug Info

  • Affected Tool(s): All tools
  • MCP Client: @modelcontextprotocol/inspector
  • Operating System: Macos 14.7

Steps to Reproduce

  1. Run command: gcloud auth application-default login
  2. Call tools firebase tools mcp: npx @modelcontextprotocol/inspector --cli npx -y firebase-tools@latest experimental:mcp --method tools/call --tool-name firebase_create_project --tool-arg project_id="{{SAMPLE_NAME_HERE}}"

If run tool/list. I got this meta data:

  "_meta": {
    "projectRoot": "{{ dir }}",
    "projectDetected": false,
    "authenticatedUser": null,
    "activeFeatures": [],
    "detectedFeatures": []
  }

Activity

  1. added
    api: mcp
    on May 29, 2025
  2. self-assigned this
    on May 29, 2025
  3. thuanpham582002 commented on May 30, 2025

    @thuanpham582002
    Author

    i saw the issues:
    file application_default_credentials.json return account, email is empty, and has the token.
    so the email extract in is empty | null. so auth is alway fail.
    it work in normal firebase-tools because of it have more type auth is token.
    That mean method auth ADC never work before.

    noroom113@192  ~/.config/gcloud  cat application_default_credentials.json                                                                                                                                                                   
    {
      "account": "",
      "client_id": "xxxx",
      "client_secret": "xxxx",
      "refresh_token": "xxxxx",
      "type": "authorized_user",
      "universe_domain": "googleapis.com"
    }
    

    I think this is bug of google cloud cli.
    https://issuetracker.google.com/issues/262700869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: mcp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions