@mcp-use/inspector 0.8.2 → 0.8.3-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.
@@ -1,11 +1,11 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/display-YIYC6WJE-CgdZXpyl.js","assets/index-BUncxtIr.js","assets/index-CwF__a_n.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/display-YIYC6WJE-BTd-7ehF.js","assets/index-DPEyMG1a.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-BUncxtIr.js";
7
- import { B, x, H, L, y, M, W, z } from "./index-BUncxtIr.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-BXe1iwaF.js";
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-DPEyMG1a.js";
7
+ import { B, x, H, L, y, M, W, z } from "./index-DPEyMG1a.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-aIw8FJQU.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-CgdZXpyl.js");
37539
+ const { prettyStreamEvents: prettyStream2 } = await import("./display-YIYC6WJE-BTd-7ehF.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 { g as getDefaultExportFromCjs } from "./index-BUncxtIr.js";
1
+ import { g as getDefaultExportFromCjs } from "./index-DPEyMG1a.js";
2
2
  import { r as requireBase64Js } from "./index-DX0TIfSM.js";
3
3
  var decamelize;
4
4
  var hasRequiredDecamelize;
@@ -1,4 +1,4 @@
1
- import { _ as __name } from "./index-BUncxtIr.js";
1
+ import { _ as __name } from "./index-DPEyMG1a.js";
2
2
  var core;
3
3
  var hasRequiredCore;
4
4
  function requireCore() {
@@ -1,4 +1,4 @@
1
- import { _ as __export, A as AsyncCaller } from "./index-Dh5c60Cf.js";
1
+ import { _ as __export, A as AsyncCaller } from "./index-BIMuOeon.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 { 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-Dh5c60Cf.js";
2
- import { v as v4 } from "./index-BUncxtIr.js";
3
- import "./embeddings-DoYT4G8J.js";
4
- import "./chunk-VL2OQCWN-BXe1iwaF.js";
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-BIMuOeon.js";
2
+ import { v as v4 } from "./index-DPEyMG1a.js";
3
+ import "./embeddings-BiULWmf2.js";
4
+ import "./chunk-VL2OQCWN-aIw8FJQU.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-BXe1iwaF.js";
2
- import { Z as ZodFirstPartyTypeKind, a as anyType, o as objectType, s as stringType } from "./index-BUncxtIr.js";
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-aIw8FJQU.js";
2
+ import { Z as ZodFirstPartyTypeKind, a as anyType, o as objectType, s as stringType } from "./index-DPEyMG1a.js";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __export = (target, all) => {
5
5
  for (var name in all) __defProp(target, name, {
@@ -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-Dh5c60Cf.js";
2
- import { Z as ZodFirstPartyTypeKind, o as objectType, s as stringType } from "./index-BUncxtIr.js";
3
- import { t as toJSONSchema, i as parse, q as prettifyError, r as validate } from "./chunk-VL2OQCWN-BXe1iwaF.js";
4
- import "./embeddings-DoYT4G8J.js";
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-BIMuOeon.js";
2
+ import { Z as ZodFirstPartyTypeKind, o as objectType, s as stringType } from "./index-DPEyMG1a.js";
3
+ import { t as toJSONSchema, i as parse, q as prettifyError, r as validate } from "./chunk-VL2OQCWN-aIw8FJQU.js";
4
+ import "./embeddings-BiULWmf2.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-Dh5c60Cf.js";
2
- import "./chunk-VL2OQCWN-BXe1iwaF.js";
3
- import "./index-BUncxtIr.js";
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-BIMuOeon.js";
2
+ import "./chunk-VL2OQCWN-aIw8FJQU.js";
3
+ import "./index-DPEyMG1a.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-EZ7J9pWD.js","assets/__vite-browser-external-CHS79mP1.js","assets/index-DX0TIfSM.js","assets/path-QsnVvLoj.js","assets/index-7yA2hvxa.js","assets/index-Dh5c60Cf.js","assets/chunk-VL2OQCWN-BXe1iwaF.js","assets/embeddings-DoYT4G8J.js","assets/index-D_EM3lCY.js","assets/index-DaswSx18.js","assets/browser-DrFZpsDy.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/winston-DPHXtm9k.js","assets/__vite-browser-external-CHS79mP1.js","assets/index-DX0TIfSM.js","assets/path-QsnVvLoj.js","assets/index-C4Csm_Xe.js","assets/index-BIMuOeon.js","assets/chunk-VL2OQCWN-aIw8FJQU.js","assets/embeddings-BiULWmf2.js","assets/index-DAor5Yr-.js","assets/index-B9oLougE.js","assets/browser-CeWBn_h2.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-EZ7J9pWD.js").then((n2) => n2.w), true ? __vite__mapDeps([0,1,2,3]) : void 0);
214
+ winston = await __vitePreload(() => import("./winston-DPHXtm9k.js").then((n2) => n2.w), true ? __vite__mapDeps([0,1,2,3]) : void 0);
215
215
  }
216
216
  return winston;
217
217
  }
@@ -9088,7 +9088,7 @@ function requireCompile() {
9088
9088
  }
9089
9089
  }
