mcp
v0.6.4Cron 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Task 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).
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | Schedule 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).
| Parameter | Type | Description |
|---|---|---|
schedule * | object | { cron | interval | once, timezone?, data?, externalId?, dedupKey?, retry?, priority? } |
taskName * | string | Task name |
tz | string | IANA 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).
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | Schedule id |
schedule | object | New rule/data/policy block (partial — absent fields keep current value) |
tz | string | New timezone |
pause_schedule
Pause one schedule instance (mutation) — the task-level pause is a family stop.
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | Schedule id |
resume_schedule
Resume a paused schedule (mutation).
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | Schedule id |
delete_schedule
Delete a schedule (mutation); its runs keep their history.
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | Schedule id |
delete_task
Delete a task (mutation); its runs keep their history.
| Parameter | Type | Description |
|---|---|---|
name * | string | Task 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max runs to return (default: all) |
offset | integer | Pagination offset |
runner | string | Exact runner match — 'docker', 'http', 'process'… |
since | string | Start of the started_at window, ISO-8601 (inclusive) |
status | string | Filter by run status |
task | string | Filter by task name |
until | string | End of the started_at window, ISO-8601 (inclusive) |
get_run
Get one run by id: status, error, log, result, artifacts.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Run 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Task name |
data | Run 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).
| Parameter | Type | Description |
|---|---|---|
name * | string | Task name |
resume_task
Resume a paused task (mutation).
| Parameter | Type | Description |
|---|---|---|
name * | string | Task 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.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Run id |
cancel_run
Cancel a running or queued run (mutation). A terminal run returns 409.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Run id |
retry_run
Retry a finished run manually (mutation) — re-executes with the original data.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Run id |
triggeredBy | string | Caller identity (optional) |