execute_command
Run shell commands in a specified directory using a chosen shell (bash, sh) with the Shell MCP Server, ensuring secure and isolated execution environments.
Instructions
Execute a shell command in a specified directory using a specified shell
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | The shell command to execute | |
cwd | Yes | Working directory for command execution | |
shell | Yes | Shell to use for execution. Available: ['bash', 'sh'] |
Input Schema (JSON Schema)
{
"properties": {
"command": {
"description": "The shell command to execute",
"type": "string"
},
"cwd": {
"description": "Working directory for command execution",
"type": "string"
},
"shell": {
"description": "Shell to use for execution. Available: ['bash', 'sh']",
"type": "string"
}
},
"required": [
"command",
"shell",
"cwd"
],
"type": "object"
}