Skip to content

list_collections fails on Firestore Enterprise Edition with FailedPrecondition (Firestore API data access disabled) #74

@sureshsdba-creator

Description

@sureshsdba-creator

Pre-reqs

What are you trying to do that currently feels hard or impossible?

Description: I am encountering a functional block when using the GeminiCLI extension (Firestore-native MCP Server) with a Firestore Enterprise instance. While the extension successfully initializes and correctly identifies the Project ID, Database ID, and Edition type, it fails specifically when invoking the list_collections tool.

Environment Information:

Project ID: prj-8592e29ef1
Database ID: fstore-ent
Database Edition: Enterprise
Extension/Tool: GeminiCLI (firestore-native MCP)

Steps to Reproduce:

  • Connect to the Firestore Enterprise database using the GeminiCLI.
  • Issue a command to list collections (e.g., "can you show me the list of collection in the database").
  • The list_collections tool is triggered but returns a FailedPrecondition error.

Error Logs:

Text

✓ list_collections (firestore MCP Server) {}

failed to list root collections: rpc error: code = FailedPrecondition desc = Firestore API data access is disabled. Please enable it if you want to access the database through Firestore API.
Additional Context & Analysis: The extension seems to have the necessary permissions to read database metadata (recognizing the ID and edition), but the actual data plane access via the Firestore API is being rejected.

This error typically points to one of the following scenarios in an Enterprise environment:

Request: Could you please clarify if the current extension supports Firestore Enterprise edition features? If it is supported, are there specific configuration requirements or IAM roles (beyond datastore.entities.list) required for Enterprise instances? If not currently supported, please consider this a feature request to enable compatibility for Enterprise-tier databases.

Suggested Solution(s)

No response

Additional Details

No response

Metadata

Metadata

Assignees

Labels

type: feature request'Nice-to-have' improvement, new feature or different behavior or design.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions