Merge pull request #50 from modelcontextprotocol/justin/call-tool-iserror
`CallToolResult.isError` should not be required
This commit is contained in:
commit
f6c986d81f
2 changed files with 4 additions and 3 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
|
@ -1,12 +1,13 @@
|
|||
{
|
||||
"name": "@modelcontextprotocol/sdk",
|
||||
"version": "0.3.3",
|
||||
"version": "0.4.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@modelcontextprotocol/sdk",
|
||||
"version": "0.3.3",
|
||||
"version": "0.4.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"content-type": "^1.0.5",
|
||||
"raw-body": "^3.0.0",
|
||||
|
|
|
|||
|
|
@ -723,7 +723,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(),
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue