@mcp-use/inspector 9.0.1-canary.0 → 10.0.0-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.
@@ -26903,7 +26903,7 @@ var Ud = class {
26903
26903
  //#region src/client/telemetry/utils.ts
26904
26904
  function of() {
26905
26905
  try {
26906
- return "9.0.1-canary.0";
26906
+ return "10.0.0-canary.0";
26907
26907
  } catch {
26908
26908
  return "0.0.0";
26909
26909
  }
@@ -48436,9 +48436,9 @@ var IA, LA, RA, zA, BA, VA, HA, UA, WA, GA, KA, qA, JA, YA, rle, ile, XA, ZA, QA
48436
48436
  }(), zue);
48437
48437
  }));
48438
48438
  //#endregion
48439
- //#region ../mcp-use/dist/chunk-4P7KGCIT.js
48439
+ //#region ../mcp-use/dist/chunk-I7RC463C.js
48440
48440
  Yp();
48441
- var Wue = "1.31.1-canary.0";
48441
+ var Wue = "1.32.0-canary.0";
48442
48442
  function VF() {
48443
48443
  return Wue;
48444
48444
  }
@@ -56265,6 +56265,30 @@ var Bpe = class {
56265
56265
  }
56266
56266
  return t.refresh_token ? this._dedupedRefresh(t) : null;
56267
56267
  }
56268
+ async getClientCredentials() {
56269
+ try {
56270
+ let e = await this.clientInformation();
56271
+ return e?.client_id ? {
56272
+ client_id: e.client_id,
56273
+ ...e.client_secret ? { client_secret: e.client_secret } : {}
56274
+ } : null;
56275
+ } catch {
56276
+ return null;
56277
+ }
56278
+ }
56279
+ async getTokenEndpoint() {
56280
+ if (this._cachedMetadata?.token_endpoint) return this._cachedMetadata.token_endpoint;
56281
+ try {
56282
+ let e = await this.store.get(this.getKey("token_endpoint"));
56283
+ if (e) return e;
56284
+ let t = (await KI(this.serverUrl)).authorization_servers?.[0];
56285
+ if (!t) return null;
56286
+ let n = await JI(t);
56287
+ return n?.token_endpoint ? (this._cachedAuthServerUrl = t, this._cachedMetadata = n, await this.store.set(this.getKey("token_endpoint"), n.token_endpoint), n.token_endpoint) : null;
56288
+ } catch {
56289
+ return null;
56290
+ }
56291
+ }
56268
56292
  };
56269
56293
  async function Hpe(e) {
56270
56294
  return typeof e == "string" ? e : e instanceof URLSearchParams || e instanceof FormData ? Object.fromEntries(e.entries()) : e instanceof Blob ? await e.text() : e;
@@ -56399,6 +56423,12 @@ var Upe = class {
56399
56423
  invalidateCredentials(e) {
56400
56424
  return this.session.invalidateCredentials(e);
56401
56425
  }
56426
+ getTokenEndpoint() {
56427
+ return this.session.getTokenEndpoint();
56428
+ }
56429
+ getClientCredentials() {
56430
+ return this.session.getClientCredentials();
56431
+ }
56402
56432
  async prepareAuthorizationUrl(e) {
56403
56433
  return this.rewriteResourceIfLocalProxy(e), this.session.storeAuthorizationState(e, {
56404
56434
  extraProviderOptions: {
@@ -57278,14 +57308,27 @@ function dme(e) {
57278
57308
  let e = await Ie.current.tokens?.();
57279
57309
  if (!ze.current) return B("debug", "Connection aborted after token fetch for auth tokens - component unmounted"), "failed";
57280
57310
  if (e?.access_token) {
57281
- let t = e.expires_in ? Date.now() + e.expires_in * 1e3 : void 0;
57311
+ let t = e.expires_in ? Date.now() + e.expires_in * 1e3 : void 0, n = null, r = null;
57312
+ try {
57313
+ n = await Ie.current.getTokenEndpoint?.() ?? null;
57314
+ } catch {
57315
+ n = null;
57316
+ }
57317
+ try {
57318
+ r = await Ie.current.getClientCredentials?.() ?? null;
57319
+ } catch {
57320
+ r = null;
57321
+ }
57282
57322
  if (!ze.current) return B("debug", "Skipping state update - component unmounted"), "failed";
57283
57323
  Pe({
57284
57324
  access_token: e.access_token,
57285
57325
  token_type: e.token_type || "Bearer",
57286
57326
  expires_at: t,
57287
57327
  refresh_token: e.refresh_token,
57288
- scope: e.scope
57328
+ scope: e.scope,
57329
+ ...n ? { token_endpoint: n } : {},
57330
+ ...r?.client_id ? { client_id: r.client_id } : {},
57331
+ ...r?.client_secret ? { client_secret: r.client_secret } : {}
57289
57332
  });
57290
57333
  }
57291
57334
  }
@@ -145947,7 +145990,7 @@ function J2e({ children: e }) {
145947
145990
  }) });
145948
145991
  }
145949
145992
  //#endregion
145950
- //#region ../mcp-use/dist/chunk-MMRBRXYD.js
145993
+ //#region ../mcp-use/dist/chunk-HDFPTC56.js
145951
145994
  Yp();
145952
145995
  function K9(e) {
145953
145996
  let t = /* @__PURE__ */ W(() => {
@@ -146135,9 +146178,33 @@ var X2e = class e {
146135
146178
  }
146136
146179
  return t.refresh_token ? this._dedupedRefresh(t) : null;
146137
146180
  }
146181
+ async getClientCredentials() {
146182
+ try {
146183
+ let e = await this.clientInformation();
146184
+ return e?.client_id ? {
146185
+ client_id: e.client_id,
146186
+ ...e.client_secret ? { client_secret: e.client_secret } : {}
146187
+ } : null;
146188
+ } catch {
146189
+ return null;
146190
+ }
146191
+ }
146192
+ async getTokenEndpoint() {
146193
+ if (this._cachedMetadata?.token_endpoint) return this._cachedMetadata.token_endpoint;
146194
+ try {
146195
+ let e = await this.store.get(this.getKey("token_endpoint"));
146196
+ if (e) return e;
146197
+ let t = (await KI(this.serverUrl)).authorization_servers?.[0];
146198
+ if (!t) return null;
146199
+ let n = await JI(t);
146200
+ return n?.token_endpoint ? (this._cachedAuthServerUrl = t, this._cachedMetadata = n, await this.store.set(this.getKey("token_endpoint"), n.token_endpoint), n.token_endpoint) : null;
146201
+ } catch {
146202
+ return null;
146203
+ }
146204
+ }
146138
146205
  };
146139
146206
  //#endregion
146140
- //#region ../mcp-use/dist/chunk-GGLNYKLW.js
146207
+ //#region ../mcp-use/dist/chunk-G3E7PJXG.js
146141
146208
  Yp();
146142
146209
  var Z2e = class {
146143
146210
  static {
@@ -146294,6 +146361,12 @@ var $2e = class {
146294
146361
  invalidateCredentials(e) {
146295
146362
  return this.session.invalidateCredentials(e);
146296
146363
  }
146364
+ getTokenEndpoint() {
146365
+ return this.session.getTokenEndpoint();
146366
+ }
146367
+ getClientCredentials() {
146368
+ return this.session.getClientCredentials();
146369
+ }
146297
146370
  async prepareAuthorizationUrl(e) {
146298
146371
  return this.rewriteResourceIfLocalProxy(e), this.session.storeAuthorizationState(e, {
146299
146372
  extraProviderOptions: {