bash_execute
Execute and capture Bash commands securely with predefined restrictions. Set working directory, timeout, and environment variables for controlled command execution within MCP Filesystem Server.
Instructions
Execute a Bash command directly with output capture. More flexible than execute_command but still with security restrictions. Allows for direct access to Bash functionality.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | The bash command to execute | |
env | No | Additional environment variables for the command | |
timeout | No | Maximum execution time in milliseconds (max 60s) | |
workingDir | No | Working directory for command execution |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"command": {
"description": "The bash command to execute",
"type": "string"
},
"env": {
"additionalProperties": {
"type": "string"
},
"description": "Additional environment variables for the command",
"type": "object"
},
"timeout": {
"default": 30000,
"description": "Maximum execution time in milliseconds (max 60s)",
"exclusiveMinimum": 0,
"maximum": 60000,
"type": "integer"
},
"workingDir": {
"description": "Working directory for command execution",
"type": "string"
}
},
"required": [
"command"
],
"type": "object"
}