Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · mcp

One read of Model Context Protocolmcp-20261119T150714Z

2 pages moved out of 363 read.

Pages moved 2 significant first
Pages read 363 in this capture
Captured 15:07 UTC
Corpus hash 545958c4b99f corpus-hash

What this read moved

1-2 of 2

seps/3415-events-extension New page · 1284 lines, new page

# SEP-3415: Events Extension ## Abstract ## Motivation ## Specification ### Extension Identifier ### Working Group and Extension Maintainers ### Capability Negotiation ### Delivery Modes ### Listing Available Events #### Request: `events/list` #### Response #### Dynamic event types #### Event type removal and breaking changes ### Event Occurrences ### Poll-Based Delivery #### Request: `events/poll` #### Response ### Push-Based Delivery #### Request: `events/stream` #### Event delivery #### Lifecycle #### Cursor advancement ### Webhook-Based Delivery #### Subscribing: `events/subscribe` #### Subscription TTL #### Subscription identity #### Webhook event delivery #### Non-event webhook bodies #### Webhook delivery status #### Webhook security #### Unsubscribing: `events/unsubscribe` ### Cursor Lifecycle ### Subscription Termination ### Ordering and Delivery Guarantees ### Client-Owned Subscription State ### Streamable HTTP: Routing Headers #### Custom headers from subscription arguments ### Error Handling ### Reservations ## Rationale ### Choice of delivery modes ### Cursors, replay and reliability ### Webhook design ### Error codes ### Relationship to existing primitives ### Related work ### Out of scope for this revision ## Backward Compatibility ## Security Implications ### Threat model ### Event payloads are untrusted data ### Payload minimality ### Authorization ### Governance ## Reference Implementation ## Open Questions ## Appendix A: SDK Guidance (non-normative) ### Server SDK guidance ### Client SDK guidance #### Delivery mode selection #### How each mode works #### Delivering events to the model ## Appendix B: End-to-End Example, a GitHub MCP Server with Webhook Delivery

A whole new page. There's nothing to diff it against, so here is what it says.

# SEP-3415: Events Extension

> Events Extension

Final

Extensions Track

