v0.4.0 · Interface
sessions
MCP session management and related features
This interface provides stateful session management for MCP servers, enabling:
- Persistent session data storage using WASI key-value stores
- Client elicitation (requesting information from clients)
- Session lifecycle management (initialize, terminate, delete)
- Async operations with pollable futures
Sessions are identified by unique IDs and can span multiple HTTP requests, allowing servers to maintain state and context across interactions.
https://spec.modelcontextprotocol.io/specification/2025-06-18/session
Type Aliases
T
output-stream
TAn output bytestream.
stream-error
TAn error for input-stream and output-stream operations.
pollable
Tpollable represents a single I/O event which may be ready, or not.bucket
Tstore-error
Telicit-request
T=========================================================================
elicit-result
Elicit result