@ai-sdk/mcp 0.0.29 → 0.0.32
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 +23 -0
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @ai-sdk/mcp
|
|
2
2
|
|
|
3
|
+
## 0.0.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [26165ee]
|
|
8
|
+
- @ai-sdk/provider-utils@3.0.36
|
|
9
|
+
|
|
10
|
+
## 0.0.31
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [77d33c0]
|
|
15
|
+
- @ai-sdk/provider-utils@3.0.35
|
|
16
|
+
|
|
17
|
+
## 0.0.30
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 9b56bd6: Fetch all paginated tool definitions when creating an MCP tool set.
|
|
22
|
+
- Updated dependencies [2fff9f1]
|
|
23
|
+
- Updated dependencies [f364ea0]
|
|
24
|
+
- @ai-sdk/provider-utils@3.0.34
|
|
25
|
+
|
|
3
26
|
## 0.0.29
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1908,8 +1908,15 @@ var DefaultMCPClient = class {
|
|
|
1908
1908
|
var _a3;
|
|
1909
1909
|
const tools = {};
|
|
1910
1910
|
try {
|
|
1911
|
-
|
|
1912
|
-
|
|
1911
|
+
let listToolsResult = await this.listTools();
|
|
1912
|
+
const toolDefinitions = [...listToolsResult.tools];
|
|
1913
|
+
while (listToolsResult.nextCursor != null) {
|
|
1914
|
+
listToolsResult = await this.listTools({
|
|
1915
|
+
params: { cursor: listToolsResult.nextCursor }
|
|
1916
|
+
});
|
|
1917
|
+
toolDefinitions.push(...listToolsResult.tools);
|
|
1918
|
+
}
|
|
1919
|
+
for (const { name: name3, description, inputSchema } of toolDefinitions) {
|
|
1913
1920
|
if (schemas !== "automatic" && !Object.prototype.hasOwnProperty.call(schemas, name3)) {
|
|
1914
1921
|
continue;
|
|
1915
1922
|
}
|