mcp-cli-tools
MCP server that gives AI coding agents (Claude Code, Cursor, Cline, etc.) access to multiple AI models through Antigravity CLI and OpenAI Codex CLI, enabling mid-conversation model consultation and code review.
README
mcp-cli-tools
MCP server that gives AI coding agents (Claude Code, Cursor, Cline, etc.) safe access to multiple AI models through Antigravity CLI and OpenAI Codex CLI.
Think of it as a local Fugu-style orchestrator: your AI agent can consult Gemini, GPT, and other models mid-conversation, compare answers, ask for adversarial review, and run scoped code reviews without leaving the editor.
What it does
| Tool | Backend | Capability |
|---|---|---|
fugu_orchestrate |
Antigravity CLI (agy) |
Fugu-style single entry point: fast routing or ultra workflow with subtasks, model_id, access_list, shared memory, and synthesis |
consult_model |
Antigravity CLI (agy) |
Ask one external model for a second opinion |
compare_models |
Antigravity CLI (agy) |
Ask 2-4 models in parallel and synthesize agreement/disagreement |
adversarial_check |
Antigravity CLI (agy) |
Ask a model to attack a proposal, plan, or implementation idea |
review_workspace |
OpenAI Codex CLI | Run scoped code review on uncommitted changes, a base branch, or a commit |
security_audit |
OpenAI Codex CLI | Run a security-focused Codex review prompt |
run_antigravity |
Antigravity CLI (agy) |
Compatibility wrapper with safe subcommands only |
run_codex |
OpenAI Codex CLI | Compatibility wrapper for codex review only |
Your AI agent gains the ability to:
- Get a second opinion from a different model family
- Use a single Fugu-style tool that hides routing, decomposition, worker calls, and final synthesis
- Compare multiple external answers in one tool call
- Run code reviews via Codex without leaving the conversation
- Do adversarial verification (one model checks another's work)
- Route by expertise — Gemini for analysis, GPT for code review
- Receive structured metadata for each call: command, cwd, exit code, timeout, duration, stdout, stderr
Prerequisites
- Antigravity CLI installed as
agy - OpenAI Codex CLI installed as
codex - Node.js 18+
Install
git clone https://github.com/Marcelo-Henry/mcp-cli-tools.git
cd mcp-cli-tools
npm install
npm run build
Configure in Claude Code
Add to ~/.claude/settings.json under mcpServers:
{
"mcpServers": {
"cli-tools": {
"command": "node",
"args": ["/path/to/mcp-cli-tools/dist/index.js"]
}
}
}
Usage
fugu_orchestrate
Use this as the main entry point when you want behavior closest to Fugu/Fugu-Ultra.
Fast mode selects one worker for lower latency:
fugu_orchestrate(
task: "Explain this TypeScript error and suggest the smallest fix",
mode: "fast",
effort: "standard",
cwd: "/path/to/repo"
)
Ultra mode builds and executes a workflow with model_id, subtasks, access_list, critique, and synthesis:
fugu_orchestrate(
task: "Create a local task dashboard from scratch with persistence, tests, and a polished UI",
mode: "ultra",
effort: "max",
sharedMemoryKey: "taskpulse",
cwd: "/path/to/repo"
)
Restrict the worker pool when privacy, cost, or compliance matters:
fugu_orchestrate(
task: "Analyze this architecture",
mode: "ultra",
excludeModels: ["gpt-oss-120b"]
)
fugu_orchestrateis a local deterministic orchestration layer inspired by the public Fugu/Fugu-Ultra workflow shape. It is not Sakana's learned orchestrator model.
consult_model
Ask one external model:
consult_model(prompt: "Analyze this architecture", model: "gemini-3.1-pro", cwd: "/path/to/repo")
compare_models
Ask multiple models in parallel:
compare_models(
prompt: "Which migration strategy is safest for this repo?",
models: ["gemini-3.5-flash", "gemini-3.1-pro"]
)
adversarial_check
Ask an external model to find flaws in a proposal:
adversarial_check(
proposal: "Move all orchestration policy into CLAUDE.md",
context: "MCP server for Claude Code + GPT/Gemini collaboration"
)
review_workspace
Review uncommitted changes:
review_workspace(scope: "uncommitted", cwd: "/path/to/repo")
Review against a branch:
review_workspace(scope: "base", base: "main", cwd: "/path/to/repo")
Review a commit:
review_workspace(scope: "commit", commit: "abc123", cwd: "/path/to/repo")
security_audit
Run a security-focused review:
security_audit(instructions: "Focus on command execution and path traversal", cwd: "/path/to/repo")
Compatibility tools
run_antigravity and run_codex remain available for existing Claude rules, but they are intentionally narrower now.
run_antigravity
Query any model available in Antigravity CLI:
run_antigravity(promptContext: "Analyze this architecture", model: "gemini-3.1-pro")
List available models:
run_antigravity(subcommand: "models")
Run safe subcommands:
run_antigravity(subcommand: "help")
run_antigravity(subcommand: "changelog")
Allowed subcommands are models, help, and changelog. Plugin/install/update operations are blocked by design.
run_codex
Review uncommitted changes:
run_codex(action: "review", flags: ["--uncommitted"], cwd: "/path/to/repo")
Review with a specific prompt:
run_codex(action: "review", prompt: "Focus on security vulnerabilities")
Review against a branch:
run_codex(action: "review", flags: ["--base", "main"], cwd: "/path/to/repo")
Use a specific model:
run_codex(action: "review", prompt: "Audit this code", model: "gpt-5", cwd: "/path/to/repo")
Notes:
prompteflagssão mutuamente exclusivos e agora são validados pelo MCP.- Use
cwdquando o comando depender do contexto de um repositório específico.actionagora aceita apenasreview.flagsaceita apenas--uncommitted,--base,--commit,--titlee--strict-config.
Error handling
Os tools retornam:
- comando executado
cwdusadoexit_codeduration_msstdoutestderrstructuredContentcom metadata da chamada
Se o processo sair com código diferente de zero, receber sinal ou estourar timeout, o resultado é marcado como erro no protocolo MCP.
Available Models
Via Antigravity
| Model | Best for |
|---|---|
gemini-3.5-flash |
Fast exploration, brainstorming (default) |
gemini-3.1-pro |
Deep analysis, architecture, large context |
gpt-oss-120b |
Independent perspective, diverse opinion |
Via Codex
Codex models depend on your local Codex CLI configuration. Pass the model explicitly when needed:
review_workspace(scope: "uncommitted", model: "gpt-5", cwd: "/path/to/repo")
security_audit(model: "gpt-5", cwd: "/path/to/repo")
Making your AI agent orchestrate automatically
Add orchestration rules to your global ~/.claude/CLAUDE.md to make Claude Code call these tools proactively. See ORCHESTRATION.md for a full guide with triggers and patterns.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。