Skip to content

[MCP] Require project root #8606

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

Merged
merged 1 commit into from
May 15, 2025
Merged

[MCP] Require project root #8606

merged 1 commit into from
May 15, 2025

Conversation

fredzqm
Copy link
Contributor

@fredzqm fredzqm commented May 15, 2025

No description provided.

Copy link
Contributor

@mbleigh mbleigh left a comment

Choose a reason for hiding this comment

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

FWIW I think with my earlier PR today this should basically never happen, but better safe than sorry.

@@ -185,6 +185,9 @@ export class FirebaseMcpServer {

const projectId = await this.getProjectId();
const accountEmail = await this.getAuthenticatedUser();
if (!this.cachedProjectRoot) {
return mcpError("No project root set. Please set the project root before calling tools.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return mcpError("No project root set. Please set the project root before calling tools.");
return mcpError("No project root set. Use the `firebase_update_environment` tool to set a directory or add a `--dir <directory>` option to the Firebase MCP Server command line flags.");

@fredzqm
Copy link
Contributor Author

fredzqm commented May 15, 2025

I think I ran into this after your change got in~ Miew, edge cases.

@fredzqm fredzqm merged commit 2263d68 into master May 15, 2025
49 of 50 checks passed
@github-project-automation github-project-automation bot moved this from Approved [PR] to Done in [Cloud] Extensions + Functions May 15, 2025
kjelko pushed a commit that referenced this pull request May 16, 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