Your MCP Event Subscription Drops the Events That Matter

The MCP Events extension lets an agent subscribe to a Slack message, a GitHub push, or a PagerDuty incident and act when nobody is asking. The extension is explicit that it gives you no exactly-once delivery and no cross-subscription ordering, and that emit-only event types are at-most-once across a server restart.

Viral RuparelNo. 103 of 10411 min read

An MCP event stream dropping occurrences across a server restart and a long disconnect, with a gate that reconciles authoritative state through a tool call before the agent acts.
Figure. From a trusted event feed to a reconcile-before-act gate

A subscription that went quiet

A team I was helping had wired an agent to react to incidents. The upstream system exposed an MCP server, the agent subscribed to a "P1 opened" event type, and when an occurrence arrived it paged the on-call group, posted a summary, and opened a tracking record. In a demo it was clean. The incident fired, the agent reacted inside a second, everyone nodded. They shipped it behind a feature flag for one team.

Three weeks in, a P1 opened during a routine deploy of the MCP server itself. The server bounced, came back in four seconds, and the agent never paged anyone. No error, no retry, no log line that said anything was wrong. The subscription was still open. The agent was still running. The event that mattered had simply fallen into the gap between a disconnect and a reconnect, and nothing in the pipeline was built to notice that a gap had happened. The team had treated the subscription as a reliable feed of everything that occurred. The extension they were building on never promised that, and says so in plain text.

What the Events extension actually gives you

The MCP Events extension, SEP-3415, reached Final status in late 2026, and the SDKs are only now catching up, which is why most teams are meeting its delivery contract for the first time this quarter. It fills a real gap. MCP is request-driven: a user or a model asks, and a server answers. Agents increasingly need to act on things that happen when nobody is asking. The notifications MCP already had could not express this. They are content-addressed and carry no parameters, so notifications/resources/updated can say a URI changed but cannot say "a P1 was opened on the payments service."

The extension gives a server a way to advertise what can be watched. A server lists its event types with events/list. Each type has a name, an inputSchema for subscription arguments, a payloadSchema, and the delivery modes it supports. A client subscribes with a name and arguments, and receives occurrences of the form {eventId, name, timestamp, data, cursor}. There are three delivery modes, advertised per event type, and none is mandatory. Poll, through events/poll, is request and response. Push, through events/stream, is a long-lived request that delivers events as notifications. Webhook, through events/subscribe, registers an https callback the server signs and POSTs to under a TTL the client refreshes.

{
  "eventId": "evt_9f2a7c",
  "name": "incident.opened",
  "timestamp": "2026-12-01T09:14:22Z",
  "data": { "severity": "P1", "service": "payments", "id": "INC-4821" },
  "cursor": "c_01JEXP4K3",
  "truncated": false
}

Two fields on that occurrence carry the whole reliability story, and they are easy to skim past. The cursor is an opaque, server-defined token that lets a client resume after a disconnect. And truncated, when true, signals that events were skipped. The spec hands you a flag whose only job is to tell you the feed has a hole in it. If your code never reads that flag, you have decided to ignore the one thing the server went out of its way to tell you.

Why push is an extension, not a protocol feature

It helps to understand why server-initiated delivery is an opt-in extension rather than a core capability. The 2026-07-28 revision made the base protocol stateless, removing protocol-level sessions and the initialize handshake so that every request is a self-contained unit the server can serve on any replica. That same revision deprecated Roots, Sampling, and Logging. A stateless request-response core has no natural place for a server to push, so push comes back as a layered extension with its own, deliberately modest, contract rather than as a protocol guarantee.

That matters because engineers carry a mental model from sessioned systems: open a stream, and you will see everything that happens while it is open. On a stateless base with a bolt-on event layer, that model is wrong. The connection is not load-bearing. The cursor is. If you lose the connection and do not resume from your last cursor, you have not paused the feed, you have torn a hole in it. This is the same lesson the stateless-server move taught about state you thought the connection was keeping for you: once the transport stops remembering, you own the remembering.

The guarantees you do not get

Here is the section of SEP-3415 to read twice. The extension is explicit that it provides no protocol-level guarantees of event ordering, exactly-once delivery, or transactional consistency. There are no logical clocks, no sequence numbers, and no ordering constraints across subscriptions. What it provides instead is narrower and worth stating exactly.

Cursors give you resumability, so a client can pick up where it left off after a disconnect or a crash. The eventId gives you client-side deduplication within a subscription, so you can detect and discard duplicates that arise during reconnection. Ordering is per subscription only: for poll and push, events within one subscription arrive in the order the server produced them, but webhook delivery is best-effort because each event is retried independently, so concurrent requests and retries can reorder arrivals. Nothing is ordered across subscriptions in any mode.

