> ## Documentation Index
> Fetch the complete documentation index at: https://gofastmcp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# models

# `fastmcp.experimental.events.models`

Wire models for the MCP Events extension (SEP-3415), poll and push delivery.

Experimental: this API may change in any release without a deprecation period.

## Classes

### `EventType` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L14](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L14)</sup>

An event type a server offers, as listed by `events/list`.

### `EventOccurrence` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L27](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L27)</sup>

One delivered event.

### `ListEventsParams` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L39](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L39)</sup>

Parameters for `events/list`.

### `PollEventsParams` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L43](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L43)</sup>

Parameters for `events/poll`: one subscription per request.

### `ListEventsResult` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L53](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L53)</sup>

Result of `events/list`.

### `PollEventsResult` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L60](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L60)</sup>

Result of `events/poll`.

### `ListEventsRequest` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L71](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L71)</sup>

Request for `events/list`.

### `PollEventsRequest` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L78](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L78)</sup>

Request for `events/poll`.

### `StreamEventsParams` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L87](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L87)</sup>

Parameters for `events/stream`: one subscription per request.

### `StreamEventsResult` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L97](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L97)</sup>

The empty result that closes an `events/stream` request.

### `StreamEventsRequest` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L103](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L103)</sup>

Request for `events/stream`.

### `StreamFrame` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L114](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L114)</sup>

Params of any `notifications/events/*` message on a push stream.

`_meta` carries the stream's subscription ID. The other fields depend on
the notification: `active` and `heartbeat` carry a cursor, `event` carries
an occurrence and the cursor after it, `error` and `terminated` an error.

### `StreamNotification` <sup>[https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp\_slim/fastmcp/experimental/events/models.py#L131](https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/experimental/events/models.py#L131)</sup>

A `notifications/events/*` message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.