@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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ai-sdk/mcp
2
2
 
3
+ ## 2.0.62
4
+
5
+ ### Patch Changes
6
+
7
+ - 868c475: Preserve prototype-named tools, providers, and provider metadata as own properties without changing lookup object prototypes. Prevent inherited names from resolving as registered providers or causing image metadata aggregation to fail.
8
+ - Updated dependencies [c2511c1]
9
+ - @ai-sdk/provider-utils@5.0.51
10
+
3
11
  ## 2.0.61
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3173,7 +3173,7 @@ var DefaultMCPClient = class {
3173
3173
  */
3174
3174
  toolsFromDefinitions(definitions, { schemas = "automatic" } = {}) {
3175
3175
  definitions = this.prepareToolDefinitions(definitions);
3176
- const tools = {};
3176
+ const tools = /* @__PURE__ */ Object.create(null);
3177
3177
  for (const {
3178
3178
  name: name3,
3179
3179
  title,