@ai-sdk/mcp 1.0.38 → 1.0.39

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.39
4
+
5
+ ### Patch Changes
6
+
7
+ - 7beadf0: feat(mcp): propagate the server name through dynamic tool parts
8
+ - Updated dependencies [7beadf0]
9
+ - @ai-sdk/provider-utils@4.0.26
10
+
3
11
  ## 1.0.38
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1990,6 +1990,9 @@ var DefaultMCPClient = class {
1990
1990
  const toolWithExecute = schemas === "automatic" ? (0, import_provider_utils5.dynamicTool)({
1991
1991
  description,
1992
1992
  title: resolvedTitle,
1993
+ providerMetadata: {
1994
+ mcp: { name: this.clientInfo.name }
1995
+ },
1993
1996
  inputSchema: (0, import_provider_utils5.jsonSchema)({
1994
1997
  ...inputSchema,
1995
1998
  properties: (_b3 = inputSchema.properties) != null ? _b3 : {},
@@ -2000,6 +2003,9 @@ var DefaultMCPClient = class {
2000
2003
  }) : (0, import_provider_utils5.tool)({
2001
2004
  description,
2002
2005
  title: resolvedTitle,
2006
+ providerMetadata: {
2007
+ mcp: { name: this.clientInfo.name }
2008
+ },
2003
2009
  inputSchema: schemas[name3].inputSchema,
2004
2010
  ...outputSchema != null ? { outputSchema } : {},
2005
2011
  execute,