Module debug

Module debug 

Source
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§

MessageInspector
Message inspector for capturing and analyzing protocol traffic.
MessageRecord
A record of a captured message.
MessageStats
Statistics about captured messages.
ProtocolValidator
Protocol validator for checking MCP message sequences.
RecordedSession
A recorded MCP session.
SessionRecorder
Session recorder for capturing MCP sessions.
ValidationResult
Result of protocol validation.

Enums§

SessionEvent
A session event.
ValidationError
Protocol validation error.

Functions§

validate_message_sequence
Validate a sequence of messages.