1.9 KiB
1.9 KiB
Gemini CLI Setup
To get the most out of Firebase in the Gemini CLI, follow these steps to install the agent extension and the MCP server.
Recommended: Installing Extensions
The best way to get both the agent skills and the MCP server is via the Gemini extension.
1. Install and Verify Firebase Extension
Check if the extension is already installed before proceeding:
- Check Existing Extensions: Run
gemini extensions list. If the output includesfirebase, the extension is already installed. - Install Extension: If not found, run the following command to install the Firebase agent skills and MCP server:
gemini extensions install https://github.com/firebase/agent-skills - Verify Installation: Run the following checks to confirm installation:
gemini mcp list-> Output should includefirebase-tools.gemini skills list-> Output should includefirebase-basic.
2. Restart and Verify Connection
- Restart Gemini CLI: Instruct the user to restart the Gemini CLI if any new installation occurred. Stop and wait for their confirmation before proceeding.
Alternative: Manual MCP Configuration (Project Scope)
If the user only wants to use the MCP server for the current project:
1. Configure and Verify Firebase MCP Server
- Check Existing Configuration: Run
gemini mcp list. If the output includesfirebase-tools, the MCP server is already configured. - Add the MCP Server: If not found, run the following command to configure the Firebase MCP Server:
gemini mcp add -e IS_GEMINI_CLI_EXTENSION=true firebase npx -y firebase-tools@latest mcp - Verify Configuration: Re-run
gemini mcp listto confirmfirebase-toolsis connected.
2. Restart and Verify Connection
- Restart Gemini CLI: Instruct the user to restart the Gemini CLI. Stop and wait for their confirmation before proceeding.