
MCP服务器可在任何MCP客户端后台运行Claude、Codex和Gemini CLI代理。
概览
:该软件包原为 @mkxultra/claude-code-mcp,现已更名为 ai-cli-mcp,以反映其对多种 AI CLI 工具的扩展支持。 一个MCP(模型上下文协议)服务器,允许在后台进程中运行AI命令行工具(Claude、Codex、Gemini、OpenCode、Grok和Pi),并实现自动权限处理。 你有没有注意到Cursor有时在复杂、多步骤的编辑或操作上会遇到困难?这台服务器凭借强大的统一运行工具,使多个AI代理能够更有效地处理你的编码任务。 该MCP服务器提供LLM可用来与AI指令指令行工具交互的工具。
概述(AI 翻译)
🇯🇵 日本語のREADME是こちら
** 📦 软件包迁移通知**:该软件包原为
@mkxultra/claude-code-mcp,现已更名为ai-cli-mcp,以反映其对多种AI指令管理工具的扩展支持。
一个MCP(模型上下文协议)服务器,允许在后台进程中运行AI命令行工具(Claude、Codex、Gemini、OpenCode、Grok和Pi),并实现自动权限处理。
你有没有注意到Cursor有时在复杂、多步骤的编辑或操作上会遇到困难?这台服务器配备了强大的统一run工具,使多个AI代理能够更有效地处理你的编码任务。
演示
概述
该MCP服务器提供了LLM可用来与AI操作操作工具交互的工具。当与MCP客户端集成时,它允许LLM能够:
- 运行 Claude CLI,绕过所有权限(使用
--dangerously-skip-permissions) - 执行Codex CLI并绕过审批和沙箱(使用
--dangerously-bypass-approvals-and-sandbox) - 通过反重力CLI(
agy --print、stream-json和--dangerously-skip-permissions)执行双子座模型
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AI CLI MCP Server
📦 Package Migration Notice: This package was formerly
@mkxultra/claude-code-mcpand has been renamed toai-cli-mcpto reflect its expanded support for multiple AI CLI tools.
An MCP (Model Context Protocol) server that allows running AI CLI tools (Claude, Codex, Gemini, OpenCode, Grok, and Pi) in background processes with automatic permission handling.
Did you notice that Cursor sometimes struggles with complex, multi-step edits or operations? This server, with its powerful unified run tool, enables multiple AI agents to handle your coding tasks more effectively.
Demo
Overview
This MCP server provides tools that can be used by LLMs to interact with AI CLI tools. When integrated with MCP clients, it allows LLMs to:
- Run Claude CLI with all permissions bypassed (using
--dangerously-skip-permissions) - Execute Codex CLI with approvals and sandbox bypassed (using
--dangerously-bypass-approvals-and-sandbox) - Execute Gemini models through Antigravity CLI (
agy --print,stream-json, and--dangerously-skip-permissions) - Execute Grok Build CLI headlessly with
streaming-messages-json, automatic tool approval, and automatic updates disabled - Execute OpenCode in non-interactive JSON mode (using
opencode run --format json --dir) - Execute Pi in non-interactive JSON mode with tool approval enabled for unattended runs
- Support multiple AI models: Claude (sonnet, sonnet[1m], opus, opusplan, fable, haiku), Codex (gpt-6-astra, gpt-6.1-sol, gpt-6-sol, gpt-6-luna, gpt-5.4, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4-mini, gpt-5.3-codex, gpt-5.3-codex-spark, gpt-5.2), Gemini (gemini-3.8-flash-high/medium/low, gemini-3.7-flash-high/medium/low, gemini-3.6-flash-high/medium/low, gemini-3.1-pro-high/low), Grok (
grok,grok-4.6,grok-4.5), OpenCode (opencodeplusoc-), and Pi (pipluspi-) - Manage background processes with PID tracking
- Parse and return structured outputs from both tools
Usage Example (Advanced Parallel Processing)
You can instruct your main agent to run multiple tasks in parallel like this:
Launch agents for the following 3 tasks using acm mcp run:
- Refactor
src/backendcode usingsonnet- Create unit tests for
src/frontendusinggpt-5.3-codex- Update docs in
docs/usinggemini-3.1-pro-highWhile they run, please update the TODO list. Once done, use the
waittool to wait for all completions and report the results together.
Usage Example (Context Caching & Sharing)
安装
npx -y ai-cli-mcp@latest