Shell Exec

v2.0.0
io.github.domdomegg/shell-exec-mcp Checked 1 hour ago Published 12 days ago

Execute bash commands with background job support.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

execute Execute

Run a command in bash. Returns stdout, stderr, and exit code. Default timeout is 5 seconds. For long-running commands, set 'background: true' to run in background and get a job ID. Then use get_status to check on it. Tips: - Use background mode for commands that take more than a few seconds - For file searches, use 'find' or 'grep' - For file operations, use 'mv', 'rm', 'mkdir -p', 'stat' etc.

ParameterTypeDescription
command *stringThe bash command to run
backgroundbooleanRun in background and return job ID
timeout_msnumberTimeout in milliseconds (default: 5000)

get_job_status Get Job Status

Check status of a background job. Returns stdout/stderr collected so far, exit code (null if still running), and whether the job is still running. Completed jobs are cleaned up after their status is read.

ParameterTypeDescription
jobId *stringThe job ID returned from execute with background: true