Broadcasts prompt list changed notification to all active sessions
Broadcasts resource list changed notification to all active sessions
Sends a resource updated notification to sessions subscribed to the given URI.
Unlike list-changed broadcasts (sent to all sessions), this only notifies
sessions that have subscribed to the specific resource URI via
resources/subscribe.
Broadcasts tool list changed notification to all active sessions
Creates and registers a new session
Finds sessions matching a predicate
Iterates over all active sessions
Gets an active session by ID (does NOT update activity time)
Gets all sessions of a specific transport type
Checks if a session exists and is active
Checks if there's capacity for new sessions
Marks the store as shutting down (rejects new sessions)
Removes a session from the store and updates statistics
Removes all sessions during shutdown
Updates the last activity time for a session
Interface for session CRUD storage and lifecycle management.
The built-in InMemorySessionStore uses a
Mapand is suitable for single-instance deployments.For horizontal scaling across multiple server instances, implement this interface with a shared backend (e.g., Redis, PostgreSQL).
Example: Custom implementation