Skip to content

Commit

Permalink
Merge pull request #39 from modelcontextprotocol/justin/is-error-opti…
Browse files Browse the repository at this point in the history
…onal

`CallToolResult.isError` should be optional
  • Loading branch information
jspahrsummers authored Nov 7, 2024
2 parents a4031e2 + 1026bb7 commit 9334495
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/sdk",
"version": "0.3.1",
"version": "0.3.2",
"description": "Model Context Protocol implementation for TypeScript",
"type": "module",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ export const CallToolResultSchema = ResultSchema.extend({
content: z.array(
z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema]),
),
isError: z.boolean(),
isError: z.boolean().default(false),
});

/**
Expand Down

0 comments on commit 9334495

Please sign in to comment.