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.