================================================================================
GEMINI CLI - QUICK SETUP INSTRUCTIONS
================================================================================
You need to edit this 1 file:
GEMINI CLI CONFIG:
Location: C:\Users\preda\.gemini\settings.json
================================================================================
STEP 1: CREATE THE DIRECTORY
================================================================================
Run this in PowerShell:
mkdir -Force $env:USERPROFILE\.gemini
================================================================================
STEP 2: CREATE/EDIT THE FILE
================================================================================
File: C:\Users\preda\.gemini\settings.json
Copy this into the file (replace YOUR-PROJECT-NAME with your actual project):
{
"mcpServers": {
"context-engine": {
"command": "node",
"args": [
"D:\\GitProjects\\context-engine\\dist\\index.js",
"--workspace",
"D:\\GitProjects\\YOUR-PROJECT-NAME",
"--index",
"--watch"
],
"env": {
"AUGMENT_API_TOKEN": "$AUGMENT_API_TOKEN",
"AUGMENT_API_URL": "https://d9.api.augmentcode.com/",
"DEBUG": "true"
},
"timeout": 30000,
"trust": false,
"description": "Context Engine MCP Server"
}
}
}
================================================================================
STEP 3: SET ENVIRONMENT VARIABLES
================================================================================
Option 1 (Recommended): Use auggie login
auggie login
Option 2: Set in PowerShell (temporary)
$env:AUGMENT_API_TOKEN = "your-token-here"
$env:AUGMENT_API_URL = "https://d9.api.augmentcode.com/"
Option 3: Set in System Environment Variables (permanent)
1. Search for "Environment Variables" in Windows
2. Add AUGMENT_API_TOKEN with your token value
3. Add AUGMENT_API_URL with https://d9.api.augmentcode.com/
4. Restart your terminal
================================================================================
STEP 4: VERIFY
================================================================================
Run this command:
gemini mcp list
You should see:
✓ context-engine: command: node ... (stdio) - Connected
Then start Gemini CLI:
gemini
Inside the CLI, run:
/mcp
You should see context-engine listed with available tools.
================================================================================
EXAMPLE: If your project is at D:\Projects\my-website
================================================================================
The configuration would have:
"--workspace",
"D:\\Projects\\my-website",
Note: Use double backslashes (\\) in JSON for Windows paths!
================================================================================
READY-TO-USE FILES
================================================================================
For your convenience, we've created these files:
1. gemini_settings_READY_TO_USE.json
- Full configuration with detailed comments and examples
- Copy this to C:\Users\preda\.gemini\settings.json
2. gemini_settings_MINIMAL.json
- Clean minimal configuration without comments
- Copy this if you prefer a simpler config
3. SETUP_GEMINI_CLI.md
- Complete setup guide with troubleshooting
- Read this for detailed instructions
================================================================================
QUICK COMMANDS
================================================================================
# Install Gemini CLI
npm install -g @google/gemini-cli
# List MCP servers
gemini mcp list
# Start Gemini CLI
gemini
# Start with debug mode
gemini --debug
# Check version
gemini --version
================================================================================
TROUBLESHOOTING
================================================================================
Server won't connect?
1. Check the path: node "D:\GitProjects\context-engine\dist\index.js"
2. Build the server: npm run build
3. Enable debug: gemini --debug
No tools discovered?
1. Test standalone: node dist/index.js --workspace . --index
2. Check server logs for errors
Authentication errors?
1. Run: auggie login
2. Or verify: echo $env:AUGMENT_API_TOKEN
3. Or verify: echo $env:AUGMENT_API_URL
================================================================================
NEED MORE HELP?
================================================================================
See the full documentation:
- SETUP_GEMINI_CLI.md (detailed setup guide)
- README.md (Context Engine documentation)
- TROUBLESHOOTING.md (common issues and solutions)
================================================================================