Skip to main content

Module event

Module event 

Source
Expand description

Proxy event types and the event sink trait.

ProxyEvent is the single event enum flowing through the event bus. EventSink is the trait sinks implement to consume events.

Both live in mcpr-core so any crate can:

  • Emit events (proxy engine)
  • Consume events (sinks: stderr, sqlite, cloud, prometheus, etc.)

Structs§

HeartbeatEvent
Periodic health snapshot.
NoopSink
A no-op sink that discards all events. Used when no sinks are configured.
RequestEvent
An MCP request that flowed through the proxy.
SchemaVersionCreatedEvent
A new SchemaVersion was persisted for an upstream.
SessionEndEvent
Session closed (clean transport disconnect).
SessionStartEvent
MCP session established via initialize handshake.

Enums§

ProxyEvent
All events flowing through the event bus.

Traits§

EventSink
A sink that consumes proxy events from the event bus.