Run a shell command on the remote host
execExecute a shell command over SSH on a remote host. Specify connection name and command, with optional working directory, timeout, and stdin.
Instructions
Execute a shell command over SSH on the named connection. WARNING: this runs real commands on a real remote machine — destructive operations are NOT blocked by this server. The MCP client / approval layer is responsible for confirming dangerous commands with the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional remote working directory. Wrapped as `cd <cwd> && <command>`. | |
| stdin | No | Optional stdin to feed to the command. | |
| command | Yes | Shell command to execute on the remote host. | |
| timeoutMs | No | Wall-clock timeout in ms (default 120000). | |
| connectionName | Yes |