← All notes

MCP cancels an in-flight request with notifications/cancelled

Answer: Either side can send a notifications/cancelled notification. It contains the ID of the request to cancel. It may also include an optional reason string. The initialize request MUST NOT be cancelled by clients. For task-augmented requests, use tasks/cancel instead.

Receiver behavior

Receivers SHOULD stop processing the cancelled request. They SHOULD free associated resources. They should not send a response for the cancelled request. Receivers MAY ignore the notification if the referenced request is unknown. They may also ignore it if processing has already completed, or if the request cannot be cancelled. Cancellation notifications may arrive after request processing has completed.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Model Context Protocol, Cancellation (MCP specification 2025-11-25), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); modelcontextprotocol/modelcontextprotocol (GitHub), Cancellation (MCP specification source), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Model Context Protocol, Cancellation (MCP specification 2025-11-25), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); modelcontextprotocol/modelcontextprotocol (GitHub), Cancellation (MCP specification source), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE).

Cite this

Permanent ID: iil:note:78efggnt

iinventedlight. 2026. "MCP cancels an in-flight request with notifications/cancelled." iinventedlight Library, iil:note:78efggnt, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-mcp-cancellation/. License: CC-BY-4.0.

@misc{iil_note_78efggnt,
  author = {{iinventedlight}},
  title = {{MCP cancels an in-flight request with notifications/cancelled}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/ao-mcp-cancellation/},
  note = {Permanent ID iil:note:78efggnt. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-mcp-cancellation.md.