Module session

Source
Expand description

Client session management

This module provides session management for MCP clients, including connection state tracking, notification handling, and automatic reconnection capabilities.

Structs§

ClientSession
Client session that manages connection lifecycle and notifications
LoggingNotificationHandler
Default notification handler that logs notifications
ProgressHandler
Progress notification handler
ResourceUpdateHandler
Resource update notification handler
SessionConfig
Session configuration
SessionStats
Session statistics
ToolListChangedHandler
Tool list changed notification handler

Enums§

SessionState
Session state

Traits§

NotificationHandler
Notification handler trait