fix: skip validation if tool reports error
This commit is contained in:
parent
9b99ffb18d
commit
e76faf6a18
1 changed files with 67 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ export class McpServer {
|
|||
}
|
||||
}
|
||||
|
||||
if (tool.outputSchema) {
|
||||
if (tool.outputSchema && (result.isError !== true)) {
|
||||
if (!result.structuredContent) {
|
||||
throw new McpError(
|
||||
ErrorCode.InvalidParams,
|
||||
|
|
|
|||
Loading…
Reference in a new issue