@mcp-use/inspector 2.0.0-canary.1 → 2.0.0-canary.2
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/cdn/inspector.js +7 -6
- package/dist/client/components/chat/MessageList.d.ts.map +1 -1
- package/dist/client/index.js +40 -37
- package/dist/web/assets/{browser-CXK2_2IO.js → browser-3da6ehP1.js} +12 -12
- package/dist/web/assets/{chunk-Q66RSUAN-H_XA9_KH.js → chunk-BFRKOEF2-DtKSesPm.js} +1 -1
- package/dist/web/assets/{chunk-VNY6S7PP-rlbW5FHW.js → chunk-HHVN27UL-Bl7cVwac.js} +1 -1
- package/dist/web/assets/chunk-LG5NSHEL-jBrp5-0B.js +1 -0
- package/dist/web/assets/{chunk_array-Bw1lTtex.js → chunk_array-CZ9Igu7C.js} +1 -1
- package/dist/web/assets/{client-RKZPOU2W-y65Y8Ljb.js → client-BIQLHM6B-D9kfmbc5.js} +3 -3
- package/dist/web/assets/{client-bGfSLrjo.js → client-C8v5dgcD.js} +1 -1
- package/dist/web/assets/{dist-t5Yo0YiG.js → dist-8DnA4W8u.js} +1 -1
- package/dist/web/assets/{dist-JsQmV3pO.js → dist-BaO3qHVt.js} +1 -1
- package/dist/web/assets/{dist-BZmXa__p.js → dist-CwVubZgG.js} +1 -1
- package/dist/web/assets/{function_calling-kK7um7Ye.js → function_calling-l_oTDrug.js} +1 -1
- package/dist/web/assets/{index-C8G8qWB9.js → index-DG68X7Ml.js} +9 -9
- package/dist/web/assets/{llms-ByyTYk2T.js → llms-9ZdWocdy.js} +1 -1
- package/dist/web/assets/{messages-D4_mH1tk.js → messages-DyY5uvh8.js} +1 -1
- package/dist/web/assets/react-B4WpwZHt.js +1 -0
- package/dist/web/assets/{stdio-VB3ZLGT7-DepTPpHD.js → stdio-CSZKOJVX-ub0qSr5n.js} +1 -1
- package/dist/web/assets/{tools-kLe9X8V8.js → tools-BYpLdT-O.js} +1 -1
- package/dist/web/index.html +6 -6
- package/package.json +3 -3
- package/dist/web/assets/chunk-RPN2XO5I-CaG3Cj7E.js +0 -1
- package/dist/web/assets/react-kPay8vxd.js +0 -1
package/dist/cdn/inspector.js
CHANGED
|
@@ -26842,7 +26842,7 @@ var zd = class {
|
|
|
26842
26842
|
//#region src/client/telemetry/utils.ts
|
|
26843
26843
|
function Kd() {
|
|
26844
26844
|
try {
|
|
26845
|
-
return "2.0.0-canary.
|
|
26845
|
+
return "2.0.0-canary.2";
|
|
26846
26846
|
} catch {
|
|
26847
26847
|
return "0.0.0";
|
|
26848
26848
|
}
|
|
@@ -51035,7 +51035,7 @@ var uk, dk, Ame, jme, Mme, fk, pk, mk, hk, gk, Nme, _k, vk, yk, Pme, Fme, Ime, b
|
|
|
51035
51035
|
}(), mve);
|
|
51036
51036
|
}));
|
|
51037
51037
|
//#endregion
|
|
51038
|
-
//#region ../mcp-use/dist/chunk-
|
|
51038
|
+
//#region ../mcp-use/dist/chunk-FH66BO4Z.js
|
|
51039
51039
|
function pM() {
|
|
51040
51040
|
return yM;
|
|
51041
51041
|
}
|
|
@@ -51160,7 +51160,7 @@ function vM(e) {
|
|
|
51160
51160
|
wM.getInstance().setSource(e);
|
|
51161
51161
|
}
|
|
51162
51162
|
var yM, bM, Tve, Eve, Dve, Ove, kve, Ave, jve, Mve, Nve, Pve, Fve, xM, SM, CM, wM, TM, Ive, EM = o((() => {
|
|
51163
|
-
Pp(), Op(), jpe(), sw(), yM = "1.24.0-canary.
|
|
51163
|
+
Pp(), Op(), jpe(), sw(), yM = "1.24.0-canary.2", U(pM, "getPackageVersion"), bM = class {
|
|
51164
51164
|
static {
|
|
51165
51165
|
U(this, "BaseTelemetryEvent");
|
|
51166
51166
|
}
|
|
@@ -58057,7 +58057,7 @@ var Exe, Dxe, mN, hN, gN, _N, vN, yN, bN, xN, SN, CN, wN, TN, EN, DN, ON, kN, AN
|
|
|
58057
58057
|
};
|
|
58058
58058
|
}));
|
|
58059
58059
|
//#endregion
|
|
58060
|
-
//#region ../mcp-use/dist/chunk-
|
|
58060
|
+
//#region ../mcp-use/dist/chunk-HHVN27UL.js
|
|
58061
58061
|
function HN(e, t) {
|
|
58062
58062
|
return {
|
|
58063
58063
|
onSampling: e?.onSampling ?? e?.samplingCallback ?? t?.onSampling ?? t?.samplingCallback,
|
|
@@ -58486,7 +58486,7 @@ var Fxe, WN, GN, KN, qN = o((() => {
|
|
|
58486
58486
|
};
|
|
58487
58487
|
}));
|
|
58488
58488
|
//#endregion
|
|
58489
|
-
//#region ../mcp-use/dist/chunk-
|
|
58489
|
+
//#region ../mcp-use/dist/chunk-BFRKOEF2.js
|
|
58490
58490
|
function Ixe(e) {
|
|
58491
58491
|
let t = Object.keys(e.mcpServers ?? {});
|
|
58492
58492
|
wM.getInstance().trackMCPClientInit({
|
|
@@ -166213,6 +166213,7 @@ var QIt = (0, j.memo)(({ messages: e, isLoading: t, serverId: n, readResource: r
|
|
|
166213
166213
|
let t = e[e.length - 1];
|
|
166214
166214
|
if (t.role === "user") return !0;
|
|
166215
166215
|
if (t.role === "assistant") {
|
|
166216
|
+
if (t.parts && t.parts.length > 0) return !1;
|
|
166216
166217
|
let e = typeof t.content == "string" ? t.content : Array.isArray(t.content) ? t.content.map((e) => typeof e == "string" ? e : e.text || JSON.stringify(e)).join("") : JSON.stringify(t.content);
|
|
166217
166218
|
return !(e && e.trim().length > 0);
|
|
166218
166219
|
}
|
|
@@ -166921,7 +166922,7 @@ var aLt, x3, oLt, sLt, cLt, lLt = o((() => {
|
|
|
166921
166922
|
if (e.if && e.then) return this.parseConditional(e);
|
|
166922
166923
|
if (!e.properties && e.additionalProperties && typeof e.additionalProperties == "object") {
|
|
166923
166924
|
let t = this.parseSchema(e.additionalProperties);
|
|
166924
|
-
return
|
|
166925
|
+
return Px({}).catchall(t);
|
|
166925
166926
|
}
|
|
166926
166927
|
let t = {};
|
|
166927
166928
|
return this.processObjectProperties(e, t), this.processAdditionalProperties(e, Px(t));
|
|
@@ -1 +1 @@
|
|
|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C,EAAE,KAAK,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9B,MAAM,CAAC,EAAE,GAAG,CAAC;KACd,CAAC,CAAC;CACJ;AAED,UAAU,gBAAgB;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,CACZ,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,iBAAiB,EAAE,KAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,wFAAwF;IACxF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,4HASnB,gBAAgB,6CA+RpB,CAAC"}
|
package/dist/client/index.js
CHANGED
|
@@ -5177,7 +5177,7 @@ var init_module = __esm({
|
|
|
5177
5177
|
}
|
|
5178
5178
|
});
|
|
5179
5179
|
|
|
5180
|
-
// ../mcp-use/dist/chunk-
|
|
5180
|
+
// ../mcp-use/dist/chunk-FH66BO4Z.js
|
|
5181
5181
|
import { RESOURCE_MIME_TYPE } from "@modelcontextprotocol/ext-apps";
|
|
5182
5182
|
import {
|
|
5183
5183
|
CreateMessageRequestSchema,
|
|
@@ -5345,12 +5345,12 @@ function setTelemetrySource(source) {
|
|
|
5345
5345
|
Tel.getInstance().setSource(source);
|
|
5346
5346
|
}
|
|
5347
5347
|
var VERSION, _a3, BaseTelemetryEvent, _a4, MCPAgentExecutionEvent, _a5, ServerRunEvent, _a6, ServerInitializeEvent, _a7, ServerToolCallEvent, _a8, ServerResourceCallEvent, _a9, ServerPromptCallEvent, _a10, ServerContextEvent, _a11, MCPClientInitEvent, _a12, ConnectorInitEvent, _a13, ClientAddServerEvent, _a14, ClientRemoveServerEvent, USER_ID_STORAGE_KEY, cachedEnvironment, _a15, Telemetry2, Tel, _a16, BaseConnector, _a17, ConnectionManager;
|
|
5348
|
-
var
|
|
5349
|
-
"../mcp-use/dist/chunk-
|
|
5348
|
+
var init_chunk_FH66BO4Z = __esm({
|
|
5349
|
+
"../mcp-use/dist/chunk-FH66BO4Z.js"() {
|
|
5350
5350
|
"use strict";
|
|
5351
5351
|
init_chunk_QWQYAQCK();
|
|
5352
5352
|
init_chunk_3GQAWCBQ();
|
|
5353
|
-
VERSION = "1.24.0-canary.
|
|
5353
|
+
VERSION = "1.24.0-canary.2";
|
|
5354
5354
|
__name(getPackageVersion2, "getPackageVersion");
|
|
5355
5355
|
BaseTelemetryEvent = (_a3 = class {
|
|
5356
5356
|
}, __name(_a3, "BaseTelemetryEvent"), _a3);
|
|
@@ -6620,7 +6620,7 @@ var init_chunk_Z6II4UCS = __esm({
|
|
|
6620
6620
|
}
|
|
6621
6621
|
});
|
|
6622
6622
|
|
|
6623
|
-
// ../mcp-use/dist/chunk-
|
|
6623
|
+
// ../mcp-use/dist/chunk-HHVN27UL.js
|
|
6624
6624
|
import {
|
|
6625
6625
|
Client
|
|
6626
6626
|
} from "@modelcontextprotocol/sdk/client/index.js";
|
|
@@ -6685,10 +6685,10 @@ function createConnectorFromConfig(serverConfig, connectorOptions) {
|
|
|
6685
6685
|
throw new Error("Cannot determine connector type from config");
|
|
6686
6686
|
}
|
|
6687
6687
|
var _a18, SseConnectionManager, _a19, HttpConnector, _a20, MCPSession, _a21, BaseMCPClient;
|
|
6688
|
-
var
|
|
6689
|
-
"../mcp-use/dist/chunk-
|
|
6688
|
+
var init_chunk_HHVN27UL = __esm({
|
|
6689
|
+
"../mcp-use/dist/chunk-HHVN27UL.js"() {
|
|
6690
6690
|
"use strict";
|
|
6691
|
-
|
|
6691
|
+
init_chunk_FH66BO4Z();
|
|
6692
6692
|
init_chunk_QWQYAQCK();
|
|
6693
6693
|
init_chunk_3GQAWCBQ();
|
|
6694
6694
|
SseConnectionManager = (_a18 = class extends ConnectionManager {
|
|
@@ -7945,7 +7945,7 @@ var init_chunk_VNY6S7PP = __esm({
|
|
|
7945
7945
|
}
|
|
7946
7946
|
});
|
|
7947
7947
|
|
|
7948
|
-
// ../mcp-use/dist/chunk-
|
|
7948
|
+
// ../mcp-use/dist/chunk-BFRKOEF2.js
|
|
7949
7949
|
import {
|
|
7950
7950
|
discoverOAuthProtectedResourceMetadata,
|
|
7951
7951
|
discoverAuthorizationServerMetadata,
|
|
@@ -8255,11 +8255,11 @@ async function onMcpAuthorization() {
|
|
|
8255
8255
|
}
|
|
8256
8256
|
}
|
|
8257
8257
|
var _a22, BrowserMCPClient, _a23, BrowserOAuthClientProvider;
|
|
8258
|
-
var
|
|
8259
|
-
"../mcp-use/dist/chunk-
|
|
8258
|
+
var init_chunk_BFRKOEF2 = __esm({
|
|
8259
|
+
"../mcp-use/dist/chunk-BFRKOEF2.js"() {
|
|
8260
8260
|
"use strict";
|
|
8261
|
-
|
|
8262
|
-
|
|
8261
|
+
init_chunk_HHVN27UL();
|
|
8262
|
+
init_chunk_FH66BO4Z();
|
|
8263
8263
|
init_chunk_QWQYAQCK();
|
|
8264
8264
|
init_chunk_3GQAWCBQ();
|
|
8265
8265
|
__name(trackBrowserClientInit, "trackBrowserClientInit");
|
|
@@ -14248,11 +14248,11 @@ var init_chunk_UJPHRNQP = __esm({
|
|
|
14248
14248
|
}
|
|
14249
14249
|
});
|
|
14250
14250
|
|
|
14251
|
-
// ../mcp-use/dist/chunk-
|
|
14251
|
+
// ../mcp-use/dist/chunk-LG5NSHEL.js
|
|
14252
14252
|
import { z as z2 } from "zod";
|
|
14253
14253
|
var _a24, JSONSchemaToZod;
|
|
14254
|
-
var
|
|
14255
|
-
"../mcp-use/dist/chunk-
|
|
14254
|
+
var init_chunk_LG5NSHEL = __esm({
|
|
14255
|
+
"../mcp-use/dist/chunk-LG5NSHEL.js"() {
|
|
14256
14256
|
"use strict";
|
|
14257
14257
|
init_chunk_3GQAWCBQ();
|
|
14258
14258
|
JSONSchemaToZod = (_a24 = class {
|
|
@@ -14730,7 +14730,7 @@ var init_chunk_RPN2XO5I = __esm({
|
|
|
14730
14730
|
}
|
|
14731
14731
|
if (!schema.properties && schema.additionalProperties && typeof schema.additionalProperties === "object") {
|
|
14732
14732
|
const valueSchema = this.parseSchema(schema.additionalProperties);
|
|
14733
|
-
return z2.
|
|
14733
|
+
return z2.object({}).catchall(valueSchema);
|
|
14734
14734
|
}
|
|
14735
14735
|
const shape = {};
|
|
14736
14736
|
this.processObjectProperties(schema, shape);
|
|
@@ -27976,18 +27976,18 @@ var init_stdio_transport = __esm({
|
|
|
27976
27976
|
}
|
|
27977
27977
|
});
|
|
27978
27978
|
|
|
27979
|
-
// ../mcp-use/dist/stdio-
|
|
27980
|
-
var
|
|
27981
|
-
__export(
|
|
27979
|
+
// ../mcp-use/dist/stdio-CSZKOJVX.js
|
|
27980
|
+
var stdio_CSZKOJVX_exports = {};
|
|
27981
|
+
__export(stdio_CSZKOJVX_exports, {
|
|
27982
27982
|
StdioConnector: () => StdioConnector
|
|
27983
27983
|
});
|
|
27984
27984
|
import { Client as Client2 } from "@modelcontextprotocol/sdk/client/index.js";
|
|
27985
27985
|
import process2 from "process";
|
|
27986
27986
|
var _a38, StdioConnectionManager, _a39, StdioConnector;
|
|
27987
|
-
var
|
|
27988
|
-
"../mcp-use/dist/stdio-
|
|
27987
|
+
var init_stdio_CSZKOJVX = __esm({
|
|
27988
|
+
"../mcp-use/dist/stdio-CSZKOJVX.js"() {
|
|
27989
27989
|
"use strict";
|
|
27990
|
-
|
|
27990
|
+
init_chunk_FH66BO4Z();
|
|
27991
27991
|
init_chunk_QWQYAQCK();
|
|
27992
27992
|
init_chunk_3GQAWCBQ();
|
|
27993
27993
|
init_stdio_transport();
|
|
@@ -28131,9 +28131,9 @@ var init_stdio_VB3ZLGT7 = __esm({
|
|
|
28131
28131
|
}
|
|
28132
28132
|
});
|
|
28133
28133
|
|
|
28134
|
-
// ../mcp-use/dist/client-
|
|
28135
|
-
var
|
|
28136
|
-
__export(
|
|
28134
|
+
// ../mcp-use/dist/client-BIQLHM6B.js
|
|
28135
|
+
var client_BIQLHM6B_exports = {};
|
|
28136
|
+
__export(client_BIQLHM6B_exports, {
|
|
28137
28137
|
BaseCodeExecutor: () => BaseCodeExecutor,
|
|
28138
28138
|
E2BCodeExecutor: () => E2BCodeExecutor,
|
|
28139
28139
|
MCPClient: () => MCPClient,
|
|
@@ -28273,12 +28273,12 @@ function trackNodeClientInit(config, codeMode, callbacks) {
|
|
|
28273
28273
|
}).catch((e2) => logger.debug(`Failed to track MCPClient init: ${e2}`));
|
|
28274
28274
|
}
|
|
28275
28275
|
var _a40, BaseCodeExecutor, _a41, E2BCodeExecutor, vm, vmCheckAttempted, _a42, VMCodeExecutor, _a43, CodeModeConnector, _a44, MCPClient;
|
|
28276
|
-
var
|
|
28277
|
-
"../mcp-use/dist/client-
|
|
28276
|
+
var init_client_BIQLHM6B = __esm({
|
|
28277
|
+
"../mcp-use/dist/client-BIQLHM6B.js"() {
|
|
28278
28278
|
"use strict";
|
|
28279
|
-
|
|
28280
|
-
|
|
28281
|
-
|
|
28279
|
+
init_chunk_LG5NSHEL();
|
|
28280
|
+
init_chunk_HHVN27UL();
|
|
28281
|
+
init_chunk_FH66BO4Z();
|
|
28282
28282
|
init_chunk_QWQYAQCK();
|
|
28283
28283
|
init_chunk_3GQAWCBQ();
|
|
28284
28284
|
init_fs();
|
|
@@ -29215,7 +29215,7 @@ ${shim}
|
|
|
29215
29215
|
clientInfo: serverConfig.clientInfo ?? this.config.clientInfo
|
|
29216
29216
|
};
|
|
29217
29217
|
if ("command" in merged && "args" in merged) {
|
|
29218
|
-
const { StdioConnector: StdioConnector2 } = await Promise.resolve().then(() => (
|
|
29218
|
+
const { StdioConnector: StdioConnector2 } = await Promise.resolve().then(() => (init_stdio_CSZKOJVX(), stdio_CSZKOJVX_exports));
|
|
29219
29219
|
const stdioConfig = merged;
|
|
29220
29220
|
return new StdioConnector2({
|
|
29221
29221
|
command: stdioConfig.command,
|
|
@@ -74894,11 +74894,11 @@ var _a45, BaseAdapter, _a46, LangChainAdapter, _a47, MCPServerTool, PresentActiv
|
|
|
74894
74894
|
var init_browser = __esm({
|
|
74895
74895
|
"../mcp-use/dist/src/browser.js"() {
|
|
74896
74896
|
"use strict";
|
|
74897
|
-
|
|
74897
|
+
init_chunk_BFRKOEF2();
|
|
74898
74898
|
init_chunk_UJPHRNQP();
|
|
74899
|
-
|
|
74900
|
-
|
|
74901
|
-
|
|
74899
|
+
init_chunk_LG5NSHEL();
|
|
74900
|
+
init_chunk_HHVN27UL();
|
|
74901
|
+
init_chunk_FH66BO4Z();
|
|
74902
74902
|
init_chunk_QWQYAQCK();
|
|
74903
74903
|
init_chunk_3GQAWCBQ();
|
|
74904
74904
|
init_dist3();
|
|
@@ -76245,7 +76245,7 @@ Raw error: ${result}`
|
|
|
76245
76245
|
logger.info(
|
|
76246
76246
|
`Creating MCPClient with ${Object.keys(this.mcpServersConfig).length} server(s)...`
|
|
76247
76247
|
);
|
|
76248
|
-
const { MCPClient: MCPClient2 } = await Promise.resolve().then(() => (
|
|
76248
|
+
const { MCPClient: MCPClient2 } = await Promise.resolve().then(() => (init_client_BIQLHM6B(), client_BIQLHM6B_exports));
|
|
76249
76249
|
this.client = new MCPClient2({ mcpServers: this.mcpServersConfig });
|
|
76250
76250
|
logger.info("\u2705 MCPClient created successfully");
|
|
76251
76251
|
}
|
|
@@ -93222,6 +93222,9 @@ var MessageList = memo4(
|
|
|
93222
93222
|
const lastMessage = messages[messages.length - 1];
|
|
93223
93223
|
if (lastMessage.role === "user") return true;
|
|
93224
93224
|
if (lastMessage.role === "assistant") {
|
|
93225
|
+
if (lastMessage.parts && lastMessage.parts.length > 0) {
|
|
93226
|
+
return false;
|
|
93227
|
+
}
|
|
93225
93228
|
const contentStr = typeof lastMessage.content === "string" ? lastMessage.content : Array.isArray(lastMessage.content) ? lastMessage.content.map(
|
|
93226
93229
|
(item) => typeof item === "string" ? item : item.text || JSON.stringify(item)
|
|
93227
93230
|
).join("") : JSON.stringify(lastMessage.content);
|