Skip to content

Firestore mcp emulator #8664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Firestore mcp emulator #8664

wants to merge 4 commits into from

Conversation

tammam-g
Copy link
Contributor

No description provided.

@@ -149,7 +154,7 @@ export async function getDatabase(
database: string,
allowEmulator: boolean = false,
): Promise<Database> {
const apiClient = allowEmulator ? emuOrProdClient : prodOnlyClient;
const apiClient = getClient(allowEmulator);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(offline discussion)

Not a big fan of the allowEmulator boolean + the env override. Can do a simple refactor to change them to take a apiClient override option.
If the client wants to use emulator, it can override.

import { getFirestoreEmulatorHost } from "./emulator.js";
import { NO_PROJECT_ERROR } from "../../errors.js";

export const commit_document = tool(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's separate it out to a separate PR

@github-project-automation github-project-automation bot moved this to Changes Requested [PR] in [Cloud] Extensions + Functions May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants