Session management facade for MCP protocol sessions.
MCP sessions track the negotiated protocol version and client state
across requests. The session store is pluggable via the ConduitMcp.Session.Store
behaviour.
Configuration
Session configuration is passed through the transport options:
{ConduitMcp.Transport.StreamableHTTP,
server_module: MyServer,
session: [
store: ConduitMcp.Session.EtsStore, # default
ttl: :timer.minutes(30) # default
]}Set session: false to disable session management entirely.
Summary
Functions
Creates a new session.
Deletes a session.
Generates a unique session ID.
Retrieves a session by ID.
Updates session metadata.
Functions
Creates a new session.
Deletes a session.
Generates a unique session ID.
Retrieves a session by ID.
Updates session metadata.