Start a long-running shell command
exec_startRun a shell command on a remote host via SSH, returning immediately with a job ID for later status checking and cancellation. Avoids timeouts for long tasks like git clone or apt install.
Instructions
Start a command over SSH and return immediately with a jobId. Use exec_status to read stdout/stderr later and exec_cancel to stop it. This avoids MCP client tool-call timeouts for git clone, pip install, apt install, dkms builds, reboot waits, and similar long operations.
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 | Optional wall-clock timeout in ms. 0 or omitted means no MCP-side timeout. | |
| connectionName | Yes | ||
| maxBufferBytes | No | Rolling stdout/stderr buffer limit per stream (default 1000000). |