The delivery guarantee is the part that bit the incident team. The extension offers at-least-once delivery in all three modes only when the cursor is backed by a durable upstream and the client replays from its last known cursor on reconnect or restart. The sentence that follows is the one everyone misses: emit-only event types are at-most-once across server restarts, because the in-memory buffer and its cursors do not survive. Exactly-once requires application-level deduplication by eventId. This is not a quality-of-implementation footnote. FastMCP's events support is still marked experimental, and its push mode is poll-driven under the hood, so its latency is the poll interval. The standard resumability mechanism underneath, SSE replay keyed by a last-event id, only replays what the server still holds in a bounded buffer. A long enough disconnect, or a server without a durable store, and the events are gone.

The spec draws the conclusion for you. Clients and agents should be designed to tolerate out-of-order and duplicate events, and agents that need stronger guarantees should use tools to read authoritative state, and should not rely solely on event payloads. That one sentence is the design brief for everything below.

Treat events as hints, reconcile against authoritative state

The fix is a change of posture. An event is not a fact you act on. It is a wake signal that names something to go check. The authoritative answer always comes from a tool call that reads current state, because the tool is request-response against live data, while the event is a best-effort notification that may be stale, duplicated, or missing entirely.

Concretely, every event handler splits into two steps. First, deduplicate on eventId so a redelivered occurrence does not fire the reaction twice. Then, instead of acting on data in the payload, call a tool to read the authoritative record and act on that. The payload tells you an incident named INC-4821 probably changed. The tool tells you its real current severity and status, which may already have moved on by the time you react.

# One subscription's handler. The event wakes us; the tool tells the truth.
seen = DurableSet("incident-events")      # survives a process restart

def on_event(occ):
    if occ["cursor"]:
        store_cursor(occ["name"], occ["cursor"])   # persist before acting
    if occ["eventId"] in seen:
        return                                      # duplicate, already handled
    seen.add(occ["eventId"])

    # Do not trust occ["data"]. Read authoritative state.
    inc = tools.get_incident(occ["data"]["id"])     # request-response, live
    if inc is None or inc["status"] == "resolved":
        return                                      # the event was stale
    if inc["severity"] == "P1":
        page_oncall(inc, idempotency_key=inc["id"]) # safe if it runs twice

The idempotency_key on the side effect is not optional. Because delivery is at-least-once at best and your own retries add more duplicates, the page, the ticket, and the summary all have to be safe to attempt more than once. That is the same discipline behind idempotency keys for retry-safe side effects, applied to a feed you do not control. And reading the record back before acting is exactly outcome verification by reading the side effect back, moved to the front of the handler: confirm what is true before you change anything.

Reconnecting without tearing a hole or starting a storm

The handler above is correct per event. The gap the incident team hit was between events, during the reconnect. Three things close it.

Persist the cursor before you process, not after, and resume from the stored cursor on every reconnect and every process start. The client owns all subscription state in the Events extension: there is no server method that lists your subscriptions, so your stored registry of names and cursors is the only record that you were watching anything at all. Rebuild server-side state by resuming poll or push with your stored cursors, or by re-sending an idempotent events/subscribe for webhooks.

Read truncated. When a resumed stream comes back with truncated: true, the server is telling you it could not replay everything you missed. Acting on the partial replay as if it were complete is the silent bug. Instead, trigger a full reconciliation: list the authoritative open items through a tool and diff them against what the agent currently believes, so a missed "opened" or "resolved" gets caught even though its event is gone for good.

def resume(sub):
    stream = events_stream(sub.name, cursor=load_cursor(sub.name))
    first = stream.peek()
    if first.get("truncated"):
        reconcile(sub)          # replay had holes: fall back to authoritative read
    for occ in stream:
        on_event(occ)

def reconcile(sub):
    live = tools.list_open_incidents()            # the source of truth
    known = agent_state.open_ids()
    for inc in live:
        if inc["id"] not in known and inc["severity"] == "P1":
            page_oncall(inc, idempotency_key=inc["id"])   # missed "opened"
    for stale_id in known - {i["id"] for i in live}:
        close_tracking(stale_id)                  # missed "resolved"

Reconnect carefully, or you trade a missed event for a stampede. When a shared upstream bounces, every subscribed agent reconnects at once and replays its backlog together, which is the catch-up storm that a misfiring scheduled agent produces after an outage. Back off with jitter, and cap how much of a backlog one reconnect will replay before it switches to a single reconcile. The same idempotent-wake discipline that keeps background triggers from firing twice on one logical change applies here: debounce bursts, and make the reaction safe to run again, so a replayed backlog costs you duplicate work the dedup set absorbs, not duplicate pages the on-call group sees.

