@ai-sdk/mcp 2.0.36 → 2.0.37
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 +9 -0
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/tool/mcp-client.ts +11 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @ai-sdk/mcp
|
|
2
2
|
|
|
3
|
+
## 2.0.37
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1175434: Fetch all paginated tool definitions when creating an MCP tool set.
|
|
8
|
+
- Updated dependencies [591d25b]
|
|
9
|
+
- @ai-sdk/provider@4.0.8
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.30
|
|
11
|
+
|
|
3
12
|
## 2.0.36
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -3051,8 +3051,15 @@ var DefaultMCPClient = class {
|
|
|
3051
3051
|
async tools({
|
|
3052
3052
|
schemas = "automatic"
|
|
3053
3053
|
} = {}) {
|
|
3054
|
-
|
|
3055
|
-
|
|
3054
|
+
let definitions = await this.listTools();
|
|
3055
|
+
const tools = [...definitions.tools];
|
|
3056
|
+
while (definitions.nextCursor != null) {
|
|
3057
|
+
definitions = await this.listTools({
|
|
3058
|
+
params: { cursor: definitions.nextCursor }
|
|
3059
|
+
});
|
|
3060
|
+
tools.push(...definitions.tools);
|
|
3061
|
+
}
|
|
3062
|
+
return this.toolsFromDefinitions({ ...definitions, tools }, {
|
|
3056
3063
|
schemas
|
|
3057
3064
|
});
|
|
3058
3065
|
}
|