mcp-yieldshell

v1.1.3
mcp-yieldshell Checked 13 hours ago Published 19 days ago

A 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…

ParameterTypeDescription
command *string
description *stringA concise explanation of what the command does, for example: Run the project test suite. Must not be blank.
side_effects *array
close_stdinboolean
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,…

ParameterTypeDescription
execution_id *string
max_output_bytes
since_seq
streamsstring
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.

ParameterTypeDescription
execution_id *string
input *string
close_stdinboolean
newlineboolean

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…

ParameterTypeDescription
execution_id *string
max_output_bytes
since_seq
tail_lines
timeout_msinteger

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.

ParameterTypeDescription
execution_id *string
force_after_msinteger
signalstring

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.

ParameterTypeDescription
include_completedboolean
limitinteger

cleanup

Remove completed/stopped execution records older than the thresholds.

ParameterTypeDescription
completed_older_than_msinteger
stopped_older_than_msinteger