Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Callback for progress notifications.
Link copied to clipboard
Implements MCP protocol framing on top of a pluggable transport, including features like request/response linking, notifications, and progress.
Link copied to clipboard
open class ProtocolOptions(var enforceStrictCapabilities: Boolean = false, var timeout: Duration = DEFAULT_REQUEST_TIMEOUT)
Additional initialization options.
Link copied to clipboard
class ReadBuffer
Buffers a continuous stdio stream into discrete JSON-RPC messages.
Link copied to clipboard
class RequestHandlerExtra
Extra data given to request handlers.
Link copied to clipboard
class RequestOptions(relatedRequestId: RequestId? = null, resumptionToken: String? = null, onResumptionToken: (String) -> Unit? = null, val onProgress: ProgressCallback? = null, val timeout: Duration = DEFAULT_REQUEST_TIMEOUT) : TransportSendOptions
Options that can be given per request.
Link copied to clipboard
open class TransportSendOptions(val relatedRequestId: RequestId? = null, val resumptionToken: String? = null, val onResumptionToken: (String) -> Unit? = null)
Options for sending a JSON-RPC message through transport.
Link copied to clipboard
Abstract class representing a WebSocket transport for the Model Context Protocol (MCP). Handles communication over a WebSocket session.