Connect Codex to DevGlimpse
- Needs
- An MCP credential
- Settings file
- ~/.codex/config.toml
How do you let Codex read your delivery metrics?
You add DevGlimpse to Codex as a remote MCP server. The credential stays out of the settings file: Codex reads it from an environment variable. You need an MCP credential first.
Connect
-
Go to Admin → MCP and create a credential. Copy it.
-
Under Configure your assistants, click the Codex tab.
-
Add the settings block to
~/.codex/config.toml:[mcp_servers.devglimpse] url = "https://api.devglimpse.com/mcp" bearer_token_env_var = "DEVGLIMPSE_MCP_KEY" -
Add the credential line to your shell profile (
~/.zshrcor~/.bashrc):export DEVGLIMPSE_MCP_KEY='<your-mcp-credential>' -
Open a new terminal and restart Codex.
Use the text from the page, not these copies. The page has your real address and credential.
The settings block holds no secret, so it is safe to share. The shell line holds the credential. Keep your profile private.
Check that it works
- Run
codex mcp listin a terminal. devglimpse should be in the list. - Open Codex and ask: “Which team merged the most PRs in the last 30 days?”
If it works, you will see Codex call a DevGlimpse tool, such as team_metrics. More ideas are on the examples page.
Change or remove it
- To use a new credential, change the value in your shell profile, open a new terminal and restart Codex.
- To cut off access for good, revoke the credential in Admin → MCP. Codex is turned away on its next call.
If it does not work
Codex says the server is unauthorized.
TheDEVGLIMPSE_MCP_KEY variable is probably empty in the terminal that started Codex. Open a new terminal, run echo "${DEVGLIMPSE_MCP_KEY:+set}", and check it prints set. If the credential was revoked, create a new one.