@ai-sdk/mcp 1.0.40 → 1.0.41

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
+ ## 1.0.41
4
+
5
+ ### Patch Changes
6
+
7
+ - f591416: feat(ai): add toolMetadata for tool specific metdata
8
+ - Updated dependencies [f591416]
9
+ - @ai-sdk/provider-utils@4.0.27
10
+
3
11
  ## 1.0.40
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2004,8 +2004,8 @@ var DefaultMCPClient = class {
2004
2004
  const toolWithExecute = schemas === "automatic" ? (0, import_provider_utils5.dynamicTool)({
2005
2005
  description,
2006
2006
  title: resolvedTitle,
2007
- providerMetadata: {
2008
- mcp: { clientName: this.clientInfo.name }
2007
+ metadata: {
2008
+ clientName: this.clientInfo.name
2009
2009
  },
2010
2010
  inputSchema: (0, import_provider_utils5.jsonSchema)({
2011
2011
  ...inputSchema,
@@ -2017,8 +2017,8 @@ var DefaultMCPClient = class {
2017
2017
  }) : (0, import_provider_utils5.tool)({
2018
2018
  description,
2019
2019
  title: resolvedTitle,
2020
- providerMetadata: {
2021
- mcp: { clientName: this.clientInfo.name }
2020
+ metadata: {
2021
+ clientName: this.clientInfo.name
2022
2022
  },
2023
2023
  inputSchema: schemas[name3].inputSchema,
2024
2024
  ...outputSchema != null ? { outputSchema } : {},