Skip to main content
MCP Events lets an MCP client be told when a job it started needs it or finishes. The client subscribes itself through the Pomerado MCP, so there’s nothing to set up in Pomerado. ChatGPT is one such client.

Subscribe

The client lists the events with events/list, then subscribes to each with events/subscribe, giving its own HTTPS callback URL and a whsec_ signing secret. Before it accepts a new callback, Pomerado sends it a signed challenge that it must echo back.
  • Without arguments, a subscription covers every job you start through that client. Pass job_id to follow one job.
  • A subscription lasts up to 24 hours; the client renews it by subscribing again. A renewal with a new secret signs with both for 24 hours.
  • Each member can hold up to 20 subscriptions; each event and callback counts as one.

Handle events

The events are the same eight that webhooks send: job.needs_input, job.input_expiring, job.succeeded, job.failed, job.repairing, job.paused, job.pause_expiring and job.resumed. Deliveries are signed and retried the same way, in this shape:

Act on an event

  • On job.needs_input, answer the question with answer_job, or give the person protected_input_url for a secret or login.
  • On job.succeeded, read the result with get_job within 60 minutes. The first read delivers it.
  • On job.failed, check possible_commit before running a write again.
  • On job.repairing, don’t cancel the run. Keep following it with get_job until a get_job reply says it has ended. That is by maintenance.deadline_at, except that a run Pomerado already queued to run again on a fixed tool before then may end after it. The repair may ask a question.
  • On job.paused or job.pause_expiring, ask the person before expires_at. When the event carries input_request, answer it with answer_job or give them protected_input_url: the answer resumes the build. Otherwise get_job says how to resume it.
  • On job.resumed, keep following the build with get_job.
Events carry no answers, secrets or results. An event may arrive late or more than once, with the same eventId.
A subscription covers only the jobs you start through that client. To hear about every job you start, from any client, use a webhook.