add-mcp and how to resolve them.
Common Issues
Server not loading after installation
Server not loading after installation
Symptoms:
- MCP server appears in config file but doesn’t work
- Agent doesn’t recognize the installed server
- No error messages shown
-
Verify the server URL/package is correct
-
Check configuration file syntax
- Locate your agent’s config file:
- Cursor:
.cursor/mcp.json(project) or~/.cursor/mcp.json(global) - VS Code:
.vscode/mcp.json(project) or~/Library/Application Support/Code/User/mcp.json(global) - Claude Code:
.mcp.json(project) or~/.claude.json(global) - OpenCode:
opencode.json(project) or~/.config/opencode/opencode.json(global)
- Cursor:
- Validate JSON/YAML/TOML syntax using a validator
- Ensure no trailing commas or formatting errors
- Locate your agent’s config file:
-
Verify server name doesn’t conflict
- Check if a server with the same name already exists
- Running
add-mcpagain will overwrite the existing configuration - Use
--nameflag to specify a different name:
-
Restart your coding agent
- Most agents need to be restarted to pick up config changes
- For VS Code/Cursor: Reload window (Cmd/Ctrl + Shift + P → “Reload Window”)
- For Claude Desktop: Completely quit and restart the application
Permission errors during installation
Permission errors during installation
Symptoms:
- Error:
EACCES: permission denied - Error:
EPERM: operation not permitted - Installation fails when writing config files
-
Check write permissions on config directory
-
Fix directory permissions
-
Avoid using sudo
- Don’t run
add-mcpwithsudounless absolutely necessary - If you used
sudopreviously, fix ownership:
- Don’t run
-
Try project-level installation instead
Transport type not supported by agent
Transport type not supported by agent
Symptoms:
- Error: “The following agents don’t support [transport] transport”
- Installation blocked for specific agents
-
Check agent transport compatibility
- Claude Desktop: Only supports
stdio(local servers via config)- Use the app’s Settings → Connectors for remote servers
- All other agents: Support
stdio,http, andsse
- Claude Desktop: Only supports
-
Use correct transport for remote servers
-
Skip incompatible agents with —all flag
- When using
--all, incompatible agents are automatically skipped - You’ll see a warning message but installation continues
- When using
-
Install local servers to all agents
Invalid header format
Invalid header format
Symptoms:
- Error: “Invalid —header value(s)”
- Installation fails with custom headers
-
Use correct header format
-
Add multiple headers
-
Use environment variables in headers
-
Headers only work with remote servers
- If you specify
--headerwith a local package, you’ll see a warning - Headers are ignored for stdio servers
- If you specify
Agent not detected automatically
Agent not detected automatically
Symptoms:
add-mcpdoesn’t detect your installed agent- Prompts to select from all agents instead of showing detected ones
-
Check agent detection paths
-
Use explicit agent flag
-
Create project config directory
-
Use —all flag to install everywhere
Configuration file format errors
Configuration file format errors
Symptoms:
- Agent shows JSON/YAML/TOML parsing errors
- Config file appears corrupted after installation
- Existing servers stop working
-
Validate config file format
-
Back up config before installation
-
Reinstall if config is corrupted
- Delete the corrupted config file
- Run
add-mcpagain to recreate it
-
Check for special characters
- Ensure server URLs don’t contain unescaped special characters
- Use proper JSON string escaping
Verification Steps
After installation, verify everything is working:1. Check Configuration File
mcpServers section:
2. Restart Your Agent
- VS Code/Cursor: Cmd/Ctrl + Shift + P → “Reload Window”
- Claude Desktop: Quit and restart the application
- OpenCode: Restart the CLI session
3. Verify Server Connection
- Check your agent’s MCP server status UI
- For Cursor: Look for MCP server indicator in status bar
- For VS Code: Check Output panel → MCP Servers
- Test a tool from the server to ensure it’s working
Debugging Tips
Enable verbose logging
Enable verbose logging
Check your agent’s logs for detailed error messages:
- VS Code: Help → Toggle Developer Tools → Console tab
- Cursor: View → Output → Select “MCP” from dropdown
- Claude Desktop: View logs at
~/Library/Logs/Claude/
- Server connection failures
- Transport protocol issues
- Authentication/header problems
Test server connectivity
Test server connectivity
For remote servers, test the endpoint:
Verify npm package availability
Verify npm package availability
For local stdio servers:
Check file permissions
Check file permissions
Getting Help
If you’re still experiencing issues:- Check existing GitHub issues: github.com/neondatabase/add-mcp/issues
- Create a new issue with:
- Your operating system
- The exact command you ran
- Complete error message
- Output of
npx add-mcp list-agents - Agent and version you’re using
- Include relevant config files (remove sensitive tokens/URLs)