run_command
Execute terminal commands securely with defined controls like allowed commands, timeout, and output size limits via the MCP Terminal Server.
Instructions
Run a terminal command with security controls.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allowedCommands | No | Optional list of allowed command executables | |
command | Yes | The command to execute | |
maxOutputSize | No | Maximum output size in bytes (default: 1MB) | |
timeoutMs | No | Maximum execution time in milliseconds (default: 30 seconds) |
Input Schema (JSON Schema)
{
"properties": {
"allowedCommands": {
"description": "Optional list of allowed command executables",
"items": {
"type": "string"
},
"type": "array"
},
"command": {
"description": "The command to execute",
"type": "string"
},
"maxOutputSize": {
"description": "Maximum output size in bytes (default: 1MB)",
"type": "number"
},
"timeoutMs": {
"description": "Maximum execution time in milliseconds (default: 30 seconds)",
"type": "number"
}
},
"required": [
"command"
],
"type": "object"
}