RequestOptions
Options that can be given per request.
Parameters
if present, used to indicate to the transport which incoming request to associate this outgoing message with.
the resumption token used to continue long-running requests that were interrupted. Allows clients to reconnect and continue from where they left off, if supported by the transport.
callback invoked when the resumption token changes, if supported by the transport. Allows clients to persist the latest token for potential reconnection.
Properties
callback for progress notifications. If set, requests progress notifications from the remote end (if supported); when progress notifications are received, this callback is invoked.
a callback that is invoked when the resumption token changes, if supported by the transport. This allows clients to persist the latest token for potential reconnection.
if present, relatedRequestId is used to indicate to the transport which incoming request to associate this outgoing message with.
the resumption token used to continue long-running requests that were interrupted. This allows clients to reconnect and continue from where they left off, if supported by the transport.
a timeout for this request. If exceeded, a McpException with code RequestTimeout is raised from Protocol.request. If not specified, DEFAULT_REQUEST_TIMEOUT is used.
Functions
Destructuring component for relatedRequestId.
Destructuring component for resumptionToken.
Destructuring component for onResumptionToken.
Destructuring component for onProgress.
Destructuring component for timeout.
Creates a copy of this RequestOptions with the specified fields replaced.
Creates a copy of this TransportSendOptions with the specified fields replaced.