run_command
Executes a shell command on the MCP host via the default platform shell and returns stdout, stderr, and exit code for system checks, file listing, or short scripts.
Instructions
Execute a shell command on the host machine where the MCP server is running and return stdout, stderr, and the exit code. Runs through the platform default shell (cmd.exe on Windows, /bin/sh on Unix). Use for simple system tasks like checking versions, listing files, or running short scripts. NOTE: this tool has full access to the host shell with the MCP process privileges — only run commands you trust.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. Defaults to the MCP server cwd. | |
| command | Yes | The shell command to execute (e.g. "node --version" or "ls -la"). | |
| timeoutSeconds | No | Kill the process after this many seconds. Default 30, max 600. |