@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/mcp",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "pkce-challenge": "^5.0.0",
36
36
  "@ai-sdk/provider": "3.0.10",
37
- "@ai-sdk/provider-utils": "4.0.25"
37
+ "@ai-sdk/provider-utils": "4.0.26"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "20.17.24",
@@ -613,6 +613,9 @@ class DefaultMCPClient implements MCPClient {
613
613
  ? dynamicTool({
614
614
  description,
615
615
  title: resolvedTitle,
616
+ providerMetadata: {
617
+ mcp: { name: this.clientInfo.name },
618
+ },
616
619
  inputSchema: jsonSchema({
617
620
  ...inputSchema,
618
621
  properties: inputSchema.properties ?? {},
@@ -624,6 +627,9 @@ class DefaultMCPClient implements MCPClient {
624
627
  : tool({
625
628
  description,
626
629
  title: resolvedTitle,
630
+ providerMetadata: {
631
+ mcp: { name: this.clientInfo.name },
632
+ },
627
633
  inputSchema: schemas[name].inputSchema,
628
634
  ...(outputSchema != null ? { outputSchema } : {}),
629
635
  execute,