@mcp-use/client 2.2.2 → 2.2.3-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.
@@ -128,7 +128,7 @@ var Logger = class {
128
128
  var logger = Logger.get();
129
129
 
130
130
  // src/utils/version.ts
131
- var VERSION = "2.2.2";
131
+ var VERSION = "2.2.3-canary.0";
132
132
  function getPackageVersion() {
133
133
  return VERSION;
134
134
  }
@@ -2989,6 +2989,9 @@ var HttpConnector = class extends BaseConnector {
2989
2989
  throw error;
2990
2990
  }
2991
2991
  await this.completeInteractiveAuthorization();
2992
+ if (!this.connected || !this.client) {
2993
+ throw new Error("MCP client is not connected");
2994
+ }
2992
2995
  return operation();
2993
2996
  }
2994
2997
  }