small fixes
This commit is contained in:
parent
e76faf6a18
commit
c20a47a79f
1 changed files with 53 additions and 57 deletions
|
|
@ -200,7 +200,7 @@ export class McpServer {
|
|||
}
|
||||
}
|
||||
|
||||
if (tool.outputSchema && (result.isError !== true)) {
|
||||
if (tool.outputSchema && !result.isError) {
|
||||
if (!result.structuredContent) {
|
||||
throw new McpError(
|
||||
ErrorCode.InvalidParams,
|
||||
|
|
|
|||
Loading…
Reference in a new issue