> [!NOTE]
>
> This SEP has reached Final status and is preserved as a historical record of
> the design as accepted. Changes made to the protocol after finalization are
> not reflected here. Refer to the [current
> specification](https://modelcontextprotocol.io/specification/latest.md) and its changelog for authoritative
> requirements.

| Field | Value |
| - | - |
| **SEP** | 3415 |
| **Title** | Events Extension |
| **Status** | Final |
| **Type** | Extensions Track |
| **Created** | 2026-10-05 |
| **Author(s)** | Peter Alexander ([@poita](https://github.com/poita)) |
| **Sponsor** | Peter Alexander ([@poita](https://github.com/poita)) |
| **PR** | [#3415](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/3415) |

***

## Abstract

This SEP defines Events, an extension that lets an MCP client subscribe to things that happen in an upstream system, such as a Slack message, a GitHub push or a PagerDuty incident, and have an agent react when they occur without the user being present.

A server lists its event types with `events/list`. Each event type has a name, an `inputSchema` for subscription arguments, a `payloadSchema`, and the delivery modes it supports. A client subscribes with `(name, arguments)` and receives event occurrences of the form `{eventId, name, timestamp, data, cursor}`.

There are three delivery modes, advertised per event type, and none is mandatory. Poll (`events/poll`) is request/response. Push (`events/stream`) is a long-lived request that delivers events as notifications. Webhook (`events/subscribe`) registers an `https` callback URL, and the server POSTs signed events to it under a TTL that the client refreshes. An opaque, server-defined cursor lets a client resume after a disconnect. Replay is optional per event type, and `truncated: true` signals that events were skipped.

The client owns the canonical list of subscriptions. Authorization uses the same MCP principal as tools, and event payloads are untrusted data, like tool results.

## Motivation

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, such as a new email, a push to a repository or a production incident. Today a client learns about server-side changes only by polling or by holding a connection open, and there is no standard way for a server to say what can be watched, with which parameters, and what will be delivered.

The notifications MCP already has do not cover this.

* **They are content-addressed and carry no parameters.** `notifications/resources/updated` says that a URI changed, and the `list_changed` family says that a list changed. Neither can express "a P1 incident was created for service X", because there are no subscription arguments, no payload schema and no payload.
* **They need a live connection.** They are delivered only on an open `subscriptions/listen` stream. A client that is not connected receives nothing, and there is no way to deliver to a client that cannot hold a stream open.
* **They cannot be resumed.** There is no cursor, so whatever happens during a disconnect is lost, and the client cannot tell that it missed anything.

The deployments that need events are also disjoint. A stateless or serverless server cannot hold a connection per subscriber. A client behind NAT has no public endpoint to receive a callback. A battery- or cost-sensitive client should not poll. A single delivery mechanism strands at least one of these, which is why this extension defines three (see [Rationale](#rationale)).

[SEP-1686](https://modelcontextprotocol.io/seps/1686-tasks.md) listed webhook-style completion notifications as a future consideration for Tasks. The [Triggers & Events Working Group](https://modelcontextprotocol.io/community/triggers-events/charter.md) was chartered to define that mechanism in general form: how a server tells a client that something happened, with a defined subscription lifecycle, delivery semantics and ordering guarantees that hold across transports. This SEP is that definition.

## Specification

This extension is defined for protocol revision `2026-07-28` and later. It relies on per-request client capabilities, `server/discover` and `subscriptions/listen`, which earlier revisions do not have.

Two conventions apply throughout:

* Every result this extension defines is a standard `Result` and carries `resultType: "complete"`.
* Error codes are referred to by name. [Error Handling](#error-handling) gives the numeric codes.

### Extension Identifier

This extension is identified as `io.modelcontextprotocol/events`.

### Working Group and Extension Maintainers

The extension is owned by the [Triggers & Events Working Group](https://modelcontextprotocol.io/community/triggers-events/charter.md). Its Extension Maintainers are the Working Group leads, currently Clare Liguori (@clareliguori) and Peter Alexander (@poita).

The extension is incubated in [`experimental-ext-triggers-events`](https://github.com/modelcontextprotocol/experimental-ext-triggers-events). When this SEP is accepted, the specification is published in an official extension repository as [SEP-2133](https://modelcontextprotocol.io/seps/2133-extensions.md) describes.

### Capability Negotiation

Events is declared through [Extension Negotiation](https://modelcontextprotocol.io/specification/2026-07-28/basic/versioning.md#extension-negotiation): the identifier appears as a key in the `extensions` field of capabilities, mapped to the extension's settings object.

A server advertises event support in the capabilities it returns from `server/discover`:

```jsonc theme={null}
{
  "result": {
    // Other response fields...
    "capabilities": {
      "extensions": {
        "io.modelcontextprotocol/events": {
          "listChanged": true,
        },
      },
    },
  },
}
```

The server's settings object has one member: `listChanged` (boolean, optional, default `false`), which says whether the server sends `notifications/events/list_changed` (see [Dynamic event types](#dynamic-event-types)). An empty settings object declares event support with no list-change notifications.

A client MAY declare the same identifier with an empty settings object, in its per-request capabilities, to indicate that it understands the extension:

```jsonc theme={null}
{
  // Other request fields...
  "params": {
    "_meta": {
      "io.modelcontextprotocol/clientCapabilities": {
        "extensions": {
          "io.modelcontextprotocol/events": {},
        },
      },
    },
  },
}
```

**Fallback.** All `events/*` requests are client-initiated. A client MUST NOT send them to a server that has not advertised the extension, and a server that does not offer it answers any `events/*` request with `-32601` (Method not found). The only message this extension adds outside an `events/*` request is `notifications/events/list_changed`, which a client receives only if it opts in on a `subscriptions/listen` stream. Neither party changes its core protocol behavior when the other does not support Events.

### Delivery Modes

There are three delivery modes, with different subscription mechanisms. An event type advertises any non-empty subset of them.

* **Poll.** The client calls `events/poll` with the event name, arguments and cursor. There is no separate subscribe step: the first poll with a `null` cursor bootstraps the subscription. The server holds no protocol-required state.
* **Push.** The client opens a long-lived `events/stream` request per subscription. The server delivers events on the request's response stream (Streamable HTTP) or as notifications on stdout (stdio). Closing or cancelling the request ends the subscription. Server state is scoped to the lifetime of the request.
* **Webhook.** The client calls `events/subscribe` to register a callback URL, and the server POSTs events to that URL as they occur. The subscription has a TTL negotiated at subscribe time: the client suggests a lifetime and the server grants one, possibly with no expiry (see [Subscription TTL](#subscription-ttl)). Unless it was granted no expiry, the client refreshes by calling `events/subscribe` again before the TTL expires. If it stops, the subscription expires and the server reclaims its resources. Webhook is designed for remote servers where a long-lived connection is impractical.

The client SDK chooses the mode and runs the loop. The model sees only the events that arrive.

### Listing Available Events

#### Request: `events/list`

```jsonc theme={null}
// params (optional)
{ "cursor": "..." } // pagination
```

#### Response

```jsonc theme={null}
{
  "resultType": "complete",
  "events": [
    {
      "name": "email.received",
      "description": "Fires when a new email arrives in the inbox",
      "delivery": ["poll"],
      "inputSchema": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Glob pattern for sender address",
          },
          "subject_contains": { "type": "string" },
          "redact_pii": {
            "type": "boolean",
            "default": false,
            "description": "Strip PII from event payloads",
          },
          "include_body_preview": {
            "type": "boolean",
            "default": true,
            "description": "Include a snippet of the email body",
          },
        },
      },
      "payloadSchema": {
        "type": "object",
        "properties": {
          "messageId": { "type": "string" },
          "from": { "type": "string" },
          "subject": { "type": "string" },
          "receivedAt": { "type": "string", "format": "date-time" },
        },
      },
    },
    {
      "name": "incident.created",
      "description": "Fires when a new PagerDuty incident is created",
      "delivery": ["webhook", "push", "poll"],
      "inputSchema": {
        "type": "object",
        "properties": {
          "severity": { "type": "string", "enum": ["P1", "P2", "P3", "P4"] },
          "service": { "type": "string" },
          "deduplicate_window_seconds": {
            "type": "integer",
            "default": 0,
            "description": "Suppress duplicate alerts within this window",
          },
        },
      },
      "payloadSchema": { "...": "..." },
      "_meta": { "...": "..." }, // optional; same semantics as on Tool/Resource/Prompt
    },
  ],
  "nextCursor": "...", // present when more pages are available; same semantics as tools/list
}
```

* `delivery` lists the delivery modes the event type supports. It is any non-empty subset of `"poll"`, `"push"` and `"webhook"`. No mode is mandatory. A client that cannot use any of the listed modes cannot subscribe to the event type.
* `inputSchema` is a JSON Schema for valid subscription arguments. Arguments may be filters (which narrow the event stream), transforms (which modify payloads) or other server-defined configuration. This mirrors the `inputSchema`/`arguments` pairing on tools. As on tools, a property MAY carry an `x-mcp-header` annotation, which mirrors that argument into an HTTP header (see [Custom headers from subscription arguments](#custom-headers-from-subscription-arguments)).
* `payloadSchema` is a JSON Schema for `data` in delivered events.

**Schema evolution.** A subscription can outlive the `events/list` response it was created from. Servers SHOULD therefore evolve an event type's `inputSchema` and `payloadSchema` additively for the lifetime of its `name`:

* New optional fields MAY be added.
* Existing fields SHOULD NOT be removed, renamed or retyped.
* Enums SHOULD NOT be narrowed.
* `inputSchema` SHOULD NOT be tightened so that previously accepted `arguments` become invalid. A webhook refresh re-sends them, and would fail with `InvalidParams`.

A breaking change SHOULD instead be published under a new event name and served alongside the old one for a migration period, after which the old name is removed (see [Event type removal and breaking changes](#event-type-removal-and-breaking-changes)).

#### Dynamic event types

If the set of available event types changes at runtime, or the descriptor of any of them changes (`description`, `delivery`, `inputSchema`, `payloadSchema`), a server that declared `listChanged: true` sends `notifications/events/list_changed`. Examples are a plugin being loaded, a data source being connected, or a schema gaining a field. The client SHOULD call `events/list` again to refresh its registry of event types. This is consistent with `notifications/tools/list_changed` and `notifications/resources/list_changed`.

Like the core `list_changed` notifications, it is delivered only on a `subscriptions/listen` stream, and only when the client opted in. This extension adds one field to the `notifications` filter of `subscriptions/listen`:

```typescript theme={null}
export interface SubscriptionFilter {
  // Other existing fields...
  /**
   * If true, receive notifications/events/list_changed.
   */
  eventsListChanged?: boolean;
}
```

The server echoes `eventsListChanged` in `notifications/subscriptions/acknowledged` if it agrees to honor it. A server that did not declare `listChanged: true` omits it from the acknowledged filter.

#### Event type removal and breaking changes

When a server stops offering an event type, or changes its `inputSchema` or `payloadSchema` incompatibly in place (contrary to *Schema evolution* above), existing subscriptions to that name no longer hold a valid contract. The server SHOULD end them with each mode's termination signal (see [Subscription Termination](#subscription-termination)): `notifications/events/terminated` on push streams, and a `terminated` envelope to webhook subscriptions.

The `error` is:

* `NotFound` with `data: {"kind": "event"}` when the type was removed.
* `Unsupported` with `data: {"feature": "payloadSchema" | "inputSchema", "reason": "schema_changed"}` when it was changed in place.

It is not `Forbidden`, because the principal's access is unchanged. The client SDK therefore fetches `events/list` again and resubscribes against the current descriptor, and does not treat the termination as an authorization failure. Purely additive changes MUST NOT terminate subscriptions.

Poll holds no server-side subscription to terminate. A poll against a removed name already returns `NotFound`. For an in-place change, a server that wants to force rediscovery MAY mint cursors that encode a schema epoch and answer a stale one with the same `Unsupported` error. Otherwise poll clients pick up the change on their next `events/list`.

### Event Occurrences

Each entry in a poll result's `events[]`, the params of `notifications/events/event`, and the body of a webhook event delivery is an `EventOccurrence`. Push notifications additionally carry the stream's subscription ID in `_meta` (see [Push-Based Delivery](#push-based-delivery)). Webhook delivery also sends control bodies that are not events (see [Non-event webhook bodies](#non-event-webhook-bodies)).

| Field | Type | Required | Description |
| - | - | - | - |
| `eventId` | string | yes | Stable identifier of the upstream event, for deduplication within a subscription. |
| `name` | string | yes | Event type name. |
| `timestamp` | string (ISO 8601) | yes | When the event occurred. |
| `data` | object | yes | Payload that conforms to the event type's `payloadSchema`. |
| `cursor` | string \| null | no | Subscription position after this event. Push and webhook only; poll carries the cursor at the response level. `null` when the event type does not support replay (see [Cursor Lifecycle](#cursor-lifecycle)). |
| `_meta` | object | no | Reserved for protocol and extension metadata, consistent with `_meta` on other MCP types. Not governed by `payloadSchema`. |

`eventId` identifies the upstream event and enables client-side deduplication within a subscription, for example across polls after a crash and restart. It is assigned by the server. When the upstream source provides a stable event identifier (a Stripe `evt_*`, a GitHub delivery GUID, a Kafka offset, a Gmail message ID), the server SHOULD use that value as `eventId`. The same upstream event surfaced by more than one path, such as a webhook emit and a poll backfill, then carries the same `eventId`, and deduplication works. Deduplication is scoped to a subscription (its `name` and `arguments`), whichever delivery mode carries it. One upstream event can match several subscriptions, such as "messages in this channel" and "messages from this person", and then arrives on each with the same `eventId`. Each subscription receives it: the same `eventId` on two different subscriptions is not a duplicate. A server SDK generates an `eventId` only when the author supplies none.

### Poll-Based Delivery

The client SDK calls `events/poll` at the interval the server recommends. This is a protocol-level operation, not an LLM tool call.

```mermaid theme={null}
sequenceDiagram
    autonumber
    participant SDK as Client SDK
    participant Server as MCP Server

    loop every nextPollMs
        SDK->>Server: events/poll {name, arguments, cursor}
        Server-->>SDK: {events[], cursor, truncated, hasMore, nextPollMs}
    end
    Note over SDK: LLM invoked only when<br/>events[] is non-empty
```

#### Request: `events/poll`

Each `events/poll` request carries one subscription. A client with several subscriptions runs one poll loop per subscription.

```jsonc theme={null}
{
  "name": "email.received",
  "arguments": {
    "from": "*@anthropic.com",
    "redact_pii": true,
  },
  "cursor": null, // null = start from now
  "maxAgeMs": 300000, // optional; do not replay events older than this many milliseconds (see Cursor Lifecycle)
  "maxEvents": 50, // optional; cap events returned
}
```

#### Response

```jsonc theme={null}
{
  "resultType": "complete",
  "events": [
    {
      "eventId": "evt_001",
      "name": "email.received",
      "timestamp": "2026-02-19T15:30:00Z",

Cut at 300 lines. The page has the rest.

seps/index Changed · +2 / -1 lines

from line 12
1212 
1313## Summary
1414 
15* **Final**: 45
1516* **Accepted**: 1
16* **Final**: 44
1717 
1818## All SEPs
1919 
2020| SEP | Title | Status | Type | Created |
2121| - | - | - | - | - |
22| [SEP-3415](https://modelcontextprotocol.io/seps/3415-events-extension.md) | Events Extension | Final | Extensions Track | 2026-10-05 |
2223| [SEP-3398](https://modelcontextprotocol.io/seps/3398-release-cycle-updates.md) | Release Cycle Updates | Accepted | Process | 2026-09-17 |
2324| [SEP-3392](https://modelcontextprotocol.io/seps/3392-extension-lifecycle.md) | Extension Lifecycle | Final | Process | 2026-09-25 |
2425| [SEP-2663](https://modelcontextprotocol.io/seps/2663-tasks-extension.md) | Tasks Extension | Final | Extensions Track | 2026-04-27 |
Feedback