A simple model context protocol (MCP) server that allows Claude Desktop or other MCP aware clients to run Bash commands on your local machine.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add bash -- python -m venv .venv~/.codex/config.toml
[mcp_servers.bash]
command = "python"
args = ["-m", "venv", ".venv"]
# codex mcp add bash -- python -m venv .venv~/.cursor/mcp.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}.vscode/mcp.json
{
"servers": {
"bash": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}