Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-webb-ventures-autorouter": {
"command": "npx",
"args": [
"-y",
"autorouter-mcp"
],
"env": {
"AUTOROUTER_CONFIG": "<VALUE>",
"AUTOROUTER_IMPORT": "<VALUE>",
"AUTOROUTER_SELECTOR_MODE": "<VALUE>",
"AUTOROUTER_SELECTOR_MODEL": "<VALUE>",
"AUTOROUTER_HOME": "<VALUE>",
"AUTOROUTER_DYNAMIC": "<VALUE>",
"AUTOROUTER_ACTIVATION": "<VALUE>",
"AUTOROUTER_AUTO_ADOPT": "<VALUE>",
"AUTOROUTER_OAUTH_PORT": "<VALUE>",
"AUTOROUTER_PROMPT_MODE": "<VALUE>",
"AUTOROUTER_ASSUME_HEADLESS": "<VALUE>",
"AUTOROUTER_ALLOW_ADD_SERVER": "<VALUE>",
"AUTOROUTER_EMBEDDINGS_PROVIDER": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-webb-ventures-autorouter": {
"command": "npx",
"args": [
"-y",
"autorouter-mcp"
],
"env": {
"AUTOROUTER_CONFIG": "<VALUE>",
"AUTOROUTER_IMPORT": "<VALUE>",
"AUTOROUTER_SELECTOR_MODE": "<VALUE>",
"AUTOROUTER_SELECTOR_MODEL": "<VALUE>",
"AUTOROUTER_HOME": "<VALUE>",
"AUTOROUTER_DYNAMIC": "<VALUE>",
"AUTOROUTER_ACTIVATION": "<VALUE>",
"AUTOROUTER_AUTO_ADOPT": "<VALUE>",
"AUTOROUTER_OAUTH_PORT": "<VALUE>",
"AUTOROUTER_PROMPT_MODE": "<VALUE>",
"AUTOROUTER_ASSUME_HEADLESS": "<VALUE>",
"AUTOROUTER_ALLOW_ADD_SERVER": "<VALUE>",
"AUTOROUTER_EMBEDDINGS_PROVIDER": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-webb-ventures-autorouter": {
"command": "npx",
"args": [
"-y",
"autorouter-mcp"
],
"env": {
"AUTOROUTER_CONFIG": "<VALUE>",
"AUTOROUTER_IMPORT": "<VALUE>",
"AUTOROUTER_SELECTOR_MODE": "<VALUE>",
"AUTOROUTER_SELECTOR_MODEL": "<VALUE>",
"AUTOROUTER_HOME": "<VALUE>",
"AUTOROUTER_DYNAMIC": "<VALUE>",
"AUTOROUTER_ACTIVATION": "<VALUE>",
"AUTOROUTER_AUTO_ADOPT": "<VALUE>",
"AUTOROUTER_OAUTH_PORT": "<VALUE>",
"AUTOROUTER_PROMPT_MODE": "<VALUE>",
"AUTOROUTER_ASSUME_HEADLESS": "<VALUE>",
"AUTOROUTER_ALLOW_ADD_SERVER": "<VALUE>",
"AUTOROUTER_EMBEDDINGS_PROVIDER": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-webb-ventures-autorouter": {
"command": "npx",
"args": [
"-y",
"autorouter-mcp"
],
"env": {
"AUTOROUTER_CONFIG": "<VALUE>",
"AUTOROUTER_IMPORT": "<VALUE>",
"AUTOROUTER_SELECTOR_MODE": "<VALUE>",
"AUTOROUTER_SELECTOR_MODEL": "<VALUE>",
"AUTOROUTER_HOME": "<VALUE>",
"AUTOROUTER_DYNAMIC": "<VALUE>",
"AUTOROUTER_ACTIVATION": "<VALUE>",
"AUTOROUTER_AUTO_ADOPT": "<VALUE>",
"AUTOROUTER_OAUTH_PORT": "<VALUE>",
"AUTOROUTER_PROMPT_MODE": "<VALUE>",
"AUTOROUTER_ASSUME_HEADLESS": "<VALUE>",
"AUTOROUTER_ALLOW_ADD_SERVER": "<VALUE>",
"AUTOROUTER_EMBEDDINGS_PROVIDER": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-webb-ventures-autorouter": {
"command": "npx",
"args": [
"-y",
"autorouter-mcp"
],
"env": {
"AUTOROUTER_CONFIG": "<VALUE>",
"AUTOROUTER_IMPORT": "<VALUE>",
"AUTOROUTER_SELECTOR_MODE": "<VALUE>",
"AUTOROUTER_SELECTOR_MODEL": "<VALUE>",
"AUTOROUTER_HOME": "<VALUE>",
"AUTOROUTER_DYNAMIC": "<VALUE>",
"AUTOROUTER_ACTIVATION": "<VALUE>",
"AUTOROUTER_AUTO_ADOPT": "<VALUE>",
"AUTOROUTER_OAUTH_PORT": "<VALUE>",
"AUTOROUTER_PROMPT_MODE": "<VALUE>",
"AUTOROUTER_ASSUME_HEADLESS": "<VALUE>",
"AUTOROUTER_ALLOW_ADD_SERVER": "<VALUE>",
"AUTOROUTER_EMBEDDINGS_PROVIDER": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-webb-ventures-autorouter": {
"command": "npx",
"args": [
"-y",
"autorouter-mcp"
],
"env": {
"AUTOROUTER_CONFIG": "<VALUE>",
"AUTOROUTER_IMPORT": "<VALUE>",
"AUTOROUTER_SELECTOR_MODE": "<VALUE>",
"AUTOROUTER_SELECTOR_MODEL": "<VALUE>",
"AUTOROUTER_HOME": "<VALUE>",
"AUTOROUTER_DYNAMIC": "<VALUE>",
"AUTOROUTER_ACTIVATION": "<VALUE>",
"AUTOROUTER_AUTO_ADOPT": "<VALUE>",
"AUTOROUTER_OAUTH_PORT": "<VALUE>",
"AUTOROUTER_PROMPT_MODE": "<VALUE>",
"AUTOROUTER_ASSUME_HEADLESS": "<VALUE>",
"AUTOROUTER_ALLOW_ADD_SERVER": "<VALUE>",
"AUTOROUTER_EMBEDDINGS_PROVIDER": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| AUTOROUTER_CONFIG | No | Path to the autorouter.json configuration file. Overrides default lookup locations. |
| AUTOROUTER_IMPORT | No | Comma-separated list of harness configs to import (e.g., 'claude,codex,cursor,plugins'). Overrides the 'import' setting in config. |
| AUTOROUTER_SELECTOR_MODE | No | Selector backend mode: auto, sampling, cli, api, or off. Overrides selector.mode. |
| AUTOROUTER_SELECTOR_MODEL | No | Model name used by the selector reranker. Overrides selector.model. |
| AUTOROUTER_HOME | No | Redirects every home-relative path for tests and containers. |
| AUTOROUTER_DYNAMIC | No | Override detection of tools/list_changed support: on, off, or auto. |
| AUTOROUTER_ACTIVATION | No | Tool promotion activation mode: eager, lazy, or off. Overrides activation. |
| AUTOROUTER_AUTO_ADOPT | No | Whether to automatically adopt servers added to a harness (true/false). Overrides autoAdopt. |
| AUTOROUTER_OAUTH_PORT | No | Port for the OAuth loopback redirect. Default is 33418. |
| AUTOROUTER_PROMPT_MODE | No | Slash command mode: all, commands, or none. Overrides promptMode. |
| AUTOROUTER_ASSUME_HEADLESS | No | Force headless mode for OAuth login. Set to '1' to force. |
| AUTOROUTER_ALLOW_ADD_SERVER | No | Whether to expose the add_server tool to the model (true/false). Overrides allowAddServer. |
| AUTOROUTER_EMBEDDINGS_PROVIDER | No | Embeddings provider to use (e.g., voyage, openai, none). Overrides embeddings.provider. |