@ai-sdk/mcp 2.0.0-beta.11 → 2.0.0-beta.13
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 +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/tool/mcp-client.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/mcp",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.13",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"pkce-challenge": "^5.0.0",
|
|
36
|
-
"@ai-sdk/provider": "
|
|
37
|
-
"@ai-sdk/provider
|
|
36
|
+
"@ai-sdk/provider-utils": "5.0.0-beta.9",
|
|
37
|
+
"@ai-sdk/provider": "4.0.0-beta.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "20.17.24",
|
package/src/tool/mcp-client.ts
CHANGED
|
@@ -420,7 +420,7 @@ class DefaultMCPClient implements MCPClient {
|
|
|
420
420
|
}: {
|
|
421
421
|
name: string;
|
|
422
422
|
args: Record<string, unknown>;
|
|
423
|
-
options?: ToolExecutionOptions
|
|
423
|
+
options?: ToolExecutionOptions<{}>;
|
|
424
424
|
}): Promise<CallToolResult> {
|
|
425
425
|
try {
|
|
426
426
|
return this.request({
|
|
@@ -579,7 +579,7 @@ class DefaultMCPClient implements MCPClient {
|
|
|
579
579
|
|
|
580
580
|
const execute = async (
|
|
581
581
|
args: any,
|
|
582
|
-
options: ToolExecutionOptions
|
|
582
|
+
options: ToolExecutionOptions<{}>,
|
|
583
583
|
): Promise<unknown> => {
|
|
584
584
|
options?.abortSignal?.throwIfAborted();
|
|
585
585
|
const result = await self.callTool({ name, args, options });
|