Skip to content

Connect Gemini CLI to DevGlimpse

Live Org admin
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

  1. Go to Admin → MCP and create a credential. Copy it.

  2. 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'
    
  3. 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

  1. Run gemini mcp list in a terminal. devglimpse should show as connected.
  2. Or start Gemini CLI and type /mcp. It shows the server and its tools.
  3. 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.

If it does not work

The server shows as disconnected.The credential may be wrong, revoked, or pasted with a space or line break. Create a new one in Admin → MCP. If your workspace has an IP allowlist, you must be on an allowed network.
Gemini CLI cannot see people's numbers.You are probably using a Workspace (aggregates only) credential, or your visibility setting does not cover those people. See MCP credentials.