Package dev.tachyonmcp.core.server.session
@NullMarked
package dev.tachyonmcp.core.server.session
Session management — dispatch contexts, session lifecycle events, and session storage.
-
ClassDescriptionIn-memory event log bounded to
InMemorySessionEventStore.maxEvents: appends past the cap drop the oldest entry (they remain unrecoverable — an SSE client reconnecting with aLast-Event-IDolder than the window simply misses those events, matching typical broker retention semantics).A recorded session event — request, response, notification, or cancellation.A cancellation request.A notification sent to or received from the client.An outbound (server-to-client) request.An inbound request from the client.A response sent to the client.Persists and replays session events (request/responses, notifications).Manages the lifecycle of MCP sessions.Storage abstraction for MCP sessions.AdaptsInteractionContext.sendRequest(String, Object)into the typedElicitationService/SamplingServicesurface, building wire-shaped params and parsing raw JSON responses back into domain types.