CancelledNotification extension type
This notification can be sent by either side to indicate that it is cancelling a previously-issued request.
The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
This notification indicates that the result will be unused, so any associated processing SHOULD cease.
A client MUST NOT attempt to cancel its initialize
request.
- on
- Implemented types
Constructors
- CancelledNotification.new({required RequestId requestId, String? reason, Meta? meta})
-
factory
-
CancelledNotification.fromMap(Map<
String, Object?> _value)
Properties
- meta → Meta?
-
This parameter name is reserved by MCP to allow clients and servers to
attach additional metadata to their notifications.
no setterinherited
- reason → String?
-
An optional string describing the reason for the cancellation. This MAY be
logged or presented to the user.
no setter
- requestId → RequestId?
-
The ID of the request to cancel.
no setter
Constants
- methodName → const String