MCP Terminal Server

run_command

Run a terminal command with security controls.

Input Schema

NameRequiredDescriptionDefault
allowedCommandsNoOptional list of allowed command executables
commandYesThe command to execute
maxOutputSizeNoMaximum output size in bytes (default: 1MB)
timeoutMsNoMaximum 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" }

You must be authenticated.

Other Tools