C

CLI Bridge MCP

by JoaoBerne · io.github.JoaoBerne/cli-bridge-mcp

An MCP server that bridges AI assistants to other CLI tools, enabling capabilities like large-context reads, vision, file generation, and cross-vendor verification without API keys.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-joaoberne-cli-bridge-mcp": {
      "command": "uvx",
      "args": [
        "cli-bridge-mcp"
      ],
      "env": {
        "CLI_BRIDGE_PROFILE": "<VALUE>",
        "CLI_BRIDGE_TERSE": "<VALUE>",
        "CLI_BRIDGE_CACHE_TTL_S": "<VALUE>",
        "CLI_BRIDGE_LEAN": "<VALUE>",
        "APPLE_FM_SERVE_URL": "<VALUE>",
        "OPENROUTER_API_KEY": "<VALUE>",
        "CLI_BRIDGE_HIDE_HOST": "<VALUE>",
        "CLI_BRIDGE_MAX_DEPTH": "<VALUE>",
        "CLI_BRIDGE_LANES_FILE": "<VALUE>",
        "CLI_BRIDGE_DEFAULT_CWD": "<VALUE>",
        "CLI_BRIDGE_TRACE_FOOTER": "<VALUE>",
        "CLI_BRIDGE_DAILY_CREDIT_CAP": "<VALUE>",
        "CLI_BRIDGE_VERIFY_PLAN_READONLY": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-joaoberne-cli-bridge-mcp": {
      "command": "uvx",
      "args": [
        "cli-bridge-mcp"
      ],
      "env": {
        "CLI_BRIDGE_PROFILE": "<VALUE>",
        "CLI_BRIDGE_TERSE": "<VALUE>",
        "CLI_BRIDGE_CACHE_TTL_S": "<VALUE>",
        "CLI_BRIDGE_LEAN": "<VALUE>",
        "APPLE_FM_SERVE_URL": "<VALUE>",
        "OPENROUTER_API_KEY": "<VALUE>",
        "CLI_BRIDGE_HIDE_HOST": "<VALUE>",
        "CLI_BRIDGE_MAX_DEPTH": "<VALUE>",
        "CLI_BRIDGE_LANES_FILE": "<VALUE>",
        "CLI_BRIDGE_DEFAULT_CWD": "<VALUE>",
        "CLI_BRIDGE_TRACE_FOOTER": "<VALUE>",
        "CLI_BRIDGE_DAILY_CREDIT_CAP": "<VALUE>",
        "CLI_BRIDGE_VERIFY_PLAN_READONLY": "<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
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-joaoberne-cli-bridge-mcp": {
      "command": "uvx",
      "args": [
        "cli-bridge-mcp"
      ],
      "env": {
        "CLI_BRIDGE_PROFILE": "<VALUE>",
        "CLI_BRIDGE_TERSE": "<VALUE>",
        "CLI_BRIDGE_CACHE_TTL_S": "<VALUE>",
        "CLI_BRIDGE_LEAN": "<VALUE>",
        "APPLE_FM_SERVE_URL": "<VALUE>",
        "OPENROUTER_API_KEY": "<VALUE>",
        "CLI_BRIDGE_HIDE_HOST": "<VALUE>",
        "CLI_BRIDGE_MAX_DEPTH": "<VALUE>",
        "CLI_BRIDGE_LANES_FILE": "<VALUE>",
        "CLI_BRIDGE_DEFAULT_CWD": "<VALUE>",
        "CLI_BRIDGE_TRACE_FOOTER": "<VALUE>",
        "CLI_BRIDGE_DAILY_CREDIT_CAP": "<VALUE>",
        "CLI_BRIDGE_VERIFY_PLAN_READONLY": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-joaoberne-cli-bridge-mcp": {
      "command": "uvx",
      "args": [
        "cli-bridge-mcp"
      ],
      "env": {
        "CLI_BRIDGE_PROFILE": "<VALUE>",
        "CLI_BRIDGE_TERSE": "<VALUE>",
        "CLI_BRIDGE_CACHE_TTL_S": "<VALUE>",
        "CLI_BRIDGE_LEAN": "<VALUE>",
        "APPLE_FM_SERVE_URL": "<VALUE>",
        "OPENROUTER_API_KEY": "<VALUE>",
        "CLI_BRIDGE_HIDE_HOST": "<VALUE>",
        "CLI_BRIDGE_MAX_DEPTH": "<VALUE>",
        "CLI_BRIDGE_LANES_FILE": "<VALUE>",
        "CLI_BRIDGE_DEFAULT_CWD": "<VALUE>",
        "CLI_BRIDGE_TRACE_FOOTER": "<VALUE>",
        "CLI_BRIDGE_DAILY_CREDIT_CAP": "<VALUE>",
        "CLI_BRIDGE_VERIFY_PLAN_READONLY": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-joaoberne-cli-bridge-mcp": {
      "command": "uvx",
      "args": [
        "cli-bridge-mcp"
      ],
      "env": {
        "CLI_BRIDGE_PROFILE": "<VALUE>",
        "CLI_BRIDGE_TERSE": "<VALUE>",
        "CLI_BRIDGE_CACHE_TTL_S": "<VALUE>",
        "CLI_BRIDGE_LEAN": "<VALUE>",
        "APPLE_FM_SERVE_URL": "<VALUE>",
        "OPENROUTER_API_KEY": "<VALUE>",
        "CLI_BRIDGE_HIDE_HOST": "<VALUE>",
        "CLI_BRIDGE_MAX_DEPTH": "<VALUE>",
        "CLI_BRIDGE_LANES_FILE": "<VALUE>",
        "CLI_BRIDGE_DEFAULT_CWD": "<VALUE>",
        "CLI_BRIDGE_TRACE_FOOTER": "<VALUE>",
        "CLI_BRIDGE_DAILY_CREDIT_CAP": "<VALUE>",
        "CLI_BRIDGE_VERIFY_PLAN_READONLY": "<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
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-joaoberne-cli-bridge-mcp": {
      "command": "uvx",
      "args": [
        "cli-bridge-mcp"
      ],
      "env": {
        "CLI_BRIDGE_PROFILE": "<VALUE>",
        "CLI_BRIDGE_TERSE": "<VALUE>",
        "CLI_BRIDGE_CACHE_TTL_S": "<VALUE>",
        "CLI_BRIDGE_LEAN": "<VALUE>",
        "APPLE_FM_SERVE_URL": "<VALUE>",
        "OPENROUTER_API_KEY": "<VALUE>",
        "CLI_BRIDGE_HIDE_HOST": "<VALUE>",
        "CLI_BRIDGE_MAX_DEPTH": "<VALUE>",
        "CLI_BRIDGE_LANES_FILE": "<VALUE>",
        "CLI_BRIDGE_DEFAULT_CWD": "<VALUE>",
        "CLI_BRIDGE_TRACE_FOOTER": "<VALUE>",
        "CLI_BRIDGE_DAILY_CREDIT_CAP": "<VALUE>",
        "CLI_BRIDGE_VERIFY_PLAN_READONLY": "<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.

NameRequiredDescription
CLI_BRIDGE_PROFILE No Cost profile: saver (free-only fan-out, include_paid refused) | balanced (paid only with include_paid) | max (limited/paid join fan-out).
CLI_BRIDGE_TERSE No Response-style preamble level: off | lite (default) | full | ultra.
CLI_BRIDGE_CACHE_TTL_S No Response cache TTL in seconds. 0 = off (default).
CLI_BRIDGE_LEAN No If set to '1', exposes a curated ~12-tool surface instead of the full set.
APPLE_FM_SERVE_URL No URL for Apple Foundation Model server (optional, enables Apple PCC lane).
OPENROUTER_API_KEY No API key for the optional OpenRouter lane (hidden until set).
CLI_BRIDGE_HIDE_HOST No If set to '1', the host's own lane is kept out of fan-out operations.
CLI_BRIDGE_MAX_DEPTH No Maximum delegate re-entry depth (default: 1).
CLI_BRIDGE_LANES_FILE No Path to a custom lanes JSON file to extend or override built-in lanes.
CLI_BRIDGE_DEFAULT_CWD No Default working directory for delegates when the host provides no workspace root.
CLI_BRIDGE_TRACE_FOOTER No Set to 'off' to disable trace footers in responses.
CLI_BRIDGE_DAILY_CREDIT_CAP No Hard daily credit cap enforced at spawn.
CLI_BRIDGE_VERIFY_PLAN_READONLY No If set to '1', any read-only delegated plan that writes to the git workspace gets flagged.

Similar servers