Skip to main content

1. Install Auggie CLI

npm install -g @augmentcode/auggie@latest

2. Sign in to Augment

auggie login
This will open a browser window for authentication.

3. Configure the MCP server in Gemini CLI

Gemini CLI reads the MCP server configuration from a settings file. You can configure MCP servers at either the user level (applies to all projects) or project level (applies only to that specific project):Configuration file locations:
  • User settings (global):
    • macOS/Linux: ~/.gemini/settings.json
    • Windows: %USERPROFILE%\.gemini\settings.json
  • Project settings (optional): .gemini/settings.json in your project’s root directory
Add the following configuration to your Gemini CLI settings file:
{
  "mcpServers": {
    "augment-context-engine": {
      "command": "auggie",
      "args": ["--mcp", "--mcp-auto-workspace"]
    }
  }
}

4. Test the integration

Prompt the Gemini CLI with:
Prompt: "What is this project? Please use codebase retrieval tool to get the answer."
Gemini CLI should confirm it has access to the codebase-retrieval tool.See MCP Server Mode for more options.