Runs shell commands and returns structured results with stdout, stderr, exit code and duration.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add cli-exec -- npx -y mcp-cli-exec~/.codex/config.toml
[mcp_servers.cli-exec]
command = "npx"
args = ["-y", "mcp-cli-exec"]
# codex mcp add cli-exec -- npx -y mcp-cli-exec~/.cursor/mcp.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}.vscode/mcp.json
{
"servers": {
"cli-exec": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}