Skip to main content
Glama

unified-cli-mcp

Standalone MCP server that exposes installed coding CLIs through one universal ask tool.

It lets one MCP client call another local CLI directly. For example:

  • Claude Code calling Codex

  • Codex calling Gemini

  • Copilot calling Cursor

Supported backends

Working in live smoke tests on this machine:

  • gemini

  • codex

  • claude

  • kiro

  • kilo

  • copilot

  • opencode

  • mistral

  • cursor

  • qwen

Known exclusions:

  • qodo: excluded for now because upstream execution currently returns a sunset response

  • amp: installed, but headless execute mode currently requires paid credits

Related MCP server: McpHub

What it exposes

Two MCP tools:

  • ask(backend, prompt, model?, cwd?, timeout?)

  • backends()

ask runs a one-shot headless CLI call.

backends reports which configured local binaries are available.

Install

Run directly from GitHub with uvx

uvx --from git+https://github.com/dev-boz/unified-cli-mcp unified-cli-mcp

Install as a tool with uv

uv tool install git+https://github.com/dev-boz/unified-cli-mcp

Install with pipx

pipx install git+https://github.com/dev-boz/unified-cli-mcp

Local development

git clone https://github.com/dev-boz/unified-cli-mcp
cd unified-cli-mcp
uv sync
uv run unified-cli-mcp

MCP client config

Claude Code

claude mcp add -s user unified-cli-mcp -- uvx --from git+https://github.com/dev-boz/unified-cli-mcp unified-cli-mcp

Codex

codex mcp add unified-cli-mcp -- uvx --from git+https://github.com/dev-boz/unified-cli-mcp unified-cli-mcp

Gemini CLI

gemini mcp add -s user unified-cli-mcp uvx --from git+https://github.com/dev-boz/unified-cli-mcp unified-cli-mcp

Copilot CLI

User config file: ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "unified-cli-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/dev-boz/unified-cli-mcp",
        "unified-cli-mcp"
      ]
    }
  }
}

Project-local Copilot config: .mcp.json

{
  "servers": {
    "unified-cli-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/dev-boz/unified-cli-mcp",
        "unified-cli-mcp"
      ]
    }
  }
}

Generic stdio config

{
  "mcpServers": {
    "unified-cli-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/dev-boz/unified-cli-mcp",
        "unified-cli-mcp"
      ],
      "env": {
        "UNIFIED_CLI_ENABLED_BACKENDS": "gemini,codex,claude,copilot,cursor,mistral",
        "UNIFIED_CLI_DEFAULT_TIMEOUT": "300",
        "UNIFIED_CLI_ALLOW_DANGEROUS": "1"
      }
    }
  }
}

Example prompts

Inside any MCP client:

Use the unified-cli-mcp ask tool with backend="codex", cwd="/path/to/repo", prompt="Review this project for parsing bugs. Return only the top 3 findings."
Use unified-cli-mcp to ask gemini: "Summarize the architecture of this repo in 5 bullets."
Call the ask tool with backend="cursor", prompt="Suggest a refactor plan for the parser layer. No code."

Notes

  • The target CLI must already be installed and authenticated on the machine where this MCP server runs.

  • This server is standalone. It does not require cli-agent-nexus.

  • Backend aliases like claude-code, mistral-vibe, and cursor-agent are normalized internally.

  • Broad permission-bypass flags are now opt-in. Set UNIFIED_CLI_ALLOW_DANGEROUS=1 only if you explicitly want bridged CLIs to run with their trust/auto-approve modes enabled.

Development

python3 -m pytest tests/test_core.py -q
python3 -m compileall unified_cli_mcp

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI tools to uniformly discover, inspect, and call tools, prompts, and resources from multiple upstream MCP servers through a small set of fixed MCP tools, over stdio or HTTP.
      2
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables secure discovery and invocation of sandboxed filesystem, repository inspection, and utility tools through a unified MCP client with schema validation, timeouts, and execution traces.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables any MCP-compatible client to run reusable, Markdown-defined coding agents (such as code reviewers, test writers, or investigators) through a chosen coding CLI backend. Supports shared backend and model configuration across clients, permission levels, and session continuation for longer tasks.
      175 npm
      MIT