From 7631cdb6d1c2f10761d4a3a0217b4a3a5410a5ec Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Mon, 11 Nov 2024 21:27:02 +0000 Subject: [PATCH] `CallToolResult.isError` should not be required --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 0ba6fa2f..ad097f95 100644 --- a/src/types.ts +++ b/src/types.ts @@ -719,7 +719,7 @@ export const CallToolResultSchema = ResultSchema.extend({ content: z.array( z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema]), ), - isError: z.boolean().default(false), + isError: z.boolean().default(false).optional(), }); /**