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§
- Heartbeat
Event - Periodic health snapshot.
- Noop
Sink - A no-op sink that discards all events. Used when no sinks are configured.
- Request
Event - An MCP request that flowed through the proxy.
- Schema
Capture Event - Captured MCP schema discovery response, emitted BEFORE proxy rewrite.
- Schema
Stale Event - Server indicated its schema changed (e.g.,
notifications/tools/list_changed). - Session
EndEvent - Session closed (clean transport disconnect).
- Session
Start Event - MCP session established via
initializehandshake.
Enums§
- Proxy
Event - All events flowing through the event bus.
Traits§
- Event
Sink - A sink that consumes proxy events from the event bus.