Skip to main content

Module bus_bridge

Module bus_bridge 

Source
Expand description

MCP-to-Bus bridge

Connects to the HTTP server’s /v1/bus/stream SSE endpoint and buffers recent BusEnvelopes in a ring buffer. The MCP server exposes this data through tools (bus_events, bus_status) and resources (codetether://bus/events/recent).

The bridge runs as a background tokio task and reconnects automatically on transient failures.

Structs§

BusBridge
A read-only bridge from the HTTP bus SSE stream into the MCP process.
BusBridgeStatus
Status snapshot returned by BusBridge::status.