Synopsis
Description
add-server runs an interactive flow: you choose which app config(s) to update, then enter the server name, command, and args. mcpconfig writes the new MCP server to every selected config. Only configs that exist and support adding servers are shown—JSON configs (Claude Desktop, Cursor, Cline, etc.) and Codexconfig.toml. YAML configs (Goose, Continue.dev) are not writable by add-server.
If no writable configs are found, the command shows a message and suggests running list-clients to see which configs exist.
Options
None.Flow
- Select apps — A list of writable configs is shown. Use ↑/↓ to move, Space to toggle each app (or Select all), then Enter to continue. You must select at least one app.
- Server name — Enter a unique key for the MCP server (e.g.
my-mcp-server). - Command — Enter the executable to run (e.g.
npx,python,node). - Arguments — Enter optional args, comma-separated (e.g.
-y,run,my-server). You can leave this empty.
mcpServers; Codex TOML gets an [mcp_servers.<name>] section per the Codex config reference.
Example
Output
- Success — ”✓ Server added to N config(s)” with the name, command, and each config path.
- Error — If writing fails, an error message is shown.
- No configs — “No writable MCP configs found.” with a hint to run list-clients.
See also
- list-clients — List where config files are located.
- list-servers — List MCP servers from found configs.
- Supported apps — Which configs are writable (JSON and Codex TOML).