MCP server to run Claude, Codex, and Gemini CLI agents in the background from any MCP client.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add ai-cli -- npx -y ai-cli-mcp~/.codex/config.toml
[mcp_servers.ai-cli]
command = "npx"
args = ["-y", "ai-cli-mcp"]
# codex mcp add ai-cli -- npx -y ai-cli-mcp~/.cursor/mcp.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"ai-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ai-cli": {
"command": "npx",
"args": [
"-y",
"ai-cli-mcp"
]
}
}
}