@ai-sdk/mcp 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/tool/mcp-client.ts +4 -0
package/package.json
CHANGED
package/src/tool/mcp-client.ts
CHANGED
|
@@ -584,6 +584,10 @@ class DefaultMCPClient implements MCPClient {
|
|
|
584
584
|
options?.abortSignal?.throwIfAborted();
|
|
585
585
|
const result = await self.callTool({ name, args, options });
|
|
586
586
|
|
|
587
|
+
if (result.isError) {
|
|
588
|
+
return result;
|
|
589
|
+
}
|
|
590
|
+
|
|
587
591
|
if (outputSchema != null) {
|
|
588
592
|
return self.extractStructuredContent(result, outputSchema, name);
|
|
589
593
|
}
|