Documentation Index
Fetch the complete documentation index at: https://mintlify.com/davidpastorvicente/mcpx-cli/llms.txt
Use this file to discover all available pages before exploring further.
mcpx add and mcpx remove are the day-to-day commands for keeping your server roster up to date. Both operate on the canonical .agents/mcp.json (or ~/.agents/mcp.json) and automatically sync every configured provider file after making a change, so all your AI tools stay in step without a separate mcpx sync call.
mcpx add
mcpx add launches the server wizard to define a new MCP server and appends it to the canonical config.
Arguments
| Argument | Required | Description |
|---|---|---|
[name] | No | Pre-check name: if a server with this name already exists, MCPX warns and exits. The interactive wizard always prompts for the final server name. |
Behavior
- If no
.agents/mcp.jsonexists in the target directory (or global scope), MCPX prints a warning and directs you to runmcpx initfirst. - If
nameis provided and a server with that name already exists in the config, MCPX warns about the duplicate and exits without making changes. - The interactive server wizard collects the server name, transport type (
stdioorhttp), command or URL, arguments, and environment variables. - The new server is saved to the canonical config.
- All configured providers are synced immediately — any provider config file that changed is reported as updated.
Example
.agents/mcp.json and update all provider files.
mcpx remove
mcpx remove permanently deletes a server from the canonical config and syncs all provider files to reflect the removal.
Arguments
| Argument | Required | Description |
|---|---|---|
[name] | No | Name of the server to remove. If omitted, an interactive picker is shown. |
Behavior
- If no
.agents/mcp.jsonexists, MCPX warns and exits. - If no servers are configured, MCPX reports that the list is empty.
- If
nameis not supplied (or does not match an existing server), MCPX presents an interactive list of server names to choose from. - A confirmation prompt is shown before any changes are made.
- After confirmation, the server is removed from the canonical config and all provider files are synced.
Example
github from .agents/mcp.json and updates every provider config file.
Both mcpx add and mcpx remove call the same sync logic used by mcpx sync internally. After either command completes, every provider file listed in the providers array of .agents/mcp.json reflects the latest state.