The Model Context Protocol (MCP) supports optional cancellation of in-progress requests
through notification messages. Either side can send a cancellation notification to
indicate that a previously-issued request should be terminated.
Due to network latency, cancellation notifications may arrive after request processing
has completed, and potentially after a response has already been sent.Both parties MUST handle these race conditions gracefully: