OptionalhttpHTTP transport information, only available when using an HTTP-based transport.
OptionalauthInfo?: AuthInfoInformation about a validated access token, provided to request handlers.
Information about the MCP request being handled.
Optional_meta?: RequestMetaMetadata from the original request.
The JSON-RPC ID of the request being handled.
The method name of the request (e.g., 'tools/call', 'ping').
Sends a notification that relates to the current request being handled.
This is used by certain transports to correctly associate related messages.
Sends a request that relates to the current request being handled.
This is used by certain transports to correctly associate related messages.
An abort signal used to communicate if the request was cancelled from the sender's side.
OptionalsessionThe session ID from the transport, if available.
OptionaltaskTask context, available when task storage is configured.
Base context provided to all request handlers.