From 15bd2dc7aa6a703d9e26eaae6700ecba0c2678c4 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Thu, 14 Nov 2024 14:07:16 +0000 Subject: [PATCH] Fix cancelled notification method name --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 5b989606..5b9fb664 100644 --- a/src/types.ts +++ b/src/types.ts @@ -162,7 +162,7 @@ export const EmptyResultSchema = ResultSchema.strict(); * A client MUST NOT attempt to cancel its `initialize` request. */ export const CancelledNotificationSchema = NotificationSchema.extend({ - method: z.literal("cancelled"), + method: z.literal("notifications/cancelled"), params: BaseNotificationParamsSchema.extend({ /** * The ID of the request to cancel.