@mcp-use/inspector 0.7.1-canary.6 → 0.8.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.
- package/dist/client/assets/{browser-BzI35nU5.js → browser-DKpDdkw_.js} +5 -5
- package/dist/client/assets/{chunk-VL2OQCWN-Cz5OG4P9.js → chunk-VL2OQCWN-BjMsbc92.js} +1 -1
- package/dist/client/assets/{display-YIYC6WJE-DMvlvvxC.js → display-YIYC6WJE-BgL49xvx.js} +1 -1
- package/dist/client/assets/{embeddings-B2eYxc5N.js → embeddings-BbOmiyFR.js} +1 -1
- package/dist/client/assets/{index-BvwglW7a.js → index-B1sJfwFb.js} +4 -4
- package/dist/client/assets/{index-BtLsRNhf.js → index-ClMfqXQW.js} +3 -3
- package/dist/client/assets/{index-Bqo0y5Gm.js → index-CvZ3HDgz.js} +119 -32
- package/dist/client/assets/{index-Byh5ed57.js → index-D9-z4T06.js} +4 -4
- package/dist/client/assets/{index-Dl52a8G8.js → index-ktVgqLWo.js} +2 -2
- package/dist/client/assets/{winston-BrUGXBf0.js → winston-B193sPBW.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/display-YIYC6WJE-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/display-YIYC6WJE-BgL49xvx.js","assets/index-CvZ3HDgz.js","assets/index-CwF__a_n.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
6
|
-
import { _ as __name, c as ZodIssueCode, u as unionType, a as anyType, d as booleanType, n as numberType, s as stringType, e as arrayType, o as objectType, f as nullType, Z as ZodFirstPartyTypeKind, h as custom, i as ZodType$1, l as literalType, j as undefinedType, k as functionType, p as promiseType, m as enumType, r as recordType, q as instanceOfType, t as logger, w as __vitePreload, v as v4$1 } from "./index-
|
|
7
|
-
import { B, x, H, L, y, M, W, z } from "./index-
|
|
8
|
-
import { u as rng, w as unsafeStringify, x as parse$1, y as $constructor, z as $ZodError, A as flattenError, B as formatError, C as _parse, D as _safeParse, E as _parseAsync, F as _safeParseAsync, G as _any, H as $ZodAny, I as $ZodType, d as clone, J as _overwrite, g as globalRegistry, K as _refine, L as normalizeParams, M as _array, N as $ZodCheck, O as issue, h as $ZodOptional, Q as $ZodNullable, R as $ZodNonOptional, S as $ZodUnion, U as $ZodIntersection, W as $ZodPipe, X as $ZodTransform, Y as $ZodDefault, Z as $ZodPrefault, a0 as $ZodCatch, a1 as $ZodReadonly, a2 as $ZodArray, a3 as _minLength, a4 as _maxLength, a5 as _length, a6 as $ZodCustom, a7 as camelCase, s as snakeCase, v as v4, P as PQueueMod, p as pRetry, a as v5, b as styles, c as parseAsync$1, i as parse$2, j as extend, f as partial, _ as _never, $ as $ZodNever, e as _unknown, k as $ZodUnknown, t as toJSONSchema, l as deepCompareStrict, V as Validator, m as dereference, n as validate$1, o as getEncodingNameForModel, T as Tiktoken, q as prettifyError, r as validate$2, a8 as $ZodRegistry } from "./chunk-VL2OQCWN-
|
|
6
|
+
import { _ as __name, c as ZodIssueCode, u as unionType, a as anyType, d as booleanType, n as numberType, s as stringType, e as arrayType, o as objectType, f as nullType, Z as ZodFirstPartyTypeKind, h as custom, i as ZodType$1, l as literalType, j as undefinedType, k as functionType, p as promiseType, m as enumType, r as recordType, q as instanceOfType, t as logger, w as __vitePreload, v as v4$1 } from "./index-CvZ3HDgz.js";
|
|
7
|
+
import { B, x, H, L, y, M, W, z } from "./index-CvZ3HDgz.js";
|
|
8
|
+
import { u as rng, w as unsafeStringify, x as parse$1, y as $constructor, z as $ZodError, A as flattenError, B as formatError, C as _parse, D as _safeParse, E as _parseAsync, F as _safeParseAsync, G as _any, H as $ZodAny, I as $ZodType, d as clone, J as _overwrite, g as globalRegistry, K as _refine, L as normalizeParams, M as _array, N as $ZodCheck, O as issue, h as $ZodOptional, Q as $ZodNullable, R as $ZodNonOptional, S as $ZodUnion, U as $ZodIntersection, W as $ZodPipe, X as $ZodTransform, Y as $ZodDefault, Z as $ZodPrefault, a0 as $ZodCatch, a1 as $ZodReadonly, a2 as $ZodArray, a3 as _minLength, a4 as _maxLength, a5 as _length, a6 as $ZodCustom, a7 as camelCase, s as snakeCase, v as v4, P as PQueueMod, p as pRetry, a as v5, b as styles, c as parseAsync$1, i as parse$2, j as extend, f as partial, _ as _never, $ as $ZodNever, e as _unknown, k as $ZodUnknown, t as toJSONSchema, l as deepCompareStrict, V as Validator, m as dereference, n as validate$1, o as getEncodingNameForModel, T as Tiktoken, q as prettifyError, r as validate$2, a8 as $ZodRegistry } from "./chunk-VL2OQCWN-BjMsbc92.js";
|
|
9
9
|
import { o as os } from "./__vite-browser-external-CHS79mP1.js";
|
|
10
10
|
import { j as join, d as dirname, i as isAbsolute } from "./path-QsnVvLoj.js";
|
|
11
11
|
import "./index-DX0TIfSM.js";
|
|
@@ -37536,7 +37536,7 @@ var MCPAgent = (_p = class {
|
|
|
37536
37536
|
*/
|
|
37537
37537
|
async *prettyStreamEvents(query, maxSteps, manageConnector = true, externalHistory, outputSchema) {
|
|
37538
37538
|
const { prettyStreamEvents: prettyStream } = await __vitePreload(async () => {
|
|
37539
|
-
const { prettyStreamEvents: prettyStream2 } = await import("./display-YIYC6WJE-
|
|
37539
|
+
const { prettyStreamEvents: prettyStream2 } = await import("./display-YIYC6WJE-BgL49xvx.js");
|
|
37540
37540
|
return { prettyStreamEvents: prettyStream2 };
|
|
37541
37541
|
}, true ? __vite__mapDeps([0,1,2]) : void 0);
|
|
37542
37542
|
const finalResponse = "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __export, A as AsyncCaller } from "./index-
|
|
1
|
+
import { _ as __export, A as AsyncCaller } from "./index-ktVgqLWo.js";
|
|
2
2
|
var chunk_array_exports = {};
|
|
3
3
|
__export(chunk_array_exports, { chunkArray: () => chunkArray });
|
|
4
4
|
const chunkArray = (arr, chunkSize) => arr.reduce((chunks, elem, index) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as ChatMessage, g as isLangChainTool, q as convertToOpenAITool, r as isZodSchemaV3, s as isZodSchemaV4, l as interopSafeParseAsync, O as OutputParserException, u as BaseCumulativeTransformOutputParser, f as isAIMessage, v as parsePartialJson, _ as __export, m as BaseChatModel, n as getEnvironmentVariable, i as isInteropZodSchema, h as isOpenAITool, S as StructuredOutputParser, J as JsonOutputParser, t as toJsonSchema, w as getSchemaDescription, x as RunnableLambda, R as RunnablePassthrough, o as RunnableSequence, j as isDataContentBlock, k as convertToProviderContentBlock, b as AIMessage, T as ToolMessage, y as HumanMessageChunk, c as AIMessageChunk, z as SystemMessageChunk, F as FunctionMessageChunk, D as ToolMessageChunk, E as ChatMessageChunk, p as parseBase64DataUrl, G as parseMimeType, I as iife, C as ChatGenerationChunk, K as BaseLanguageModel, L as CallbackManager, M as GenerationChunk, N as callbackHandlerPrefersStreaming, P as concat, Q as RUN_KEY, U as isStructuredToolParams, V as isStructuredTool, W as isRunnableToolLike, X as ToolInputParsingException, Y as BaseLangChain, Z as ensureConfig, $ as mergeConfigs, a0 as _isToolCall, a1 as interopParseAsync, a2 as parseCallbackConfigArg, a3 as _configHasToolCallId, a4 as isSimpleStringZodSchema, a5 as validatesOnlyStrings, a6 as patchConfig, a7 as AsyncLocalStorageProviderSingleton, a8 as pickRunnableConfigKeys, a9 as isDirectToolOutput, aa as getAbortSignalError } from "./index-
|
|
2
|
-
import { Z as ZodFirstPartyTypeKind, o as objectType, s as stringType } from "./index-
|
|
3
|
-
import { t as toJSONSchema, i as parse, q as prettifyError, r as validate } from "./chunk-VL2OQCWN-
|
|
4
|
-
import "./embeddings-
|
|
1
|
+
import { d as ChatMessage, g as isLangChainTool, q as convertToOpenAITool, r as isZodSchemaV3, s as isZodSchemaV4, l as interopSafeParseAsync, O as OutputParserException, u as BaseCumulativeTransformOutputParser, f as isAIMessage, v as parsePartialJson, _ as __export, m as BaseChatModel, n as getEnvironmentVariable, i as isInteropZodSchema, h as isOpenAITool, S as StructuredOutputParser, J as JsonOutputParser, t as toJsonSchema, w as getSchemaDescription, x as RunnableLambda, R as RunnablePassthrough, o as RunnableSequence, j as isDataContentBlock, k as convertToProviderContentBlock, b as AIMessage, T as ToolMessage, y as HumanMessageChunk, c as AIMessageChunk, z as SystemMessageChunk, F as FunctionMessageChunk, D as ToolMessageChunk, E as ChatMessageChunk, p as parseBase64DataUrl, G as parseMimeType, I as iife, C as ChatGenerationChunk, K as BaseLanguageModel, L as CallbackManager, M as GenerationChunk, N as callbackHandlerPrefersStreaming, P as concat, Q as RUN_KEY, U as isStructuredToolParams, V as isStructuredTool, W as isRunnableToolLike, X as ToolInputParsingException, Y as BaseLangChain, Z as ensureConfig, $ as mergeConfigs, a0 as _isToolCall, a1 as interopParseAsync, a2 as parseCallbackConfigArg, a3 as _configHasToolCallId, a4 as isSimpleStringZodSchema, a5 as validatesOnlyStrings, a6 as patchConfig, a7 as AsyncLocalStorageProviderSingleton, a8 as pickRunnableConfigKeys, a9 as isDirectToolOutput, aa as getAbortSignalError } from "./index-ktVgqLWo.js";
|
|
2
|
+
import { Z as ZodFirstPartyTypeKind, o as objectType, s as stringType } from "./index-CvZ3HDgz.js";
|
|
3
|
+
import { t as toJSONSchema, i as parse, q as prettifyError, r as validate } from "./chunk-VL2OQCWN-BjMsbc92.js";
|
|
4
|
+
import "./embeddings-BbOmiyFR.js";
|
|
5
5
|
import "./index-DX0TIfSM.js";
|
|
6
6
|
const iife$1 = (fn) => fn();
|
|
7
7
|
function isReasoningModel(model) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BaseLLMOutputParser, O as OutputParserException, l as interopSafeParseAsync, p as parseBase64DataUrl, f as isAIMessage, H as HumanMessage, j as isDataContentBlock, k as convertToProviderContentBlock, c as AIMessageChunk, b as AIMessage, m as BaseChatModel, n as getEnvironmentVariable, h as isOpenAITool, g as isLangChainTool, t as toJsonSchema, i as isInteropZodSchema, C as ChatGenerationChunk, R as RunnablePassthrough, o as RunnableSequence } from "./index-
|
|
2
|
-
import "./chunk-VL2OQCWN-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { B as BaseLLMOutputParser, O as OutputParserException, l as interopSafeParseAsync, p as parseBase64DataUrl, f as isAIMessage, H as HumanMessage, j as isDataContentBlock, k as convertToProviderContentBlock, c as AIMessageChunk, b as AIMessage, m as BaseChatModel, n as getEnvironmentVariable, h as isOpenAITool, g as isLangChainTool, t as toJsonSchema, i as isInteropZodSchema, C as ChatGenerationChunk, R as RunnablePassthrough, o as RunnableSequence } from "./index-ktVgqLWo.js";
|
|
2
|
+
import "./chunk-VL2OQCWN-BjMsbc92.js";
|
|
3
|
+
import "./index-CvZ3HDgz.js";
|
|
4
4
|
import "./index-DX0TIfSM.js";
|
|
5
5
|
var AnthropicToolsOutputParser = class extends BaseLLMOutputParser {
|
|
6
6
|
static lc_name() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/winston-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/winston-B193sPBW.js","assets/__vite-browser-external-CHS79mP1.js","assets/index-DX0TIfSM.js","assets/path-QsnVvLoj.js","assets/index-B1sJfwFb.js","assets/index-ktVgqLWo.js","assets/chunk-VL2OQCWN-BjMsbc92.js","assets/embeddings-BbOmiyFR.js","assets/index-ClMfqXQW.js","assets/index-D9-z4T06.js","assets/browser-DKpDdkw_.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -211,7 +211,7 @@ function loadWinstonSync() {
|
|
|
211
211
|
__name(loadWinstonSync, "loadWinstonSync");
|
|
212
212
|
async function getWinston() {
|
|
213
213
|
if (!winston) {
|
|
214
|
-
winston = await __vitePreload(() => import("./winston-
|
|
214
|
+
winston = await __vitePreload(() => import("./winston-B193sPBW.js").then((n2) => n2.w), true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
215
215
|
}
|
|
216
216
|
return winston;
|
|
217
217
|
}
|
|
@@ -40673,7 +40673,7 @@ class MCPToolSavedEvent {
|
|
|
40673
40673
|
function getPackageVersion() {
|
|
40674
40674
|
try {
|
|
40675
40675
|
if (true) {
|
|
40676
|
-
return "0.
|
|
40676
|
+
return "0.8.0";
|
|
40677
40677
|
}
|
|
40678
40678
|
return "0.0.0";
|
|
40679
40679
|
} catch {
|
|
@@ -41235,24 +41235,92 @@ function McpProvider({ children }) {
|
|
|
41235
41235
|
const existingConfig = connectionConfigs.find((c2) => c2.url === url);
|
|
41236
41236
|
const existingConnection = connections.find((c2) => c2.url === url);
|
|
41237
41237
|
if (existingConfig && existingConnection) {
|
|
41238
|
+
const proxyConfigChanged = JSON.stringify(existingConfig.proxyConfig) !== JSON.stringify(proxyConfig);
|
|
41239
|
+
if (proxyConfigChanged && proxyConfig) {
|
|
41240
|
+
setConnectionConfigs((prev) => prev.filter((c2) => c2.url !== url));
|
|
41241
|
+
setConnections((prev) => prev.filter((c2) => c2.url !== url));
|
|
41242
|
+
setTimeout(() => {
|
|
41243
|
+
const newConfig2 = {
|
|
41244
|
+
id: url,
|
|
41245
|
+
url,
|
|
41246
|
+
name: name || existingConfig.name || "MCP Server",
|
|
41247
|
+
proxyConfig,
|
|
41248
|
+
transportType: transportType || existingConfig.transportType
|
|
41249
|
+
};
|
|
41250
|
+
setConnectionConfigs((prev) => [...prev, newConfig2]);
|
|
41251
|
+
setConnections((prev) => [
|
|
41252
|
+
...prev,
|
|
41253
|
+
{
|
|
41254
|
+
id: url,
|
|
41255
|
+
url,
|
|
41256
|
+
name: name || existingConfig.name || "MCP Server",
|
|
41257
|
+
state: "connecting",
|
|
41258
|
+
tools: [],
|
|
41259
|
+
resources: [],
|
|
41260
|
+
prompts: [],
|
|
41261
|
+
error: null,
|
|
41262
|
+
authUrl: null,
|
|
41263
|
+
customHeaders: proxyConfig?.customHeaders,
|
|
41264
|
+
transportType: transportType || existingConfig.transportType,
|
|
41265
|
+
proxyConfig,
|
|
41266
|
+
notifications: [],
|
|
41267
|
+
unreadNotificationCount: 0,
|
|
41268
|
+
markNotificationRead: () => {
|
|
41269
|
+
},
|
|
41270
|
+
markAllNotificationsRead: () => {
|
|
41271
|
+
},
|
|
41272
|
+
clearNotifications: () => {
|
|
41273
|
+
},
|
|
41274
|
+
callTool: async () => {
|
|
41275
|
+
},
|
|
41276
|
+
readResource: async () => {
|
|
41277
|
+
},
|
|
41278
|
+
listPrompts: async () => {
|
|
41279
|
+
},
|
|
41280
|
+
getPrompt: async () => {
|
|
41281
|
+
},
|
|
41282
|
+
authenticate: () => {
|
|
41283
|
+
},
|
|
41284
|
+
retry: () => {
|
|
41285
|
+
},
|
|
41286
|
+
clearStorage: () => {
|
|
41287
|
+
},
|
|
41288
|
+
client: null
|
|
41289
|
+
}
|
|
41290
|
+
]);
|
|
41291
|
+
}, 10);
|
|
41292
|
+
return;
|
|
41293
|
+
}
|
|
41238
41294
|
return;
|
|
41239
41295
|
}
|
|
41240
41296
|
if (existingConfig && !existingConnection) {
|
|
41297
|
+
if (proxyConfig || transportType) {
|
|
41298
|
+
setConnectionConfigs(
|
|
41299
|
+
(prev) => prev.map(
|
|
41300
|
+
(c2) => c2.url === url ? {
|
|
41301
|
+
...c2,
|
|
41302
|
+
proxyConfig: proxyConfig || c2.proxyConfig,
|
|
41303
|
+
transportType: transportType || c2.transportType,
|
|
41304
|
+
name: name || c2.name
|
|
41305
|
+
} : c2
|
|
41306
|
+
)
|
|
41307
|
+
);
|
|
41308
|
+
}
|
|
41241
41309
|
setConnections((prev) => [
|
|
41242
41310
|
...prev,
|
|
41243
41311
|
{
|
|
41244
41312
|
id: existingConfig.id || url,
|
|
41245
41313
|
url,
|
|
41246
|
-
name:
|
|
41314
|
+
name: name || existingConfig.name || "MCP Server",
|
|
41247
41315
|
state: "connecting",
|
|
41248
41316
|
tools: [],
|
|
41249
41317
|
resources: [],
|
|
41250
41318
|
prompts: [],
|
|
41251
41319
|
error: null,
|
|
41252
41320
|
authUrl: null,
|
|
41253
|
-
customHeaders:
|
|
41254
|
-
transportType:
|
|
41255
|
-
proxyConfig:
|
|
41321
|
+
customHeaders: proxyConfig?.customHeaders || existingConfig.proxyConfig?.customHeaders,
|
|
41322
|
+
transportType: transportType || existingConfig.transportType,
|
|
41323
|
+
proxyConfig: proxyConfig || existingConfig.proxyConfig,
|
|
41256
41324
|
notifications: [],
|
|
41257
41325
|
unreadNotificationCount: 0,
|
|
41258
41326
|
markNotificationRead: () => {
|
|
@@ -41347,7 +41415,9 @@ function McpProvider({ children }) {
|
|
|
41347
41415
|
console.error("Failed to update localStorage on remove:", e);
|
|
41348
41416
|
}
|
|
41349
41417
|
}
|
|
41350
|
-
Telemetry.getInstance().
|
|
41418
|
+
Telemetry.getInstance().capture(
|
|
41419
|
+
new MCPServerRemovedEvent({ serverId: id2 })
|
|
41420
|
+
);
|
|
41351
41421
|
}, []);
|
|
41352
41422
|
const updateConnectionConfig = reactExports.useCallback(
|
|
41353
41423
|
(id2, config) => {
|
|
@@ -41422,19 +41492,28 @@ function McpProvider({ children }) {
|
|
|
41422
41492
|
);
|
|
41423
41493
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(McpContext.Provider, { value: contextValue, children: [
|
|
41424
41494
|
children,
|
|
41425
|
-
configLoaded && autoConnect && connectionConfigs.map((config) =>
|
|
41426
|
-
|
|
41427
|
-
|
|
41428
|
-
|
|
41429
|
-
|
|
41430
|
-
proxyConfig:
|
|
41431
|
-
|
|
41432
|
-
|
|
41433
|
-
|
|
41434
|
-
|
|
41435
|
-
|
|
41436
|
-
|
|
41437
|
-
|
|
41495
|
+
configLoaded && autoConnect && connectionConfigs.map((config) => {
|
|
41496
|
+
const wrapperKey = `${config.id || config.url}-${config.proxyConfig?.proxyAddress ? "proxy" : "direct"}`;
|
|
41497
|
+
console.warn(
|
|
41498
|
+
"[McpContext] Rendering McpConnectionWrapper with key:",
|
|
41499
|
+
wrapperKey,
|
|
41500
|
+
"proxyConfig:",
|
|
41501
|
+
config.proxyConfig
|
|
41502
|
+
);
|
|
41503
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
41504
|
+
McpConnectionWrapper,
|
|
41505
|
+
{
|
|
41506
|
+
url: config.url,
|
|
41507
|
+
name: config.name,
|
|
41508
|
+
proxyConfig: config.proxyConfig,
|
|
41509
|
+
transportType: config.transportType,
|
|
41510
|
+
connectionId: config.id || config.url,
|
|
41511
|
+
onUpdate: handleConnectionUpdate,
|
|
41512
|
+
onRemove: () => removeConnection(config.id || config.url)
|
|
41513
|
+
},
|
|
41514
|
+
wrapperKey
|
|
41515
|
+
);
|
|
41516
|
+
})
|
|
41438
41517
|
] });
|
|
41439
41518
|
}
|
|
41440
41519
|
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -53911,11 +53990,17 @@ function useAutoConnect({
|
|
|
53911
53990
|
const [configLoaded, setConfigLoaded] = reactExports.useState(false);
|
|
53912
53991
|
const retryScheduledRef = reactExports.useRef(false);
|
|
53913
53992
|
reactExports.useEffect(() => {
|
|
53914
|
-
|
|
53915
|
-
|
|
53916
|
-
|
|
53993
|
+
if (autoConnectConfig) {
|
|
53994
|
+
setAutoSwitch(true);
|
|
53995
|
+
} else {
|
|
53996
|
+
const autoSwitchSetting = localStorage.getItem(
|
|
53997
|
+
"mcp-inspector-auto-switch"
|
|
53998
|
+
);
|
|
53999
|
+
if (autoSwitchSetting !== null) {
|
|
54000
|
+
setAutoSwitch(autoSwitchSetting === "true");
|
|
54001
|
+
}
|
|
53917
54002
|
}
|
|
53918
|
-
}, []);
|
|
54003
|
+
}, [autoConnectConfig]);
|
|
53919
54004
|
const attemptConnection = reactExports.useCallback(
|
|
53920
54005
|
(config) => {
|
|
53921
54006
|
const { url, name, transportType, connectionType, customHeaders } = config;
|
|
@@ -54012,7 +54097,6 @@ function useAutoConnect({
|
|
|
54012
54097
|
const alternateConnectionType = autoConnectConfig.connectionType === "Direct" ? "Via Proxy" : "Direct";
|
|
54013
54098
|
if (autoConnectConfig.connectionType === "Direct") {
|
|
54014
54099
|
toast.error("Direct connection failed, trying with proxy...");
|
|
54015
|
-
setHasTriedBothModes(true);
|
|
54016
54100
|
retryScheduledRef.current = true;
|
|
54017
54101
|
queueMicrotask(() => {
|
|
54018
54102
|
removeConnection(connection.id);
|
|
@@ -54029,13 +54113,16 @@ function useAutoConnect({
|
|
|
54029
54113
|
}, 1e3);
|
|
54030
54114
|
});
|
|
54031
54115
|
} else {
|
|
54032
|
-
toast.error(
|
|
54033
|
-
|
|
54116
|
+
toast.error(
|
|
54117
|
+
"Cannot connect to server. Please check the URL and try again."
|
|
54118
|
+
);
|
|
54034
54119
|
queueMicrotask(() => {
|
|
54035
54120
|
removeConnection(connection.id);
|
|
54036
54121
|
setIsAutoConnecting(false);
|
|
54037
54122
|
setAutoConnectConfig(null);
|
|
54123
|
+
setHasTriedBothModes(true);
|
|
54038
54124
|
retryScheduledRef.current = false;
|
|
54125
|
+
navigate("/");
|
|
54039
54126
|
});
|
|
54040
54127
|
}
|
|
54041
54128
|
}
|
|
@@ -86921,7 +87008,7 @@ function useChatMessagesClientSide({
|
|
|
86921
87008
|
let llm;
|
|
86922
87009
|
if (llmConfig.provider === "openai") {
|
|
86923
87010
|
const { ChatOpenAI } = await __vitePreload(async () => {
|
|
86924
|
-
const { ChatOpenAI: ChatOpenAI2 } = await import("./index-
|
|
87011
|
+
const { ChatOpenAI: ChatOpenAI2 } = await import("./index-B1sJfwFb.js");
|
|
86925
87012
|
return { ChatOpenAI: ChatOpenAI2 };
|
|
86926
87013
|
}, true ? __vite__mapDeps([4,5,6,2,7]) : void 0);
|
|
86927
87014
|
llm = new ChatOpenAI({
|
|
@@ -86930,7 +87017,7 @@ function useChatMessagesClientSide({
|
|
|
86930
87017
|
});
|
|
86931
87018
|
} else if (llmConfig.provider === "anthropic") {
|
|
86932
87019
|
const { ChatAnthropic } = await __vitePreload(async () => {
|
|
86933
|
-
const { ChatAnthropic: ChatAnthropic2 } = await import("./index-
|
|
87020
|
+
const { ChatAnthropic: ChatAnthropic2 } = await import("./index-ClMfqXQW.js");
|
|
86934
87021
|
return { ChatAnthropic: ChatAnthropic2 };
|
|
86935
87022
|
}, true ? __vite__mapDeps([8,5,6,2]) : void 0);
|
|
86936
87023
|
llm = new ChatAnthropic({
|
|
@@ -86939,7 +87026,7 @@ function useChatMessagesClientSide({
|
|
|
86939
87026
|
});
|
|
86940
87027
|
} else if (llmConfig.provider === "google") {
|
|
86941
87028
|
const { ChatGoogleGenerativeAI } = await __vitePreload(async () => {
|
|
86942
|
-
const { ChatGoogleGenerativeAI: ChatGoogleGenerativeAI2 } = await import("./index-
|
|
87029
|
+
const { ChatGoogleGenerativeAI: ChatGoogleGenerativeAI2 } = await import("./index-D9-z4T06.js");
|
|
86943
87030
|
return { ChatGoogleGenerativeAI: ChatGoogleGenerativeAI2 };
|
|
86944
87031
|
}, true ? __vite__mapDeps([9,5,6,2,7]) : void 0);
|
|
86945
87032
|
llm = new ChatGoogleGenerativeAI({
|
|
@@ -86958,7 +87045,7 @@ function useChatMessagesClientSide({
|
|
|
86958
87045
|
}
|
|
86959
87046
|
if (!agentRef.current || agentRef.current.llm !== llmRef.current.instance) {
|
|
86960
87047
|
const { MCPAgent } = await __vitePreload(async () => {
|
|
86961
|
-
const { MCPAgent: MCPAgent2 } = await import("./browser-
|
|
87048
|
+
const { MCPAgent: MCPAgent2 } = await import("./browser-DKpDdkw_.js");
|
|
86962
87049
|
return { MCPAgent: MCPAgent2 };
|
|
86963
87050
|
}, true ? __vite__mapDeps([10,6,2,1,3]) : void 0);
|
|
86964
87051
|
agentRef.current = new MCPAgent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as isInteropZodSchema, t as toJsonSchema, a as isBaseMessage, b as AIMessage, C as ChatGenerationChunk, c as AIMessageChunk, d as ChatMessage, e as isToolMessage, f as isAIMessage, g as isLangChainTool, h as isOpenAITool, j as isDataContentBlock, k as convertToProviderContentBlock, p as parseBase64DataUrl, B as BaseLLMOutputParser, l as interopSafeParseAsync, O as OutputParserException, m as BaseChatModel, n as getEnvironmentVariable, J as JsonOutputParser, R as RunnablePassthrough, o as RunnableSequence } from "./index-
|
|
2
|
-
import { v as v4 } from "./index-
|
|
3
|
-
import "./embeddings-
|
|
4
|
-
import "./chunk-VL2OQCWN-
|
|
1
|
+
import { i as isInteropZodSchema, t as toJsonSchema, a as isBaseMessage, b as AIMessage, C as ChatGenerationChunk, c as AIMessageChunk, d as ChatMessage, e as isToolMessage, f as isAIMessage, g as isLangChainTool, h as isOpenAITool, j as isDataContentBlock, k as convertToProviderContentBlock, p as parseBase64DataUrl, B as BaseLLMOutputParser, l as interopSafeParseAsync, O as OutputParserException, m as BaseChatModel, n as getEnvironmentVariable, J as JsonOutputParser, R as RunnablePassthrough, o as RunnableSequence } from "./index-ktVgqLWo.js";
|
|
2
|
+
import { v as v4 } from "./index-CvZ3HDgz.js";
|
|
3
|
+
import "./embeddings-BbOmiyFR.js";
|
|
4
|
+
import "./chunk-VL2OQCWN-BjMsbc92.js";
|
|
5
5
|
import "./index-DX0TIfSM.js";
|
|
6
6
|
function removeAdditionalProperties(obj) {
|
|
7
7
|
if (typeof obj === "object" && obj !== null) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as snakeCase, v as v4, P as PQueueMod, p as pRetry, a as v5, b as styles, g as globalRegistry, c as parseAsync, d as clone, _ as _never, $ as $ZodNever, e as _unknown, f as partial, h as $ZodOptional, i as parse, j as extend, k as $ZodUnknown, t as toJSONSchema, l as deepCompareStrict, V as Validator, m as dereference, n as validate$1, o as getEncodingNameForModel, T as Tiktoken } from "./chunk-VL2OQCWN-
|
|
2
|
-
import { Z as ZodFirstPartyTypeKind, a as anyType, o as objectType, s as stringType } from "./index-
|
|
1
|
+
import { s as snakeCase, v as v4, P as PQueueMod, p as pRetry, a as v5, b as styles, g as globalRegistry, c as parseAsync, d as clone, _ as _never, $ as $ZodNever, e as _unknown, f as partial, h as $ZodOptional, i as parse, j as extend, k as $ZodUnknown, t as toJSONSchema, l as deepCompareStrict, V as Validator, m as dereference, n as validate$1, o as getEncodingNameForModel, T as Tiktoken } from "./chunk-VL2OQCWN-BjMsbc92.js";
|
|
2
|
+
import { Z as ZodFirstPartyTypeKind, a as anyType, o as objectType, s as stringType } from "./index-CvZ3HDgz.js";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __export = (target, all) => {
|
|
5
5
|
for (var name in all) __defProp(target, name, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./index-
|
|
1
|
+
import { b as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./index-CvZ3HDgz.js";
|
|
2
2
|
import { o as os } from "./__vite-browser-external-CHS79mP1.js";
|
|
3
3
|
import { r as requireBase64Js } from "./index-DX0TIfSM.js";
|
|
4
4
|
import { p as path } from "./path-QsnVvLoj.js";
|
package/dist/client/index.html
CHANGED
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
rel="stylesheet"
|
|
28
28
|
/>
|
|
29
29
|
<title>Inspector | mcp-use</title>
|
|
30
|
-
<script type="module" crossorigin src="/inspector/assets/index-
|
|
30
|
+
<script type="module" crossorigin src="/inspector/assets/index-CvZ3HDgz.js"></script>
|
|
31
31
|
<link rel="stylesheet" crossorigin href="/inspector/assets/index-CwF__a_n.css">
|
|
32
|
-
<script>window.__INSPECTOR_VERSION__ = "0.
|
|
32
|
+
<script>window.__INSPECTOR_VERSION__ = "0.8.0";</script>
|
|
33
33
|
</head>
|
|
34
34
|
<body>
|
|
35
35
|
<script>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/inspector",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"description": "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"sonner": "^2.0.7",
|
|
83
83
|
"tailwind-merge": "^3.3.1",
|
|
84
84
|
"vite-express": "^0.21.1",
|
|
85
|
-
"mcp-use": "1.
|
|
85
|
+
"mcp-use": "1.6.0"
|
|
86
86
|
},
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|