Expand description
Debug and tracing utilities for MCP protocol development.
This module provides tools for debugging, inspecting, and recording MCP protocol sessions. These are primarily intended for development and testing, not production use.
§Features
- Message Inspector: Capture and analyze protocol messages
- Session Recorder: Record and replay MCP sessions
- Protocol Validator: Validate message sequences
§Example
use mcpkit_core::debug::{MessageInspector, SessionRecorder};
// Create a message inspector
let inspector = MessageInspector::new();
// Create a session recorder
let recorder = SessionRecorder::new("debug-session");Structs§
- Message
Inspector - Message inspector for capturing and analyzing protocol traffic.
- Message
Record - A record of a captured message.
- Message
Stats - Statistics about captured messages.
- Protocol
Validator - Protocol validator for checking MCP message sequences.
- Recorded
Session - A recorded MCP session.
- Session
Recorder - Session recorder for capturing MCP sessions.
- Validation
Result - Result of protocol validation.
Enums§
- Session
Event - A session event.
- Validation
Error - Protocol validation error.
Functions§
- validate_
message_ sequence - Validate a sequence of messages.