mcp

v0.6.4
@schedjs/mcp Checked 32 minutes ago Published 10 days ago

Cron scheduler MCP server (Model Context Protocol) for Node.js — AI control plane: list/get tasks & runs, trigger/pause/resume, delete

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

list_tasks

List all scheduled tasks: name, runner, schedule, tz, nextRunAt, lastRunAt, paused, disabled.

get_task

Get one task by name, including its full config.

ParameterTypeDescription
name *stringTask name

list_schedules

List schedules: name, runner, schedule, tz, nextRunAt, lastRunAt, paused, disabled, disabledBy (sync = parked because the rule left tasks.json; operator = a hand-stop), effectiveStatus.

get_schedule

Get one schedule by id, including its effective status (active / paused-task / paused-schedule / disabled).

ParameterTypeDescription
scheduleId *stringSchedule id

create_schedule

Create (or upsert by dedupKey) a schedule for a task (mutation). schedule must be an object with exactly one of cron | interval | once, plus optional timezone/data/externalId/dedupKey/retry/priority. data is validated against the task inputSchema (see get_task).

ParameterTypeDescription
schedule *object{ cron | interval | once, timezone?, data?, externalId?, dedupKey?, retry?, priority? }
taskName *stringTask name
tzstringIANA timezone (default: the task tz)

update_schedule

Edit a schedule in place (mutation, partial merge): only fields present change. schedule = { cron | interval | once, timezone?, data?, externalId?, dedupKey?, retry?, priority? } — inside the entry an explicit null clears (data/externalId/dedupKey/retry/priority); top-level schedule/tz must be present-or-absent (null → 400).

ParameterTypeDescription
scheduleId *stringSchedule id
scheduleobjectNew rule/data/policy block (partial — absent fields keep current value)
tzstringNew timezone

pause_schedule

Pause one schedule instance (mutation) — the task-level pause is a family stop.

ParameterTypeDescription
scheduleId *stringSchedule id

resume_schedule

Resume a paused schedule (mutation).

ParameterTypeDescription
scheduleId *stringSchedule id

delete_schedule

Delete a schedule (mutation); its runs keep their history.

ParameterTypeDescription
scheduleId *stringSchedule id

delete_task

Delete a task (mutation); its runs keep their history.

ParameterTypeDescription
name *stringTask name

list_runs

List runs, newest first. Optional filters: task (name), status (queued|running|succeeded|failed|cancelled), since/until (ISO-8601 start-time window, inclusive), runner (exact runner name), limit, offset.

ParameterTypeDescription
limitintegerMax runs to return (default: all)
offsetintegerPagination offset
runnerstringExact runner match — 'docker', 'http', 'process'…
sincestringStart of the started_at window, ISO-8601 (inclusive)
statusstringFilter by run status
taskstringFilter by task name
untilstringEnd of the started_at window, ISO-8601 (inclusive)

get_run

Get one run by id: status, error, log, result, artifacts.

ParameterTypeDescription
runId *stringRun id

trigger_task

Trigger one run of a task immediately (mutation). Returns the created run. data (optional) — run parameters; validated against the task inputSchema (see get_task), which also renders the form: property types, defaults, descriptions.

ParameterTypeDescription
name *stringTask name
dataRun parameters (JSON object). Must match the task inputSchema — get_task returns the schema for form building.

pause_task

Pause a task — stop scheduling new runs until resumed (mutation).

ParameterTypeDescription
name *stringTask name

resume_task

Resume a paused task (mutation).

ParameterTypeDescription
name *stringTask name

pause_queue

Pause the whole queue (mutation) — stop claiming work until resumed: recurring schedules are skipped (not caught up), once/retry work is deferred and played out on resume. Idempotent.

resume_queue

Resume a paused queue (mutation) — deferred once/retry runs play out once. Idempotent.

delete_run

Delete a run record from history (mutation). No-op for unknown run.

ParameterTypeDescription
runId *stringRun id

cancel_run

Cancel a running or queued run (mutation). A terminal run returns 409.

ParameterTypeDescription
runId *stringRun id

retry_run

Retry a finished run manually (mutation) — re-executes with the original data.

ParameterTypeDescription
runId *stringRun id
triggeredBystringCaller identity (optional)