Skip to content

Commit 9334495

Browse files
Merge pull request #39 from modelcontextprotocol/justin/is-error-optional
`CallToolResult.isError` should be optional
2 parents a4031e2 + 1026bb7 commit 9334495

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/sdk",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "Model Context Protocol implementation for TypeScript",
55
"type": "module",
66
"main": "./dist/index.js",

Diff for: src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ export const CallToolResultSchema = ResultSchema.extend({
719719
content: z.array(
720720
z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema]),
721721
),
722-
isError: z.boolean(),
722+
isError: z.boolean().default(false),
723723
});
724724

725725
/**

0 commit comments

Comments
 (0)