9090
9090
  compile.compileSchema = compileSchema;
9091
- function resolveRef(root, baseId, ref2) {
9091
+ function resolveRef2(root, baseId, ref2) {
9092
9092
  var _a2;
9093
9093
  ref2 = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref2);
9094
9094
  const schOrFunc = root.refs[ref2];
@@ -9105,7 +9105,7 @@ function requireCompile() {
9105
9105
  return;
9106
9106
  return root.refs[ref2] = inlineOrCompile.call(this, _sch);
9107
9107
  }
9108
- compile.resolveRef = resolveRef;
9108
+ compile.resolveRef = resolveRef2;
9109
9109
  function inlineOrCompile(sch) {
9110
9110
  if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
9111
9111
  return sch.schema;
@@ -41515,7 +41515,7 @@ class MCPToolSavedEvent {
41515
41515
  function getPackageVersion() {
41516
41516
  try {
41517
41517
  if (true) {
41518
- return "0.8.2";
41518
+ return "0.8.3-canary.0";
41519
41519
  }
41520
41520
  return "0.0.0";
41521
41521
  } catch {
@@ -87850,7 +87850,7 @@ function useChatMessagesClientSide({
87850
87850
  let llm;
87851
87851
  if (llmConfig.provider === "openai") {
87852
87852
  const { ChatOpenAI } = await __vitePreload(async () => {
87853
- const { ChatOpenAI: ChatOpenAI2 } = await import("./index-7yA2hvxa.js");
87853
+ const { ChatOpenAI: ChatOpenAI2 } = await import("./index-C4Csm_Xe.js");
87854
87854
  return { ChatOpenAI: ChatOpenAI2 };
87855
87855
  }, true ? __vite__mapDeps([4,5,6,2,7]) : void 0);
87856
87856
  llm = new ChatOpenAI({
@@ -87859,7 +87859,7 @@ function useChatMessagesClientSide({
87859
87859
  });
87860
87860
  } else if (llmConfig.provider === "anthropic") {
87861
87861
  const { ChatAnthropic } = await __vitePreload(async () => {
87862
- const { ChatAnthropic: ChatAnthropic2 } = await import("./index-D_EM3lCY.js");
87862
+ const { ChatAnthropic: ChatAnthropic2 } = await import("./index-DAor5Yr-.js");
87863
87863
  return { ChatAnthropic: ChatAnthropic2 };
87864
87864
  }, true ? __vite__mapDeps([8,5,6,2]) : void 0);
87865
87865
  llm = new ChatAnthropic({
@@ -87868,7 +87868,7 @@ function useChatMessagesClientSide({
87868
87868
  });
87869
87869
  } else if (llmConfig.provider === "google") {
87870
87870
  const { ChatGoogleGenerativeAI } = await __vitePreload(async () => {
87871
- const { ChatGoogleGenerativeAI: ChatGoogleGenerativeAI2 } = await import("./index-DaswSx18.js");
87871
+ const { ChatGoogleGenerativeAI: ChatGoogleGenerativeAI2 } = await import("./index-B9oLougE.js");
87872
87872
  return { ChatGoogleGenerativeAI: ChatGoogleGenerativeAI2 };
87873
87873
  }, true ? __vite__mapDeps([9,5,6,2,7]) : void 0);
87874
87874
  llm = new ChatGoogleGenerativeAI({
@@ -87887,7 +87887,7 @@ function useChatMessagesClientSide({
87887
87887
  }
87888
87888
  if (!agentRef.current || agentRef.current.llm !== llmRef.current.instance) {
87889
87889
  const { MCPAgent } = await __vitePreload(async () => {
87890
- const { MCPAgent: MCPAgent2 } = await import("./browser-DrFZpsDy.js");
87890
+ const { MCPAgent: MCPAgent2 } = await import("./browser-CeWBn_h2.js");
87891
87891
  return { MCPAgent: MCPAgent2 };
87892
87892
  }, true ? __vite__mapDeps([10,6,2,1,3]) : void 0);
87893
87893
  agentRef.current = new MCPAgent({
@@ -92120,7 +92120,7 @@ function PromptsTab({
92120
92120
  direction: "vertical",
92121
92121
  className: "h-full border-r dark:border-zinc-700",
92122
92122
  children: [
92123
- /* @__PURE__ */ jsxRuntimeExports.jsxs(ResizablePanel, { defaultSize: 75, minSize: 30, children: [
92123
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ResizablePanel, { defaultSize: 75, minSize: 30, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col h-full overflow-hidden", children: [
92124
92124
  /* @__PURE__ */ jsxRuntimeExports.jsx(
92125
92125
  PromptsTabHeader,
92126
92126
  {
@@ -92154,7 +92154,7 @@ function PromptsTab({
92154
92154
  focusedIndex
92155
92155
  }
92156
92156
  )
92157
- ] }),
92157
+ ] }) }),
92158
92158
  /* @__PURE__ */ jsxRuntimeExports.jsx(ResizableHandle, { withHandle: true }),
92159
92159
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
92160
92160
  ResizablePanel,
@@ -92945,7 +92945,7 @@ function ResourcesTab({
92945
92945
  direction: "vertical",
92946
92946
  className: "h-full border-r dark:border-zinc-700",
92947
92947
  children: [
92948
- /* @__PURE__ */ jsxRuntimeExports.jsxs(ResizablePanel, { defaultSize: 75, minSize: 30, children: [
92948
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ResizablePanel, { defaultSize: 75, minSize: 30, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col h-full overflow-hidden", children: [
92949
92949
  /* @__PURE__ */ jsxRuntimeExports.jsx(
92950
92950
  ResourcesTabHeader,
92951
92951
  {
@@ -92961,7 +92961,7 @@ function ResourcesTab({
92961
92961
  searchInputRef
92962
92962
  }
92963
92963
  ),
92964
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
92964
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
92965
92965
  ResourcesList,
92966
92966
  {
92967
92967
  resources: filteredResources,
@@ -92969,8 +92969,8 @@ function ResourcesTab({
92969
92969
  onResourceSelect: handleResourceSelect,
92970
92970
  focusedIndex
92971
92971
  }
92972
- ) })
92973
- ] }),
92972
+ )
92973
+ ] }) }),
92974
92974
  /* @__PURE__ */ jsxRuntimeExports.jsx(ResizableHandle, { withHandle: true }),
92975
92975
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
92976
92976
  ResizablePanel,
@@ -93177,6 +93177,43 @@ function SaveRequestDialog({
93177
93177
  }
93178
93178
  );
93179
93179
  }
93180
+ function resolveRef(schema2, rootSchema) {
93181
+ if (!schema2?.$ref) return schema2;
93182
+ const ref2 = schema2.$ref;
93183
+ if (ref2.startsWith("#/")) {
93184
+ const path = ref2.substring(2).split("/");
93185
+ let current = rootSchema;
93186
+ for (const segment of path) {
93187
+ if (current && typeof current === "object" && segment in current) {
93188
+ current = current[segment];
93189
+ } else {
93190
+ console.warn(`Could not resolve $ref: ${ref2}`);
93191
+ return schema2;
93192
+ }
93193
+ }
93194
+ return current;
93195
+ }
93196
+ return schema2;
93197
+ }
93198
+ function normalizeUnionType(schema2, rootSchema) {
93199
+ if (schema2.anyOf && Array.isArray(schema2.anyOf)) {
93200
+ const nonNullOption = schema2.anyOf.find((opt) => {
93201
+ if (opt.type === "null") return false;
93202
+ return true;
93203
+ });
93204
+ if (nonNullOption) {
93205
+ const resolved = resolveRef(nonNullOption, rootSchema);
93206
+ return { ...resolved, nullable: true };
93207
+ }
93208
+ }
93209
+ return schema2;
93210
+ }
93211
+ function extractEnum(schema2) {
93212
+ if (Array.isArray(schema2.enum)) {
93213
+ return schema2.enum;
93214
+ }
93215
+ return null;
93216
+ }
93180
93217
  function ToolInputForm({
93181
93218
  selectedTool,
93182
93219
  toolArgs,
@@ -93189,7 +93226,12 @@ function ToolInputForm({
93189
93226
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-32 text-gray-500 dark:text-gray-400 text-sm", children: "No parameters required" });
93190
93227
  }
93191
93228
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-4", children: Object.entries(properties2).map(([key, prop]) => {
93192
- const typedProp = prop;
93229
+ const inputSchema = selectedTool?.inputSchema || {};
93230
+ let resolvedProp = normalizeUnionType(prop, inputSchema);
93231
+ resolvedProp = resolveRef(resolvedProp, inputSchema);
93232
+ const enumValues = extractEnum(resolvedProp);
93233
+ const isEnum = resolvedProp.type === "string" && enumValues !== null;
93234
+ const typedProp = resolvedProp;
93193
93235
  typedProp.required = requiredFields.includes(key);
93194
93236
  const currentValue = toolArgs[key];
93195
93237
  let stringValue = "";
@@ -93222,6 +93264,31 @@ function ToolInputForm({
93222
93264
  typedProp?.description && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: typedProp.description })
93223
93265
  ] }, key);
93224
93266
  }
93267
+ if (isEnum && enumValues) {
93268
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
93269
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { htmlFor: key, className: "text-sm font-medium", children: [
93270
+ key,
93271
+ typedProp.required && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-red-500 ml-1", children: "*" })
93272
+ ] }),
93273
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
93274
+ Select,
93275
+ {
93276
+ value: String(toolArgs[key] || ""),
93277
+ onValueChange: (value) => onArgChange(key, value),
93278
+ children: [
93279
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectTrigger, { id: key, className: "w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
93280
+ SelectValue,
93281
+ {
93282
+ placeholder: typedProp.description || "Select an option"
93283
+ }
93284
+ ) }),
93285
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectContent, { children: enumValues.map((option, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(SelectItem, { value: option, children: typedProp.enumNames?.[index2] || option }, option)) })
93286
+ ]
93287
+ }
93288
+ ),
93289
+ typedProp.description && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: typedProp.description })
93290
+ ] }, key);
93291
+ }
93225
93292
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
93226
93293
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { htmlFor: key, className: "text-sm font-medium", children: [
93227
93294
  key,
@@ -94519,7 +94586,7 @@ function ToolsTab({
94519
94586
  direction: "vertical",
94520
94587
  className: "h-full border-r dark:border-zinc-700",
94521
94588
  children: [
94522
- /* @__PURE__ */ jsxRuntimeExports.jsxs(ResizablePanel, { defaultSize: 75, minSize: 30, children: [
94589
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ResizablePanel, { defaultSize: 75, minSize: 30, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col h-full overflow-hidden", children: [
94523
94590
  /* @__PURE__ */ jsxRuntimeExports.jsx(
94524
94591
  ToolsTabHeader,
94525
94592
  {
@@ -94553,7 +94620,7 @@ function ToolsTab({
94553
94620
  focusedIndex
94554
94621
  }
94555
94622
  )
94556
- ] }),
94623
+ ] }) }),
94557
94624
  /* @__PURE__ */ jsxRuntimeExports.jsx(ResizableHandle, { withHandle: true }),
94558
94625
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
94559
94626
  ResizablePanel,
@@ -1,4 +1,4 @@
1
- import { b as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./index-BUncxtIr.js";
1
+ import { b as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./index-DPEyMG1a.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";
@@ -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-BUncxtIr.js"></script>
30
+ <script type="module" crossorigin src="/inspector/assets/index-DPEyMG1a.js"></script>
31
31
  <link rel="stylesheet" crossorigin href="/inspector/assets/index-CwF__a_n.css">
32
- <script>window.__INSPECTOR_VERSION__ = "0.8.2";</script>
32
+ <script>window.__INSPECTOR_VERSION__ = "0.8.3-canary.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.8.2",
4
+ "version": "0.8.3-canary.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.6.2"
85
+ "mcp-use": "1.6.3-canary.0"
86
86
  },
87
87
  "publishConfig": {
88
88
  "access": "public"