small fixes

This commit is contained in:
ihrpr 2025-06-24 17:09:29 +01:00
commit c20a47a79f
No known key found for this signature in database

View file

@ -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,