backburner

v1.0.0
io.github.RohitYajee8076/backburner Checked 20 hours ago Published 4 months ago

Run long shell commands as background tasks: start them, keep working, collect the results later

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

start_task

Start a shell command as a background task and return immediately. Args: command: The shell command to run (e.g. "pytest -q" or "npm run build"). cwd: Working directory for the command. Defaults to the server's cwd. timeout_seconds: If set, the task is killed and marked 'timed_out' when it runs longer than this. Recommended for unattended jobs. Returns the new task's id and initial status. The command keeps running after this call returns — use task_status / task_result to follow it.

ParameterTypeDescription
command *string
cwd
timeout_seconds

task_status

Check on a task: working, completed, failed, cancelled, timed_out, or interrupted.

ParameterTypeDescription
task_id *string

task_result

Get a task's captured output (stdout+stderr merged). Args: task_id: The task to inspect. Works for finished AND still-running tasks, so you can peek at live progress. tail_lines: How many trailing lines of output to return.

ParameterTypeDescription
task_id *string
tail_linesinteger

cancel_task

Cancel a running task, killing its whole process tree.

ParameterTypeDescription
task_id *string

list_tasks

List recent tasks, newest first.

ParameterTypeDescription
limitinteger