Expand description
MCP logging integration via tracing.
Provides a custom tracing subscriber that forwards log events to MCP clients.
Maps Rust tracing levels to MCP LoggingLevel.
Structs§
- LogEvent
- Lightweight event sent from
McpLoggingLayerto consumer task via unbounded channel. - McpLogging
Layer - Custom tracing Layer that bridges tracing events to
MCPclient via unbounded channel. Sends lightweightLogEventto channel; consumer task inon_initializeddrains withrecv_many.
Functions§
- level_
to_ mcp - Maps
tracing::LeveltoMCPLoggingLevel.