From 8b0c34cda948797221290d7cc8cea76a512ce223 Mon Sep 17 00:00:00 2001 From: Anton Pidkuiko MacBook Date: Mon, 24 Nov 2025 22:48:24 +0000 Subject: [PATCH] Make params optional in McpUiInitializedNotificationSchema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Notifications sent without params (e.g., `{ method: "ui/notifications/initialized" }`) were being rejected by the schema validation because params was required. This makes params optional so notifications without explicit params are accepted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 40553ad..d58bfc5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -221,7 +221,7 @@ export type McpUiInitializeResult = z.infer; export const McpUiInitializedNotificationSchema = z.object({ method: z.literal("ui/notifications/initialized"), - params: z.object({}), + params: z.object({}).optional(), }); export type McpUiInitializedNotification = z.infer< typeof McpUiInitializedNotificationSchema