@ai-sdk/mcp 0.0.9 → 0.0.11

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,18 @@
1
1
  # @ai-sdk/mcp
2
2
 
3
+ ## 0.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d1dbe5d]
8
+ - @ai-sdk/provider-utils@3.0.18
9
+
10
+ ## 0.0.10
11
+
12
+ ### Patch Changes
13
+
14
+ - 638de7b: feat(mcp): add the possibility to define client version in mcp client definition
15
+
3
16
  ## 0.0.9
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -422,6 +422,8 @@ interface MCPClientConfig {
422
422
  onUncaughtError?: (error: unknown) => void;
423
423
  /** Optional client name, defaults to 'ai-sdk-mcp-client' */
424
424
  name?: string;
425
+ /** Optional client version, defaults to '1.0.0' */
426
+ version?: string;
425
427
  /**
426
428
  * Optional client capabilities to advertise during initialization
427
429
  *
package/dist/index.d.ts CHANGED
@@ -422,6 +422,8 @@ interface MCPClientConfig {
422
422
  onUncaughtError?: (error: unknown) => void;
423
423
  /** Optional client name, defaults to 'ai-sdk-mcp-client' */
424
424
  name?: string;
425
+ /** Optional client version, defaults to '1.0.0' */
426
+ version?: string;
425
427
  /**
426
428
  * Optional client capabilities to advertise during initialization
427
429
  *
package/dist/index.js CHANGED
@@ -1571,6 +1571,7 @@ var DefaultMCPClient = class {
1571
1571
  constructor({
1572
1572
  transport: transportConfig,
1573
1573
  name: name3 = "ai-sdk-mcp-client",
1574
+ version = CLIENT_VERSION,
1574
1575
  onUncaughtError,
1575
1576
  capabilities
1576
1577
  }) {
@@ -1604,7 +1605,7 @@ var DefaultMCPClient = class {
1604
1605
  };
1605
1606
  this.clientInfo = {
1606
1607
  name: name3,
1607
- version: CLIENT_VERSION
1608
+ version
1608
1609
  };
1609
1610
  }
1610
1611
  async init() {