Connect Gemini CLI to DevGlimpse
- Needs
- An MCP credential
- Settings file
- ~/.gemini/settings.json
How do you let Gemini CLI read your delivery metrics?
You add DevGlimpse to Gemini CLI as a remote MCP server. You need an MCP credential first. Unlike the Claude Code and Codex tabs in Admin → MCP, nothing is filled in for you here: you paste the credential yourself.
Connect
-
Go to Admin → MCP and create a credential. Copy it.
-
Run this once in a terminal. Replace
<your-mcp-credential>with the credential:gemini mcp add --transport http --scope user \ --header 'Authorization: Bearer <your-mcp-credential>' \ devglimpse 'https://api.devglimpse.com/mcp' -
Start Gemini CLI.
Keep --scope user. Without it, Gemini CLI saves the server in the current project’s .gemini/settings.json, where the credential could be committed by mistake.
Keep the credential private
With --scope user, Gemini CLI stores the credential in ~/.gemini/settings.json. Keep that file private and never commit it.
If you prefer to edit the file by hand, the entry is:
{
"mcpServers": {
"devglimpse": {
"httpUrl": "https://api.devglimpse.com/mcp",
"headers": {
"Authorization": "Bearer <your-mcp-credential>"
}
}
}
}
Use httpUrl, not url. In Gemini CLI, url means the older SSE transport.
Check that it works
- Run
gemini mcp listin a terminal. devglimpse should show as connected. - Or start Gemini CLI and type
/mcp. It shows the server and its tools. - Ask: “Which team merged the most PRs in the last 30 days?”
If it works, you will see Gemini CLI call a DevGlimpse tool, such as team_metrics. More ideas are on the examples page.
Change or remove it
- To use a new credential, remove the old entry from
~/.gemini/settings.json, then run the command again with the new credential. - To cut off access for good, revoke the credential in Admin → MCP. Gemini CLI is turned away on its next call.