The parts that bite

The dedup set has to be durable and bounded. If it lives in process memory, a restart loses it and your "exactly-once" becomes "at-least-once with confident double-pages." If it grows forever, it becomes a leak. Back it with the same store you use for cursors, key it by subscription and eventId, and expire entries past the longest replay window you will ever resume across.

Webhook reordering is a quieter trap than a missing event. Because each webhook delivery is retried independently, an "incident resolved" can arrive before the "incident opened" it closes. If your handler keys only on arrival order, it will open a tracker for an incident that is already shut. Order by the timestamp field inside the payload when order matters, and let the reconcile pass be the backstop, since it reads the single current state regardless of how the events arrived.

Treat the payload as hostile input. The extension is explicit that event payloads are untrusted data, the same caution you give a tool result, and an event can carry whatever an upstream or a compromised integration puts in it. Do not let a payload field flow into a tool argument or a prompt without validation, for the same reason you keep provenance on anything that reaches an agent's memory from outside its trust boundary. The id you read from the event is a lookup key to confirm, never an instruction to obey.

Finally, do not reach for events when a tool call would do. Subscriptions earn their keep for genuinely asynchronous, nobody-is-asking reactions. For anything the agent can check at the moment it needs the answer, a plain tool read is simpler, has a real request-response contract, and removes an entire class of delivery failure from your system. An event feed is a liability you take on deliberately, not a default.

The takeaway

The Events extension is a good addition to MCP, and it is honest about what it is. It gives you cursors, per-subscription ordering, and a truncated flag, and it tells you in plain words that it does not give you exactly-once delivery, cross-subscription ordering, or anything you can treat as a complete record of what happened. The failures come entirely from reading more into a subscription than the contract offers, which is easy to do when a demo works and the gaps only open during a restart or a long disconnect that you were not watching for.

Build on it with the posture the spec recommends. Persist the cursor, deduplicate on eventId, make every reaction idempotent, read truncated and reconcile against authoritative state through a tool whenever the stream might have a hole, and reconnect with backoff so a shared outage does not turn into a stampede. The event wakes the agent and names what to look at. A tool call tells it what is true. If you want a second set of eyes on where an agent is trusting an event feed it should be verifying, I am happy to take a look with you.

ShareXLinkedInviralruparel.com/blog/mcp-events-extension-missed-events-reconcile

Questions this essay answers

01What is the MCP Events extension?

It is an official MCP extension, SEP-3415, that lets a client subscribe to things that happen in an upstream system, such as a new email, a push to a repository, or a production incident, so an agent can react when no user is present. A server lists event types with events/list, the client subscribes with a name and arguments, and occurrences arrive as {eventId, name, timestamp, data, cursor}. There are three delivery modes, poll, push, and webhook, and none of them is mandatory. The client owns the canonical list of its subscriptions.

02Does the MCP Events extension guarantee exactly-once delivery?

No. The extension states plainly that it provides no protocol-level exactly-once delivery, no cross-subscription ordering, and no transactional consistency. It offers at-least-once delivery only when the cursor is backed by a durable upstream and the client replays from its last cursor on reconnect. Emit-only event types are at-most-once across a server restart, because the in-memory buffer and its cursors do not survive. Exactly-once is something your application builds on top, by deduplicating on eventId.

03How does an agent avoid missing MCP events across a disconnect?

Persist the opaque cursor the server returns, and resume from it on reconnect. If the server cannot replay everything you missed, it returns truncated set to true, which means events were skipped. Treat that as a signal to stop trusting the stream and read authoritative state back through an ordinary tool call before the agent acts. The event tells you something changed. The tool tells you what is true now.

04Should an agent act directly on an MCP event payload?

Only for low-stakes reactions. The extension says event payloads are untrusted data, like tool results, and that agents needing stronger guarantees should use tools to read authoritative state rather than rely on event payloads alone. Treat an event as a wake signal that names what to go check, then confirm the current state and make the side effect idempotent so a duplicate delivery does not act twice.

Working on this in production?If an agent reacts to MCP events and sometimes acts on stale or missing state, the gap is usually the delivery contract, not the model. Thirty minutes, no pitch.
Viral Ruparel

Generative AI consultant and full-stack architect. Ex-IBM, former Director of Engineering at a YC W20 startup. Writes about what breaks when agents meet reality.