loading…
Search for a command to run...
loading…
Provides a secure environment for executing shell commands with restricted directory access and timeout enforcement. It includes tools for running commands, man
Provides a secure environment for executing shell commands with restricted directory access and timeout enforcement. It includes tools for running commands, managing execution history, and isolating environment variables.
MCP (Model Context Protocol) server for safe shell command execution.
Execute a shell command with safety controls.
{
"command": "ls -la",
"cwd": "/root/.openclaw/workspace",
"timeout": 30000,
"env": { "MY_VAR": "value" }
}
Parameters:
command (required) - Command to executecwd - Working directory (default: /root/.openclaw/workspace)timeout - Timeout in ms (default: 30000, max: 120000)env - Environment variables objectGet command execution history.
{
"limit": 50
}
Clear command history.
{}
cd /root/.openclaw/workspace/shell-mcp-server
npm start
{
"type": "stdio",
"command": "node",
"args": ["/root/.openclaw/workspace/shell-mcp-server/index.js"]
}
claude --mcp-config shell-mcp-server.json
cd /root/.openclaw/workspace/shell-mcp-server
npm install
npm test
/root/.openclaw/workspace and subdirectories.shell-history.jsonДобавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"shell-mcp-server": {
"command": "npx",
"args": []
}
}
}