ToolBox MCP Server

by xiaoguomeiyitian
Verified

cli_tool

Input Schema

NameRequiredDescriptionDefault
commandNoSingle-line command content
commandsNoMulti-line command sequence (mutually exclusive with 'command')
cwdNoWorking directory (absolute or relative to build/)
modeNoExecution mode: sync - synchronous blocking, async - asynchronous non-blockingsync
platformNoForce execution context (win32, linux)auto
safe_modeNoEnable dangerous command filtering
timeoutNoCommand timeout in seconds

Input Schema (JSON Schema)

{ "description": "CLI executor with sync/async modes and timeout.", "name": "cli_tool", "properties": { "command": { "description": "Single-line command content", "type": "string" }, "commands": { "description": "Multi-line command sequence (mutually exclusive with 'command')", "items": { "type": "string" }, "type": "array" }, "cwd": { "description": "Working directory (absolute or relative to build/)", "type": "string" }, "mode": { "default": "sync", "description": "Execution mode: sync - synchronous blocking, async - asynchronous non-blocking", "enum": [ "sync", "async" ], "type": "string" }, "platform": { "default": "auto", "description": "Force execution context (win32, linux)", "enum": [ "auto", "win32", "linux", "darwin" ], "type": "string" }, "safe_mode": { "default": true, "description": "Enable dangerous command filtering", "type": "boolean" }, "timeout": { "default": 30, "description": "Command timeout in seconds", "minimum": 1, "type": "number" } }, "required": [], "type": "object" }