How Codeg stores MCP configuration
Codeg writes MCP server entries directly into each agent’s native configuration file:| Agent | Config file |
|---|---|
| Claude Code | ~/.claude.json (mcpServers) |
| Codex CLI | ~/.codex/config.toml (mcp_servers) |
| OpenCode | ~/.config/opencode/config.json (mcpServers) |
| Gemini CLI | ~/.gemini/settings.json |
| OpenClaw | ~/.openclaw/openclaw.json |
| Cline | ~/.cline/data/settings/cline_mcp_settings.json |
Adding a server
Scan for locally installed servers
When you open Settings → MCP, Codeg automatically scans your machine for already-configured MCP servers across all supported agents. Any server already present in an agent’s config file appears in the Local tab immediately — no manual steps required. Use the refresh button to rescan after installing a new server outside of Codeg.Install from a marketplace
Codeg connects to two MCP marketplaces:- Official MCP Registry —
registry.modelcontextprotocol.io - Smithery —
smithery.ai
Search for a server
Type a keyword in the search field and press Enter or click the search button. Results show the server name, protocol badges, version, and use count.
Review the server details
Click a result to open its detail panel. You can see the description, homepage link, install options, and the default configuration JSON.
Install the server
Click Install. A dialog appears where you:
- Select the connection protocol (stdio, HTTP, or SSE — Codeg defaults to the lowest-overhead option)
- Fill in required parameters (API keys, tokens, or other values)
- Select which agents should use this server
Codeg requests Smithery and Official Registry servers with a 20-second timeout and retries up to three times on network errors or rate limits before reporting a failure.
Add a server manually
To configure a local server by hand, switch to the Local tab and edit the JSON spec for an existing server, or install from the marketplace and then edit the resulting entry. Astdio server spec looks like this:
- HTTP (Streamable)
- SSE
type field is inferred automatically — if you supply command, it defaults to stdio; if you supply url, it defaults to http.
Managing which agents use a server
Each MCP server has an apps setting — the list of agents that have the server in their config. After installing or selecting a server in the Local tab, you can check or uncheck individual agents to add or remove the server from their config without deleting it entirely. Supported app values:| Value | Agent |
|---|---|
claude_code | Claude Code |
codex | Codex CLI |
gemini | Gemini CLI |
open_claw | OpenClaw |
open_code | OpenCode |
cline | Cline |