@mcp-use/client 2.0.0-beta.6 → 2.0.0-beta.8

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
@@ -1108,7 +1108,7 @@ init_connector_telemetry();
1108
1108
  init_logging();
1109
1109
 
1110
1110
  // src/utils/version.ts
1111
- var VERSION = "2.0.0-beta.5";
1111
+ var VERSION = "2.0.0-beta.7";
1112
1112
  function getPackageVersion() {
1113
1113
  return VERSION;
1114
1114
  }
@@ -2207,6 +2207,14 @@ var OAuthSessionStore = class _OAuthSessionStore {
2207
2207
  async getTokenEndpoint() {
2208
2208
  return (await this.discoveryState())?.authorizationServerMetadata?.token_endpoint ?? null;
2209
2209
  }
2210
+ /**
2211
+ * Return the protected-resource URL selected during OAuth discovery.
2212
+ * Consumers can persist it and reuse it for server-side refresh exchanges.
2213
+ */
2214
+ async getResource() {
2215
+ const resource = (await this.discoveryState())?.resourceMetadata?.resource;
2216
+ return typeof resource === "string" ? resource : null;
2217
+ }
2210
2218
  };
2211
2219
 
2212
2220
  // src/auth/node.ts
@@ -4182,7 +4190,7 @@ var E2BCodeExecutor = class extends BaseCodeExecutor {
4182
4190
  this.SandboxClass = e2b.Sandbox;
4183
4191
  } catch (error) {
4184
4192
  throw new Error(
4185
- "@e2b/code-interpreter is not installed. The E2B code executor requires this optional dependency. Install it with: yarn add @e2b/code-interpreter"
4193
+ "@e2b/code-interpreter is not installed. The E2B code executor requires this optional dependency. Install it with: npm install @e2b/code-interpreter, pnpm add @e2b/code-interpreter, or bun add @e2b/code-interpreter"
4186
4194
  );
4187
4195
  }
4188
4196
  }