@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/dist/index.mjs
CHANGED
|
@@ -1942,6 +1942,9 @@ var DefaultMCPClient = class {
|
|
|
1942
1942
|
var _a4;
|
|
1943
1943
|
(_a4 = options == null ? void 0 : options.abortSignal) == null ? void 0 : _a4.throwIfAborted();
|
|
1944
1944
|
const result = await self.callTool({ name: name3, args, options });
|
|
1945
|
+
if (result.isError) {
|
|
1946
|
+
return result;
|
|
1947
|
+
}
|
|
1945
1948
|
if (outputSchema != null) {
|
|
1946
1949
|
return self.extractStructuredContent(result, outputSchema, name3);
|
|
1947
1950
|
}
|