You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MCP] firebase_update_environment tool can be used to accept Gemini in Firebase ToS (#9143)
* update_environment can be used to accept Gemini ToS
* changelog
* Update src/mcp/tools/core/update_environment.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* m
* m
* m
* m
* m
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
'No active project was found. Use the `firebase_update_environment` tool to set the project directory to an absolute folder location containing a firebase.json config file. Alternatively, change the MCP server config to add [...,"--dir","/absolute/path/to/project/directory"] in its command-line arguments.',
8
+
"This tool requires an active project. Use the `firebase_update_environment` tool to set a project ID",
6
9
"PRECONDITION_FAILED",
7
10
);
8
11
12
+
constGEMINI_TOS_ERROR=mcpError(
13
+
"This tool requires the Gemini in Firebase API, please review the terms of service and accept it using `firebase_update_environment`.\n"+
14
+
"Learn more about Gemini in Firebase and how it uses your data: https://firebase.google.com/docs/gemini-in-firebase#how-gemini-in-firebase-uses-your-data",
15
+
"PRECONDITION_FAILED",
16
+
);
17
+
18
+
/** Enable the Gemini in Firebase API or return an error to accept it */
@@ -15,11 +47,3 @@ export function mcpAuthError(skipADC: boolean): CallToolResult {
15
47
returnmcpError(`The user is not currently logged into the Firebase CLI, which is required to use this tool. Please run the 'firebase_login' tool to log in, or instruct the user to configure [Application Default Credentials][ADC] on their machine.
"Updates Firebase environment config such as project directory, active project, active user account, and more. Use `firebase_get_environment` to see the currently configured environment.",
13
+
"Updates Firebase environment config such as project directory, active project, active user account, accept terms of service, and more. Use `firebase_get_environment` to see the currently configured environment.",
0 commit comments