Troubleshooting
If you encounter issues with aix, your first step should always be to run the built-in diagnostic tool:
aix doctorThis command checks for permission issues, syntax errors in configuration files, and invalid MCP server setups.
Common aix doctor Issues
1. Path Permissions (path-permissions)
aix requires read/write access to its own configuration directory and those of your AI assistants.
- Error: “file is not readable”
- Cause:
aixcannot read a configuration file (e.g.,~/.claude/config.json). - Fix: Run
chmod 644 <path>or useaix doctor --fixto attempt an automatic fix.
- Cause:
- Warning: “file is world-writable (security risk)”
- Cause: Your configuration files (which may contain API keys) are accessible by other users on the system.
- Fix: Run
chmod 600 <path>.
2. Configuration Syntax (config-syntax)
aix validates that your JSON and TOML configuration files are well-formed.
- Error: “JSON syntax error at line X”
- Cause: A manual edit introduced a trailing comma, missing quote, or unbalanced brace.
- Fix: Open the file mentioned in the error and correct the syntax. Use a tool like
jqto verify JSON files.
3. MCP Semantics (config-semantics)
Even if a file is valid JSON, the values inside might be invalid for an MCP server.
- Warning: “command not found in PATH”
- Cause: An MCP server is configured to run a command (e.g.,
npx,python) that isn’t installed or isn’t in your system’s PATH. - Fix: Install the missing runtime or use an absolute path to the executable in your
aix mcp addcommand.
- Cause: An MCP server is configured to run a command (e.g.,
- Error: “server has both command and URL configured”
- Cause: Ambiguous transport type.
- Fix: Use either a command (for local stdio) or a URL (for remote SSE), but not both.
Recovering from Bad Configs
If a configuration change breaks your AI assistant, aix provides an automatic safety net.
Using Backups
Before every write operation, aix creates a timestamped backup in ~/.config/aix/backups/.
- List available backups:
aix backup list --platform claude - Restore the latest backup:
aix backup restore --platform claude
Note: Restoring a backup will overwrite your current configuration for that platform.
MCP Server Issues
If an MCP server is “Enabled” in aix but its tools aren’t appearing in your AI assistant:
- Check Logs: Some platforms log MCP startup errors. Check
~/.claude/logs/or the equivalent for your tool. - Test the Command: Try running the MCP command manually in your terminal to see if it starts without errors.
- Inspect with
mcp show:Verify that the environment variables (likeaix mcp show <server-name> --show-secretsGITHUB_TOKEN) are correct.
Still having trouble?
If aix doctor passes but you still have issues:
- Verify you are on the latest version:
aix version. - Check the GitHub Issues for similar problems.
- Run
aix status --verboseto see a detailed overview of all active configurations.