mcp-use 2.0.0-beta.21 → 2.0.0-beta.23

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.
@@ -2,9 +2,9 @@
2
2
  * Inspector CDN shell — the FastAPI `/docs` analog.
3
3
  *
4
4
  * The server ships no inspector code: it serves a tiny self-contained HTML
5
- * page whose `<script type="module">` loads the `@mcp-use/inspector` CDN
6
- * bundle entry (`dist/cdn/inspector.js`) plus lazy chunks, pinned to a major
7
- * version so the UI updates independently of SDK releases. Runtime configuration crosses to
5
+ * page whose inline module loader resolves the current `@mcp-use/inspector`
6
+ * beta and then loads that exact release's CDN bundle entry
7
+ * (`dist/cdn/inspector.js`) plus lazy chunks. Runtime configuration crosses to
8
8
  * the bundle through a serialized `window` global; the connect URL is derived
9
9
  * in the browser from the page's own origin, so the server never guesses its
10
10
  * public hostname.
@@ -19,10 +19,12 @@ import { type FetchHandler } from "./fetch-app.js";
19
19
  */
20
20
  export declare const INSPECTOR_TAG = "beta";
21
21
  /**
22
- * Default URL the inspector shell loads the UI bundle from: the
23
- * `@mcp-use/inspector` CDN build (`dist/cdn/inspector.js`) built from this
24
- * branch and served by jsDelivr from npm's {@link INSPECTOR_TAG} tag.
25
- * Override per server with {@link InspectorOptions.assetsUrl}.
22
+ * Legacy direct URL for the mutable `@mcp-use/inspector` beta-tag bundle.
23
+ * Passing this URL through {@link InspectorOptions.assetsUrl} bypasses the
24
+ * default loader that resolves the tag to one immutable release.
25
+ *
26
+ * @deprecated Leave `assetsUrl` undefined to resolve the latest beta safely,
27
+ * or provide an exact-version or self-hosted URL as an explicit override.
26
28
  */
27
29
  export declare const DEFAULT_INSPECTOR_ASSETS_URL = "https://cdn.jsdelivr.net/npm/@mcp-use/inspector@beta/dist/cdn/inspector.js";
28
30
  /**
@@ -34,10 +36,6 @@ export declare const DEFAULT_INSPECTOR_ASSETS_URL = "https://cdn.jsdelivr.net/np
34
36
  * strings and fragments are preserved.
35
37
  */
36
38
  export declare function inspectorStylesUrl(assetsUrl: string): string;
37
- /** True for the default jsDelivr `@mcp-use/inspector@*` CDN bundle URL. */
38
- export declare function isDefaultJsdelivrInspectorUrl(url: string): boolean;
39
- /** Append a per-request cache-bust query param for the default jsDelivr CDN URL. */
40
- export declare function withInspectorCacheBust(assetsUrl: string): string;
41
39
  /** True for inspector UI shell routes (SPA), excluding `/inspector/api/*`. */
42
40
  export declare function matchesInspectorShellPath(pathname: string, basePath: string): boolean;
43
41
  /** Inputs for {@link renderInspectorShell}. */
@@ -51,8 +49,8 @@ export interface InspectorShellOptions {
51
49
  /** MIME type for the favicon link tag when known. */
52
50
  faviconType?: string | undefined;
53
51
  /**
54
- * Full replacement URL for the inspector bundle script. Defaults to
55
- * {@link DEFAULT_INSPECTOR_ASSETS_URL}.
52
+ * Full replacement URL for the inspector bundle script. When omitted, the
53
+ * shell resolves {@link INSPECTOR_TAG} to one exact release before loading.
56
54
  */
57
55
  assetsUrl?: string | undefined;
58
56
  /** Hosted managed-chat URL (`window.__MANUFACT_CHAT_URL__`). */
@@ -66,10 +64,11 @@ export interface InspectorShellOptions {
66
64
  * page is not blank while the CDN bundle downloads, an inline script
67
65
  * publishing `window.__MCP_USE_INSPECTOR__ = { autoConnectUrl, basePath }`
68
66
  * — where `autoConnectUrl` is computed client-side as
69
- * `window.location.origin + basePath` — a stylesheet link for the bundle's
70
- * companion CSS (see {@link inspectorStylesUrl}), and a module script
71
- * loading the inspector bundle. All server-provided values are HTML-escaped
72
- * or JSON-serialized with `<` escaped, so config can't inject markup.
67
+ * `window.location.origin + basePath` — and either a default inline loader
68
+ * that resolves the latest beta to one immutable asset version or direct
69
+ * stylesheet and module tags for a custom asset URL. All server-provided
70
+ * values are HTML-escaped or JSON-serialized with `<` escaped, so config can't
71
+ * inject markup.
73
72
  */
74
73
  export declare function renderInspectorShell(options: InspectorShellOptions): string;
75
74
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"inspector-shell.d.ts","sourceRoot":"","sources":["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AsB,CACpC,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,OAAO,EAAE;IACP,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GACA,YAAY,GAAG,SAAS,CAqC1B;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAI1C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcp-use",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.21",
4
+ "version": "2.0.0-beta.23",
5
5
  "description": "MCP framework and CLI built on the official v2 SDK",
6
6
  "author": "mcp-use, Inc.",
7
7
  "license": "MIT",
@@ -123,8 +123,8 @@
123
123
  "typescript": "^7.0.2",
124
124
  "vitest": "^4.1.9",
125
125
  "zod": "^4.4.3",
126
- "mcp-use": "2.0.0-beta.21",
127
- "@mcp-use/client": "2.0.0-beta.9"
126
+ "mcp-use": "2.0.0-beta.23",
127
+ "@mcp-use/client": "2.0.0-beta.10"
128
128
  },
129
129
  "publishConfig": {
130
130
  "access": "public"