@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 +8 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/tool/mcp-client.ts +6 -0
package/CHANGELOG.md
CHANGED
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,
|