Quick Reference
%{
mcp_servers: [
# Simple format
:tidewave,
# With options
{:tidewave, [port: 5000]},
# Disabled
{:tidewave, [enabled?: false]}
]
}
Server Options
Option | Type | Default | Description |
---|
port | integer | varies | Custom port number |
enabled? | boolean | true | Enable/disable server |
Available Servers
Server | Auto-Install | Description | Link |
---|
:tidewave | Phoenix projects | Phoenix dev tools | tidewave.ai |
Installation Flow
# Step 1: Configure in .claude.exs
# Step 2: Run install to sync
mix claude.install
# Creates/updates .mcp.json
Generated .mcp.json
{
"mcpServers": {
"tidewave": {
"command": "npx",
"args": ["-y", "@bradleygolden/mcp-server-tidewave"],
"env": {
"PORT": "4000"
}
}
}
}
Phoenix Auto-Configuration
# Automatically added when Phoenix detected:
%{
mcp_servers: [:tidewave]
}
Custom Port Configuration
# Development
{:tidewave, [port: 4000]}
# Staging
{:tidewave, [port: 4001]}
# Local testing
{:tidewave, [port: 5000]}
Disable Without Removing
# Temporarily disable
{:tidewave, [enabled?: false]}
# Re-enable later
{:tidewave, [enabled?: true]} # or just :tidewave
Manual .mcp.json
If you need custom MCP servers not managed by Claude:
{
"mcpServers": {
"custom-server": {
"command": "node",
"args": ["path/to/server.js"],
"env": {
"API_KEY": "secret"
}
}
}
}
Troubleshooting
Issue | Solution |
---|
Server not starting | Check port availability |
Port conflict | Use custom port option |
Server not found | Check .mcp.json exists |
Changes not applied | Run mix claude.install |
Port Defaults
Project Type | Default Port |
---|
Phoenix | 4000 |
LiveView | 4000 |
Custom Phoenix | From config/dev.exs |
Environment Variables
MCP servers receive these env vars:
# From .mcp.json
"env": {
"PORT": "4000", # Server port
"PROJECT_DIR": "/path/to/project"
}