mcp-yieldshell
v1.1.3A drop-in shell MCP that auto-yields long-running commands into managed background executions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute
Start a managed shell execution with automatic backgrounding. Addressable responses include an opaque ``execution_id``. Pass that value through unchanged to ``read``, ``write``, ``wait``, or ``stop``; never parse it or substitute the numeric OS ``process_id``. ``description`` is required and must be a non-blank string explaining what the command does, for example ``"Run the project test suite"``. It appears only in the tool call and is not retained as execution metadata or included in responses. Invalid descriptions are rejected by MCP argument validation befo…
| Parameter | Type | Description |
|---|---|---|
command * | string | |
description * | string | A concise explanation of what the command does, for example: Run the project test suite. Must not be blank. |
side_effects * | array | |
close_stdin | boolean | |
cwd | ||
env | ||
max_output_bytes | ||
name | ||
shell | ||
stdin | ||
timeout_ms | ||
yield_ms |
read
Read output from a managed execution. ``execution_id`` is opaque and must be passed through unchanged from an addressable ``execute`` response. Pass ``since_seq`` (the ``next_seq`` from the previous response) to get only output produced since that point. Pass ``tail_lines`` instead to get a snapshot of the newest N lines, which is the cheaper way to monitor a noisy build or test run. The two are mutually exclusive. With neither, the read **resumes** from where the last cursorless read or ``execute`` snapshot stopped and then advances that server-side cursor,…
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | |
max_output_bytes | ||
since_seq | ||
streams | string | |
tail_lines |
write
Write to an execution's stdin, optionally closing it to send EOF. ``execution_id`` is opaque and must be passed through unchanged from an addressable ``execute`` response.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | |
input * | string | |
close_stdin | boolean | |
newline | boolean |
wait
Wait for an execution to exit without stopping it. ``execution_id`` is opaque and must be passed through unchanged from an addressable ``execute`` response. ``timeout_ms`` is a **maximum wait**, not an execution limit: it never stops the execution, and it is capped at 55,000ms to stay under typical MCP request timeouts. The response reports ``wait_result`` (``exited`` or ``deadline_reached``), ``waited_ms``, and the effective ``max_wait_ms`` so a capped request is visible rather than silent. The separate execution limit that does stop an execution is ``exe…
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | |
max_output_bytes | ||
since_seq | ||
tail_lines | ||
timeout_ms | integer |
stop
Stop a running execution, escalating to force kill when needed. ``execution_id`` is opaque and must be passed through unchanged from an addressable ``execute`` response.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | |
force_after_ms | integer | |
signal | string |
ps
List managed executions, including retained terminal executions. Each entry reports ``idle_ms`` (time since output last arrived, ``null`` if none has), ``last_output_at``, and ``latest_seq`` alongside byte counts. ``execution_id`` is an opaque handle that must be passed through unchanged; ``process_id`` is the initial shell's numeric OS PID.
| Parameter | Type | Description |
|---|---|---|
include_completed | boolean | |
limit | integer |
cleanup
Remove completed/stopped execution records older than the thresholds.
| Parameter | Type | Description |
|---|---|---|
completed_older_than_ms | integer | |
stopped_older_than_ms | integer |