@mcp-use/client 2.0.1 → 2.0.2-canary.0

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.js CHANGED
@@ -1219,7 +1219,7 @@ init_connector_telemetry();
1219
1219
  init_logging();
1220
1220
 
1221
1221
  // src/utils/version.ts
1222
- var VERSION = "2.0.1";
1222
+ var VERSION = "2.0.2-canary.0";
1223
1223
  function getPackageVersion() {
1224
1224
  return VERSION;
1225
1225
  }
@@ -3654,7 +3654,7 @@ var MCPConnection = class {
3654
3654
  const protocolEra = this.protocolEra;
3655
3655
  const protocolVersion = this.negotiatedProtocolVersion;
3656
3656
  const server = this.serverInfo;
3657
- if (!protocolEra || !protocolVersion || !server) {
3657
+ if (!protocolEra || !protocolVersion) {
3658
3658
  throw new Error("MCP connection is not initialized");
3659
3659
  }
3660
3660
  const capabilities = this.serverCapabilities;
@@ -3662,7 +3662,7 @@ var MCPConnection = class {
3662
3662
  return {
3663
3663
  protocolEra,
3664
3664
  protocolVersion,
3665
- server,
3665
+ ...server ? { server } : {},
3666
3666
  capabilities,
3667
3667
  instructions: this.connector.instructions,
3668
3668
  extensions