cmd-mcp-server

execute_command

Execute a command and return its output. Commands run in a persistent shell session by default. Use newSession: true to run in a new shell instance.

Input Schema

NameRequiredDescriptionDefault
commandYes
newSessionNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "command": { "type": "string" }, "newSession": { "type": "boolean" } }, "required": [ "command" ], "type": "object" }

Other Tools