MCP Events Explained: Webhooks, Polling and What ChatGPT Expects
Nikhil Tiwari
MCP Playground
TL;DR
- MCP Events let a server tell an agent that something happened. Before this, an agent could only ask, by calling a tool on a loop.
- It’s an official extension,
io.modelcontextprotocol/events. The SEP is Final, the extension itself is still Beta, and it needs the 2026-07-28 protocol. - Three delivery modes: webhook, poll and push. A server offers any mix of them per event.
- ChatGPT is the first big client, and it only uses webhook. Its docs disagree with the spec on two details, covered below.
- Most failures are in the webhook plumbing: signing, the
Mcp-Nameheader, retries and renewal. Test those before you ship.
Every MCP agent I’ve built had the same blind spot. It could do things, but it couldn’t notice things.
Want it to react to a new support ticket? You either asked it every few minutes, or you wired up a webhook outside MCP and glued the two together.
MCP Events fix that. A server publishes the things that can happen, an agent subscribes to the ones it cares about, and the server calls back when they do.
The idea is simple. The details are not. Webhook delivery alone has signing, a verification handshake, renewal and retry rules, and ChatGPT’s docs and the spec don’t fully agree.
Here’s how it all works, and what I’d check before calling a server ready.
What Are MCP Events?
MCP Events is an extension to the Model Context Protocol that lets a server push notifications about things that happen upstream: an email arrives, an incident opens, an order is placed.
It was proposed as SEP-3415 on 5 October 2026. The SEP is Final, but the extension itself is still Beta, so expect small changes. The extension ID is io.modelcontextprotocol/events.
It builds on the stateless 2026-07-28 revision, which earlier revisions can’t carry. If your server is still on the 2025 handshake, migrating to 2026-07-28 comes first.
A server describes each event type with events/list. Every entry has three parts that matter:
delivery: which modes the event supports, any non-empty mix ofpoll,pushandwebhook.inputSchema: the subscription arguments, usually filters such as severity or a minimum order total.payloadSchema: the shape of thedataeach occurrence carries.
{
"name": "order.created",
"description": "Fires when an order is placed",
"delivery": ["webhook", "poll"],
"inputSchema": { "type": "object", "properties": { "min_total": { "type": "number" } } },
"payloadSchema": { "type": "object", "properties": { "orderId": { "type": "string" }, "total": { "type": "number" } } }
}
One thing it is not: a way to change state. Events only notify. The agent still acts through the server’s normal tools.
MCP Events vs Webhooks vs MCP Notifications
In webhook mode, MCP Events literally are webhooks. They use the Standard Webhooks signature scheme, the same family as Stripe’s and GitHub’s.
The difference is who sets them up. A Stripe webhook is wired once, by a person, in a dashboard. An MCP event subscription is created by the agent, at runtime, against any server.
| Product webhook | MCP Events | |
|---|---|---|
| Discovery | Read the docs | events/list with schemas |
| Who subscribes | A human, once | The agent, via events/subscribe |
| Lifetime | Until deleted | A TTL the client renews |
| Proof the endpoint wants it | Often none | Signed challenge first |
| Other modes | None | Poll and push too |
What about MCP’s existing notifications? Those, like notifications/tools/list_changed, are about the server itself. MCP Events are about the outside world the server connects to.
The Three MCP Events Delivery Modes
None of the three is mandatory. The client picks one the event offers, and the model only ever sees the events that arrive.
The official guidance: SDKs usually prefer webhook when the client has a callback endpoint, then push, then poll.
Poll: events/poll
The client asks “anything new since cursor X?”. The server holds no per-client state, which makes it the natural fit for stateless and serverless servers.
The first poll sends cursor: null, which means “start from now”: no events, just a fresh cursor. Each result carries events, cursor, truncated, hasMore and a suggested nextPollMs.
Push: events/stream
The client opens one long-lived request per subscription. The server confirms with notifications/events/active, then streams events and heartbeats down the same response.
The catch: it needs a connection that stays open. It suits local stdio servers and desktop clients, and is awkward on serverless hosting with request time limits.
Webhook: events/subscribe
The client registers an https callback URL and a signing secret, and the server POSTs each event to it. This is the mode for remote servers, and the only one ChatGPT uses.
It’s also the mode with the most rules, because the server is now calling a URL on the open internet.
| Mode | Server state | Auth required | Best for |
|---|---|---|---|
| Poll | None | No | Stateless and serverless servers |
| Push | Per open stream | No | Local stdio servers, desktop clients |
| Webhook | Per subscription, TTL-scoped | Yes | Remote servers, ChatGPT |
That auth column matters. Webhook subscriptions are keyed by the authenticated principal, so an unauthenticated server can offer poll and push but not webhook. If you need to add auth, the MCP OAuth guide covers it.
An MCP Events Webhook Subscription, Step by Step
Here’s the full lifecycle, using the spec’s own message shapes.
- Discover. The client calls
server/discoverand looks forio.modelcontextprotocol/eventsundercapabilities.extensions, then callsevents/list. - Subscribe. It calls
events/subscribewith the event name, arguments, the callback URL, awhsec_secret it generated, a cursor and a suggestedttlMs. - Verify. Before activating, the server POSTs a signed
{"type":"verification","challenge":"…"}to the URL. The endpoint must echo the challenge in a 2xx body. - Confirm. The subscribe call returns
id,refreshBefore,cursorandtruncated. - Deliver. Each event is POSTed as one signed JSON body with
eventId,name,timestamp,dataandcursor. - Renew. Before
refreshBefore, the client callsevents/subscribeagain with the same arguments. Same key, sameid, new expiry. - Stop.
events/unsubscribeends it now. Or the client just stops renewing, and it expires.
POST https://your-endpoint.example.com/hooks/abc
Content-Type: application/json
webhook-id: msg_2KWPBgLlAfxdpx2AI54pPJ85f4W
webhook-timestamp: 1739980800
webhook-signature: v1,<base64 HMAC-SHA256(secret, id + "." + timestamp + "." + body)>
X-MCP-Subscription-Id: sub_a3f1c8e2b0d49f7e
{"eventId":"evt_789","name":"order.created","timestamp":"2026-12-03T16:00:00Z",
"data":{"orderId":"ord_1234","total":150},"cursor":"cursor_xyz"}
The cursor in each delivery is a watermark, not the event’s own position. Persist the latest one and pass it on every renewal, and a lapsed subscription can replay what it missed.
Is your MCP Events server ready for ChatGPT?
MCP Playground subscribes like ChatGPT does, answers the challenge, and grades every delivery against SEP-3415 and ChatGPT’s rules.
Seven Rules MCP Events Servers Get Wrong
The protocol messages are the easy part. These are the details I see break, roughly in order of how often.
1. Signing over re-serialised JSON
The signature is HMAC-SHA256 over webhook-id.webhook-timestamp.body, using the raw body bytes. Sign a parsed-and-re-stringified object and the receiver’s check fails, even though the JSON looks identical.
2. Missing the Mcp-Name header
Clients must send Mcp-Name: <event name> on events/subscribe, unsubscribe, poll and stream. Servers reject a missing or mismatched one with 400 and HeaderMismatch (-32020).
This catches client libraries too. Generic MCP clients often set it only for tools/call and prompts/get, so check yours.
3. Delivering before verification
A server must not send events to a URL until it has confirmed the endpoint wants them. The challenge is how. Skip it and your server can be used to flood any URL someone types in.
4. Retrying the wrong failures
Retry 5xx and timeouts with exponential backoff, a few attempts over 10–15 minutes. Never retry 410 Gone or 413 Payload Too Large. Both mean “stop sending this one”.
5. Changing webhook-id on a retry
A retry keeps the same webhook-id so the receiver can deduplicate. The timestamp and signature, though, must be fresh on every attempt, or the receiver’s 5-minute window rejects it.
6. Granting more TTL than was asked
refreshBefore should be at or below the client’s suggested ttlMs. Only return null (no expiry) when the client asked with ttlMs: null, and then persist the subscription across restarts.
7. Payloads that drift from payloadSchema
The schema is a promise. Don’t send a number where it declares a string, and evolve it additively: a breaking change goes out under a new event name.
Treat event payloads as untrusted input on the agent side too. They land in a model’s context, so the same caution as tool poisoning applies.
ChatGPT MCP Events: What It Expects
ChatGPT is the first major client with MCP Events. OpenAI’s guide sets out what it needs:
- Webhook delivery only. Polling, streaming and the
gapandterminatedenvelopes aren’t supported. events/list,events/subscribeandevents/unsubscribeon the same authenticated endpoint as your tools.- A
whsec_secret decoding to 24–64 bytes, and the four headers above. - One event per request, at most 256 KiB, no retries on 410 or 413. Events may arrive out of order.
- It’s available in Work chats on web, in the desktop app with Cloud selected, and with dots.
Where ChatGPT’s docs and the spec disagree
Here’s the part no other guide mentions. As of this writing, the two documents conflict in three places.
| Detail | SEP-3415 | OpenAI’s guide |
|---|---|---|
webhook-id | Identifies the message; MUST NOT be derived from eventId | “The same value as the body’s eventId” |
| Capability | capabilities.extensions["io.modelcontextprotocol/events"] | An events capability |
| Callback error code | CallbackEndpointError = -32027 | -32015 |
My take: OpenAI’s guide reflects the draft it shipped against in September. Follow the spec, test against ChatGPT, and keep an eye on its docs. A test that reports both views beats one that silently picks a side.
Who Supports MCP Events Today?
The MCP project keeps an official extensions client matrix. Here’s what it lists for Events, plus the SDKs I’ve checked myself.
| Client or SDK | Modes (December 2026) |
|---|---|
| ChatGPT | Webhook, in Work chats |
| Hermes Agent, OpenClaw, Eve | Webhook |
| OpenCode | Push |
| fast-agent | Poll and push |
Vercel AI SDK (@ai-sdk/mcp) | Webhook, experimental (experimental_events plus a receiver helper) |
| TanStack AI | Client API for listing and subscribing |
| Official MCP TypeScript SDK | Not yet |
| Claude Code, Claude Desktop, Cursor | Not listed |
| MCP Playground | Tester (webhook and poll), Agent Studio (webhook) |
So for “Claude MCP Events”, the honest answer today is: not in Claude’s own apps. You can still give a Claude model events through a client that supports them.
One warning on SDKs. Early @ai-sdk/mcp releases followed the draft and failed against spec-compliant servers, which was fixed on 25 November. Pin a recent version.
On the server side, no big SaaS vendor ships MCP Events yet. GitHub only appears as the worked example in the spec. Most live servers today are demos and developer tools.
How to Test an MCP Events Server
Testing webhooks by hand is slow. You need a public https endpoint, the right secret, a signature check and patience for retries.
I built the MCP Events tester in MCP Playground to do the client side for you:
- Paste your server URL and token. It lists your events and checks the capability.
- Subscribe. It hosts the callback, generates the secret and answers the challenge.
- Watch deliveries arrive, each checked for signature, headers, timestamp, size and
payloadSchema. - Flip the endpoint to answer 500, 410, 413 or slowly, and see whether your server retries correctly.
- Read two verdicts: “Ready for ChatGPT?” and the SEP-3415 spec.
No server yet? Use the demo at /mcp-events-demo, listed with the other mock MCP servers. Its bug argument breaks one rule on purpose, so you can see what a failure looks like.
Then try it with an agent
The real point of events is an agent that reacts. In Agent Studio, connect an Events server and say “watch for orders over $100 and summarise each one”.
The model subscribes itself, each event drops into the chat, and it responds with the server’s tools. Try it with different models to see which ones handle event-driven work well.
Watch an agent react to MCP Events
Connect an Events server in Agent Studio and let the model subscribe, receive and act.
Open Agent Studio →Bottom line
MCP Events turn agents from things you ask into things that notice. The protocol is small, but webhook delivery has real rules, and ChatGPT’s docs still differ from the spec in places.
Build to SEP-3415, check the ChatGPT differences, and test retries and signing before you ship.
FAQ: MCP Events
Sources
Written by Nikhil Tiwari
15+ years in product development. AI enthusiast building developer tools that make complex technologies accessible to everyone.
Free MCP Tools (no install)
Build, compare & ship MCP agents
Connect any MCP server, run evals on it, compare 90+ models side-by-side, deploy hosted servers, and save reusable agents you can export as an API — all in your browser.