@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/dist/index.mjs CHANGED
@@ -1978,8 +1978,8 @@ var DefaultMCPClient = class {
1978
1978
  const toolWithExecute = schemas === "automatic" ? dynamicTool({
1979
1979
  description,
1980
1980
  title: resolvedTitle,
1981
- providerMetadata: {
1982
- mcp: { clientName: this.clientInfo.name }
1981
+ metadata: {
1982
+ clientName: this.clientInfo.name
1983
1983
  },
1984
1984
  inputSchema: jsonSchema({
1985
1985
  ...inputSchema,
@@ -1991,8 +1991,8 @@ var DefaultMCPClient = class {
1991
1991
  }) : tool({
1992
1992
  description,
1993
1993
  title: resolvedTitle,
1994
- providerMetadata: {
1995
- mcp: { clientName: this.clientInfo.name }
1994
+ metadata: {
1995
+ clientName: this.clientInfo.name
1996
1996
  },
1997
1997
  inputSchema: schemas[name3].inputSchema,
1998
1998
  ...outputSchema != null ? { outputSchema } : {},