@ai-sdk/mcp 2.0.61 → 2.0.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/mcp",
3
- "version": "2.0.61",
3
+ "version": "2.0.62",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@ai-sdk/provider": "4.0.19",
35
- "@ai-sdk/provider-utils": "5.0.50",
35
+ "@ai-sdk/provider-utils": "5.0.51",
36
36
  "cross-spawn": "^7.0.6",
37
37
  "pkce-challenge": "^5.0.1"
38
38
  },
@@ -1163,7 +1163,8 @@ class DefaultMCPClient implements MCPClient {
1163
1163
  },
1164
1164
  ): McpToolSet<TOOL_SCHEMAS> {
1165
1165
  definitions = this.prepareToolDefinitions(definitions);
1166
- const tools: Record<string, Tool & { _meta?: ToolMeta }> = {};
1166
+ const tools: Record<string, Tool & { _meta?: ToolMeta }> =
1167
+ Object.create(null);
1167
1168
 
1168
1169
  for (const {
1169
1170
  name,