Agent Integration
Product MCP Server
Use TrigRun from AI agents via the Model Context Protocol.
TrigRun provides an MCP server that lets AI agents manage jobs, executions, notifications, and secrets through tool calls.
Setup
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Any Streamable HTTP MCP client
The MCP server also runs as a standalone HTTP server:
Connect your MCP client to http://localhost:9090/mcp.
Authentication
Every tool requires a token argument. Use an API token (cron_pat_...) for long-lived agent use:
Available tools
Jobs
| Tool | Description | Key arguments |
|---|---|---|
list_jobs | List all jobs, optionally filter by state | token, state? |
get_job | Get job details by ID | token, job_id |
create_job | Create a new scheduled job | token, name, url, kind?, cron?, every_n_minutes?, timezone?, method?, headers?, body? |
pause_job | Pause a job | token, job_id |
resume_job | Resume a paused job | token, job_id |
run_job_now | Trigger immediate execution | token, job_id |
delete_job | Delete a job | token, job_id |
Executions
| Tool | Description | Key arguments |
|---|---|---|
list_executions | List executions, optionally for a job | token, job_id?, status? |
get_execution | Get execution details with attempts | token, execution_id |
replay_execution | Re-run an execution | token, execution_id |
Notification channels
| Tool | Description | Key arguments |
|---|---|---|
list_channels | List notification channels | token |
create_channel | Create a channel (webhook/email/slack/discord) | token, name, type, url?, email?, secret? |
delete_channel | Delete a channel | token, channel_id |
Notification rules
| Tool | Description | Key arguments |
|---|---|---|
list_rules | List rules for a job | token, job_id |
add_rule | Attach a channel to a job event | token, job_id, channel_id, event |
remove_rule | Remove a notification rule | token, job_id, rule_id |
Secrets
| Tool | Description | Key arguments |
|---|---|---|
list_secrets | List secret names (values hidden) | token |
create_secret | Store an encrypted secret | token, name, value |
delete_secret | Delete a secret | token, secret_id |
Example conversation
User: Create a cron job that calls my API every hour and notify me on Slack if it fails.
The agent would:
- Call
create_jobwithkind: "cron",cron: "0 * * * *", and the target URL - Call
create_channelwithtype: "slack"and the Slack webhook URL - Call
add_rulewith the job ID, channel ID, andevent: "on_failure"
All three operations use the same token argument.