By the end of this page you will have a workingDocumentation 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.
.agents/mcp.json file in your project, and MCPX will have generated the correct config file for every AI provider you selected. The whole process takes under five minutes and requires no manual JSON editing — the interactive wizard handles everything.
Install MCPX
Install the CLI globally using npm. Node.js 20 or later is required.Verify the installation:
Navigate to your project
Change into the directory you want to configure. MCPX will create
.agents/mcp.json here along with all provider-specific config files.Run the interactive wizard
Start the wizard by running The wizard walks you through five phases:
mcpx (or the equivalent mcpx init):- Detection — MCPX scans your project for existing MCP config files from any supported provider.
- Import offer — If existing configs are found, MCPX offers to import their server definitions into the new canonical file so you don’t lose your current setup.
- Add servers — If no servers were imported in the previous step, an interactive prompt lets you define new MCP servers one by one, specifying the transport (
stdioorhttp), command or URL, arguments, environment variables, and headers. - Select providers — Choose which AI CLI tools you use. MCPX will generate a config file for each selected provider.
- Generate — MCPX writes
.agents/mcp.json(or~/.agents/mcp.json) and creates all provider config files in the correct locations.
Verify with mcpx status
After the wizard completes, check that every provider config was written
successfully:You will see output similar to:
Example canonical config
After completing the wizard your.agents/mcp.json will look similar to this. The file uses the schema defined by McpConfigFileSchema — version, providers, and servers are the three top-level keys.
enabled and transport. For stdio transport the command field is required; for http transport the url field is required. All other fields (args, env, headers) are optional.
If you edit
.agents/mcp.json directly — to change an environment variable,
toggle a server, or add a new provider — run mcpx sync afterwards to
regenerate all provider config files from the updated canonical source.Next steps
- Read the canonical format reference for a full description of every field.
- Explore provider-specific details to understand how MCPX translates your config for each AI tool.
- See all available commands in the
mcpx initreference.