Skip to main content

Module mcp_session

Module mcp_session 

Source
Expand description

SQLite-backed MCP session manager for persistent sessions across restarts

This module provides a SessionManager implementation that persists session state to SQLite, allowing clients to reconnect after server restarts.

Sessions older than 30 days (configurable) are automatically cleaned up on startup.

Structs§

SqliteSessionConfig
Configuration for SQLite session storage
SqliteSessionManager
SQLite-backed session manager

Enums§

SqliteSessionError
Error types for SQLite session manager

Constants§

DEFAULT_SESSION_MAX_AGE
Default session cleanup age: 30 days