@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1968,6 +1968,9 @@ var DefaultMCPClient = class {
|
|
|
1968
1968
|
var _a4;
|
|
1969
1969
|
(_a4 = options == null ? void 0 : options.abortSignal) == null ? void 0 : _a4.throwIfAborted();
|
|
1970
1970
|
const result = await self.callTool({ name: name3, args, options });
|
|
1971
|
+
if (result.isError) {
|
|
1972
|
+
return result;
|
|
1973
|
+
}
|
|
1971
1974
|
if (outputSchema != null) {
|
|
1972
1975
|
return self.extractStructuredContent(result, outputSchema, name3);
|
|
1973
1976
|
}
|