Storage contract for persistent MCP sessions.
The session store is the durable authority for MCP session metadata. Runtime
stream state, queued notifications, and pending outbound requests live in
MCPKit.Runtime, not in the store.
Summary
Callbacks
Creates a new persistent MCP session.
Deletes a persisted session by id.
Fetches a persisted MCP session by id.
Marks a session as initialized after notifications/initialized.
Updates any session heartbeat or last-seen metadata after a successful request.
Callbacks
Creates a new persistent MCP session.
Implementations should persist the session id, initialization status, negotiated protocol version, and any client metadata needed by the host app.
Deletes a persisted session by id.
Returns {:error, :not_found} when the session does not exist.
Fetches a persisted MCP session by id.
Returns {:error, :not_found} when the session does not exist.
Marks a session as initialized after notifications/initialized.
Updates any session heartbeat or last-seen metadata after a successful request.