Supported Agents
add-mcp supports 10 coding agents across local and global installation scopes. The CLI automatically detects installed agents and routes configuration to the appropriate location.All Supported Agents
| Agent | Argument | Display Name | Project Support | Global Support |
|---|---|---|---|---|
| Claude Code | claude-code | Claude Code | ✓ | ✓ |
| Claude Desktop | claude-desktop | Claude Desktop | - | ✓ |
| Codex | codex | Codex | ✓ | ✓ |
| Cursor | cursor | Cursor | ✓ | ✓ |
| Gemini CLI | gemini-cli | Gemini CLI | ✓ | ✓ |
| Goose | goose | Goose | - | ✓ |
| GitHub Copilot CLI | github-copilot-cli | GitHub Copilot CLI | ✓ | ✓ |
| OpenCode | opencode | OpenCode | ✓ | ✓ |
| VS Code | vscode | VS Code | ✓ | ✓ |
| Zed | zed | Zed | ✓ | ✓ |
Agent Aliases
add-mcp supports aliases for common agent names:gemini→gemini-cligithub-copilot→vscode
Agent Configuration Details
Claude Code
- Argument:
claude-code - Display Name: Claude Code
- Project Path:
.mcp.json - Global Path:
~/.claude.json - Config Key:
mcpServers - Format: JSON
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
.mcp.json,.claude
Claude Desktop
- Argument:
claude-desktop - Display Name: Claude Desktop
- Project Path: Not supported (global only)
- Global Path:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) - Config Key:
mcpServers - Format: JSON
- Supported Transports: stdio only
- Note: Claude Desktop only supports local (stdio) servers via its config file. Add remote servers through Settings → Connectors in the app instead.
Codex
- Argument:
codex - Display Name: Codex
- Project Path:
.codex/config.toml - Global Path:
~/.codex/config.toml(or$CODEX_HOME/config.toml) - Config Key:
mcp_servers - Format: TOML
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
.codex
Cursor
- Argument:
cursor - Display Name: Cursor
- Project Path:
.cursor/mcp.json - Global Path:
~/.cursor/mcp.json - Config Key:
mcpServers - Format: JSON
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
.cursor
Gemini CLI
- Argument:
gemini-cli(alias:gemini) - Display Name: Gemini CLI
- Project Path:
.gemini/settings.json - Global Path:
~/.gemini/settings.json - Config Key:
mcpServers - Format: JSON
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
.gemini
Goose
- Argument:
goose - Display Name: Goose
- Project Path: Not supported (global only)
- Global Path:
~/.config/goose/config.yaml(Linux/macOS) or%APPDATA%\Block\goose\config\config.yaml(Windows) - Config Key:
extensions - Format: YAML
- Supported Transports: stdio, HTTP, SSE
GitHub Copilot CLI
- Argument:
github-copilot-cli(or alias:github-copilot) - Display Name: GitHub Copilot CLI
- Project Path:
.vscode/mcp.json - Global Path:
~/.copilot/mcp-config.json(or$XDG_CONFIG_HOME/.copilot/mcp-config.json) - Config Key (Global):
mcpServers - Config Key (Local):
servers - Format: JSON
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
.vscode
OpenCode
- Argument:
opencode - Display Name: OpenCode
- Project Path:
opencode.json - Global Path:
~/.config/opencode/opencode.json - Config Key:
mcp - Format: JSON
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
opencode.json,.opencode
VS Code
- Argument:
vscode - Display Name: VS Code
- Project Path:
.vscode/mcp.json - Global Path (macOS):
~/Library/Application Support/Code/User/mcp.json - Global Path (Linux):
~/.config/Code/User/mcp.json(or$XDG_CONFIG_HOME/Code/User/mcp.json) - Global Path (Windows):
%APPDATA%\Code\User\mcp.json - Config Key:
servers - Format: JSON
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
.vscode
Zed
- Argument:
zed - Display Name: Zed
- Project Path:
.zed/settings.json - Global Path (macOS):
~/Library/Application Support/Zed/settings.json - Global Path (Linux):
~/.config/zed/settings.json(or$XDG_CONFIG_HOME/zed/settings.json) - Global Path (Windows):
%APPDATA%\Zed\settings.json - Config Key:
context_servers - Format: JSON
- Supported Transports: stdio, HTTP, SSE
- Project Detection Paths:
.zed
Smart Agent Detection
add-mcp automatically detects agents based on the installation scope:Project Mode (Default)
When you runadd-mcp without the -g flag, it detects project-level configurations:
- Checks for project-level config files (
.cursor/,.vscode/,.mcp.json, etc.) - Detects agents that have configuration present in the current directory
- Pre-selects detected agents for installation
- Shows all project-capable agents for manual selection
detectProjectAgents() in agents.ts:381-397):
Global Mode (-g flag)
When you run add-mcp -g, it detects globally-installed agents:
- Checks for global installation directories
- Detects all agents installed on your system (including global-only agents)
- Pre-selects detected agents for installation
- Shows all agents for manual selection
detectAllGlobalAgents() in agents.ts:399-409):
detectGlobalInstall() function that checks for agent-specific directories or files.
Global-Only Agents
Two agents only support global installation:- Claude Desktop - Global config only, project config not supported
- Goose - Global config only, project config not supported
Specifying Agents
You can target specific agents using the-a or --agent flag:
Related Pages
- Transports - Learn about HTTP, SSE, and stdio transports
- Scopes - Understand project vs global installation