From 9c255d8c62eecc8f1853c8700fcdae49fe54d230 Mon Sep 17 00:00:00 2001
From: Luca Chang
Date: Tue, 18 Nov 2025 09:45:34 -0800
Subject: [PATCH] Remove deprecated taskId from cancellation notification
---
docs/specification/draft/schema.mdx | 4 ++--
schema/draft/schema.json | 4 ----
schema/draft/schema.ts | 5 -----
3 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/docs/specification/draft/schema.mdx b/docs/specification/draft/schema.mdx
index b733d5c58..fe6f3b7ed 100644
--- a/docs/specification/draft/schema.mdx
+++ b/docs/specification/draft/schema.mdx
@@ -289,9 +289,9 @@ for task augmentation of specific request types in their capabilities.
interface CancelledNotificationParams {
_meta?: { [key: string]: unknown };
reason?: string;
requestId?: RequestId;
taskId?: string;
}_meta?: { [key: string]: unknown }
## `notifications/initialized`
diff --git a/schema/draft/schema.json b/schema/draft/schema.json
index 74d82ac68..0fca4c857 100644
--- a/schema/draft/schema.json
+++ b/schema/draft/schema.json
@@ -295,10 +295,6 @@
"requestId": {
"$ref": "#/$defs/RequestId",
"description": "The ID of the request to cancel.\n\nThis MUST correspond to the ID of a request previously issued in the same direction.\nThis MUST be provided for cancelling non-task requests.\nThis MUST NOT be used for cancelling tasks (use the `tasks/cancel` request instead)."
- },
- "taskId": {
- "description": "Deprecated: Use the `tasks/cancel` request instead of this notification for task cancellation.",
- "type": "string"
}
},
"type": "object"
diff --git a/schema/draft/schema.ts b/schema/draft/schema.ts
index e76587cda..134c297a3 100644
--- a/schema/draft/schema.ts
+++ b/schema/draft/schema.ts
@@ -210,11 +210,6 @@ export interface CancelledNotificationParams extends NotificationParams {
*/
requestId?: RequestId;
- /**
- * Deprecated: Use the `tasks/cancel` request instead of this notification for task cancellation.
- */
- taskId?: string;
-
/**
* An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
*/
Parameters for a
notifications/cancellednotification.