Skip to content

Commit f6c986d

Browse files
Merge pull request #50 from modelcontextprotocol/justin/call-tool-iserror
`CallToolResult.isError` should not be required
2 parents 02c5021 + 002f823 commit f6c986d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ export const CallToolResultSchema = ResultSchema.extend({
723723
content: z.array(
724724
z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema]),
725725
),
726-
isError: z.boolean().default(false),
726+
isError: z.boolean().default(false).optional(),
727727
});
728728

729729
/**

0 commit comments

Comments
 (0)