@ai-sdk/mcp 1.0.72 → 1.0.74
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 +16 -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/dist/mcp-stdio/index.js +19 -4
- package/dist/mcp-stdio/index.js.map +1 -1
- package/dist/mcp-stdio/index.mjs +9 -4
- package/dist/mcp-stdio/index.mjs.map +1 -1
- package/package.json +4 -2
- package/src/tool/mcp-client.ts +11 -2
- package/src/tool/mcp-stdio/create-child-process.ts +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @ai-sdk/mcp
|
|
2
2
|
|
|
3
|
+
## 1.0.74
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e7d359e: Fetch all paginated tool definitions when creating an MCP tool set.
|
|
8
|
+
- Updated dependencies [5642849]
|
|
9
|
+
- @ai-sdk/provider-utils@4.0.48
|
|
10
|
+
|
|
11
|
+
## 1.0.73
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- b8e4215: fix(mcp): support spawning command shims such as `npx` on Windows
|
|
16
|
+
- Updated dependencies [2d172fb]
|
|
17
|
+
- @ai-sdk/provider-utils@4.0.47
|
|
18
|
+
|
|
3
19
|
## 1.0.72
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -2531,8 +2531,15 @@ var DefaultMCPClient = class {
|
|
|
2531
2531
|
async tools({
|
|
2532
2532
|
schemas = "automatic"
|
|
2533
2533
|
} = {}) {
|
|
2534
|
-
|
|
2535
|
-
|
|
2534
|
+
let definitions = await this.listTools();
|
|
2535
|
+
const tools = [...definitions.tools];
|
|
2536
|
+
while (definitions.nextCursor != null) {
|
|
2537
|
+
definitions = await this.listTools({
|
|
2538
|
+
params: { cursor: definitions.nextCursor }
|
|
2539
|
+
});
|
|
2540
|
+
tools.push(...definitions.tools);
|
|
2541
|
+
}
|
|
2542
|
+
return this.toolsFromDefinitions({ ...definitions, tools }, {
|
|
2536
2543
|
schemas
|
|
2537
2544
|
});
|
|
2538
2545
|
}
|