secure_run_command
Execute restricted commands securely on the Code MCP Server, specifying working directory, timeout, and environment variables, with optional auto-commit functionality.
Instructions
Execute a command with security restrictions (only allowed commands)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Command to execute securely | |
commitMessage | No | Custom commit message if commitResult is true | |
commitResult | No | Auto-commit changes after successful execution | |
cwd | No | Working directory | |
env | No | Environment variables | |
timeout | No | Command timeout in milliseconds |
Input Schema (JSON Schema)
{
"properties": {
"command": {
"description": "Command to execute securely",
"type": "string"
},
"commitMessage": {
"description": "Custom commit message if commitResult is true",
"type": "string"
},
"commitResult": {
"description": "Auto-commit changes after successful execution",
"type": "boolean"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"env": {
"description": "Environment variables",
"type": "object"
},
"timeout": {
"description": "Command timeout in milliseconds",
"type": "number"
}
},
"required": [
"command"
],
"type": "object"
}