Protocol
Implements MCP protocol framing on top of a pluggable transport, including features like request/response linking, notifications, and progress.
Properties
A handler to invoke for any notification types that do not have their own handler installed.
A handler to invoke for any request types that do not have their own handler installed.
registered notification handlers keyed by method name
registered progress callbacks keyed by progress token
registered request handlers keyed by method name
pending response handlers keyed by request ID
Functions
A method to check if a request handler is supported by the local side, for the given method to be handled.
Emits a notification, which is a one-way message that does not expect a response.
Removes the notification handler for the given method.
Removes the request handler for the given method.
Sends a request and waits for a response.
Registers a handler to invoke when this protocol object receives a notification with the given method.
Registers a handler to invoke when this protocol object receives a request with the given method.