This page covers the most common issues you may encounter when using MCPX and how to resolve each one quickly. If your problem isn’t listed here, check the GitHub Issues page or open a new issue with the output of your failing command.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.
"No .agents/mcp.json found" warning
"No .agents/mcp.json found" warning
mcpx add, mcpx sync, mcpx status, or another command that requires an existing canonical config, but .agents/mcp.json (or ~/.agents/mcp.json for global scope) doesn’t exist yet.Fix: Run the initialization wizard first to create the config file:--dir:Provider shows "desync" in `mcpx status`
Provider shows "desync" in `mcpx status`
.agents/mcp.json was modified — either manually or by a command — but the corresponding provider config file on disk was not regenerated afterward. The file exists but its contents no longer match what MCPX expects.Fix: Regenerate all provider config files from the current canonical config:sync when you run mcpx status again.Provider shows "missing" in `mcpx status`
Provider shows "missing" in `mcpx status`
.agents/mcp.json without running a sync afterward.Fix: Run mcpx sync to create the missing file:created once it has been written.Server name already exists error during `mcpx add`
Server name already exists error during `mcpx add`
.agents/mcp.json. MCPX does not silently overwrite existing entries.Fix: Either choose a different name when prompted, or remove the existing server first:mcpx add my-server again with your updated configuration.OpenAI Codex TOML parse error
OpenAI Codex TOML parse error
.codex/config.toml (or ~/.codex/config.toml) when syncing the OpenAI Codex provider. If the file contains invalid TOML syntax, the parse step fails and MCPX cannot merge the MCP section with the rest of your Codex settings.Fix: Open the file in a text editor and fix the TOML syntax manually before running mcpx sync again. You can use an online TOML validator to identify the offending line.`mcpx` command not found after install
`mcpx` command not found after install
bin directory for your npm prefix, but that directory is not in your shell’s PATH.Fix: Find your npm prefix and add its bin subdirectory to PATH:.bashrc, .zshrc, etc.):source ~/.zshrc (or equivalent) to apply the change.Node.js version error
Node.js version error
nvm:VS Code or IntelliJ providers not appearing after global init
VS Code or IntelliJ providers not appearing after global init
.vscode/mcp.json) and IntelliJ IDEA (.idea/mcp.json) are project-only providers — they do not have a global config path. When you run mcpx init with global scope, these two providers are excluded automatically and will not appear in the provider selection list.Fix: Run mcpx init from your project directory and choose project scope:Env variable values containing secrets are visible in provider config files
Env variable values containing secrets are visible in provider config files
env values from .agents/mcp.json verbatim into every generated provider config file. If you stored a real API key or token as a string value, it will appear in every file MCPX writes — including .mcp.json, .vscode/mcp.json, and others.Tip: Use shell environment variable references in your terminal session rather than storing the literal value in the config. Alternatively, manage secrets with a dedicated secrets tool (e.g. direnv, AWS Secrets Manager, 1Password CLI) and inject them at runtime rather than at config generation time.At minimum, add the generated provider files to .gitignore so they are not committed:`mcpx import` reports "No existing MCP configuration detected"
`mcpx import` reports "No existing MCP configuration detected"
--dir to specify the directory explicitly:mcpx --version), your Node.js version, operating system, and the full output of the failing command with --verbose.