-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
api: mcpFirebase MCP ServerFirebase MCP Server
Description
[REQUIRED] Environment info
firebase-tools:
15.1.0
Platform:
macOS
[REQUIRED] Test case
Run Firebase MCP with credentials that belong to Project B, while the local default Firebase CLI context points to Project A.
GOOGLE_APPLICATION_CREDENTIALS=/path/to/project-b-service-account.json \
firebase mcp --dir /path/to/repo --only auth,firestoreIn my case, MCP initialization checks billing during startup and uses the default/local project context instead of the project associated with provided credentials.
[REQUIRED] Steps to reproduce
- Have a local Firebase CLI context/default project set to Project A.
- Use a service account in
GOOGLE_APPLICATION_CREDENTIALSfor Project B. - Start MCP:
GOOGLE_APPLICATION_CREDENTIALS=/path/to/project-b-service-account.json \ firebase mcp --dir /path/to/repo --only auth,firestore
- Connect from MCP client (which triggers MCP init / tools listing).
- Observe that startup performs billing validation against Project A (default context), not Project B from credentials, and initialization fails.
[REQUIRED] Expected behavior
- MCP startup should resolve project context from explicitly provided credentials, or
- MCP should support an explicit project override flag for startup checks (for example
--projectbehavior guaranteed for init/billing checks), or - MCP should defer billing checks until a project-scoped tool call is executed.
[REQUIRED] Actual behavior
MCP initialization fails because billing is checked at init time against the default/local project context rather than the project tied to the provided credentials.
Additional context
There is a related issue about credential precedence (#9870), but this report is specifically about MCP startup-time billing checks using the wrong project context and preventing the MCP server from initializing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: mcpFirebase MCP ServerFirebase MCP Server