@mcp-use/inspector 20.0.0-beta.5 → 20.0.0-beta.51
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/README.md +31 -78
- package/dist/app/inspector.css.gz +0 -0
- package/dist/app/inspector.js.gz +0 -0
- package/dist/app/providers/anthropic.png +0 -0
- package/dist/app/providers/google.png +0 -0
- package/dist/app/providers/openai.png +0 -0
- package/dist/cli.js +332 -1384
- package/dist/client/index.d.ts +1405 -50
- package/dist/client/index.js +165 -24019
- package/dist/server/index.d.ts +79 -7
- package/dist/server/index.js +370 -22
- package/package.json +77 -35
- package/dist/cdn/AnimatePresence-Dcw-FOy8.js +0 -393
- package/dist/cdn/ChatTab-B255lH5i.js +0 -6744
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/ConnectionSettingsForm-DF-NS58d.js +0 -929
- package/dist/cdn/ConnectionSettingsTab-dI-Cqe79.js +0 -150
- package/dist/cdn/ElicitationTab-CL1KJ0bz.js +0 -654
- package/dist/cdn/FormContext-tmgN_Vdr.js +0 -135
- package/dist/cdn/InspectorContext-UjtEbNod.js +0 -123
- package/dist/cdn/JSONDisplay-BFxf5oEu.js +0 -324
- package/dist/cdn/ListTabHeader-Cv-GmtGF.js +0 -88
- package/dist/cdn/ManufactOAuthCallback-B98kSYCj.js +0 -31
- package/dist/cdn/MarkdownRenderer-Ba7nA4Ie.js +0 -3610
- package/dist/cdn/NotificationsTab-CeImSrhx.js +0 -290
- package/dist/cdn/OAuthCallback-Blc2Asxc.js +0 -58
- package/dist/cdn/PromptsTab-BYKnY7Rp.js +0 -901
- package/dist/cdn/ResourcesTab-BGualKW-.js +0 -564
- package/dist/cdn/SamplingTab-BeZBUeni.js +0 -658
- package/dist/cdn/ServerMetadataTab-CvrKX8fz.js +0 -244
- package/dist/cdn/StatusIcon-D0-ARyOh.js +0 -66
- package/dist/cdn/ToolsTab-j6n4O_3s.js +0 -2033
- package/dist/cdn/ViewPreview-DihyG6Qd.js +0 -238
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +0 -324
- package/dist/cdn/WidgetWrapper-B4H3Fek7.js +0 -2210
- package/dist/cdn/basePath-B8HuhIMu.js +0 -25
- package/dist/cdn/bell-CGjAO_0s.js +0 -10
- package/dist/cdn/browser-CbQIH4w2.js +0 -42
- package/dist/cdn/brush-B_mKhyxG.js +0 -17
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
- package/dist/cdn/checkbox-By0FklhG.js +0 -20
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
- package/dist/cdn/clock-CmUbSx_B.js +0 -12
- package/dist/cdn/code-V_0nf5rg.js +0 -10
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/dialog-BsDpuJd3.js +0 -1028
- package/dist/cdn/dist-DaMB0Su9.js +0 -616
- package/dist/cdn/dist-DbX5yidW.js +0 -2306
- package/dist/cdn/external-link-CjmfT6rW.js +0 -17
- package/dist/cdn/eye-B7H96av8.js +0 -29
- package/dist/cdn/folder-open-B3lu2rG_.js +0 -7
- package/dist/cdn/hash-BVQnWi7q.js +0 -33
- package/dist/cdn/history-Csw4rb44.js +0 -17
- package/dist/cdn/index-browser-DkQOzkvX.js +0 -1934
- package/dist/cdn/info-CNiOwqkf.js +0 -19
- package/dist/cdn/input-C2OBd4PJ.js +0 -12160
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
- package/dist/cdn/inspector.css +0 -2
- package/dist/cdn/inspector.js +0 -24523
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +0 -180
- package/dist/cdn/label-B9Jmm9be.js +0 -60
- package/dist/cdn/loader-circle-BLy9A_pp.js +0 -7
- package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
- package/dist/cdn/maximize-2-CH5Lq90B.js +0 -21
- package/dist/cdn/maximize-BALCV_ep.js +0 -21
- package/dist/cdn/message-square-BnxdpJxZ.js +0 -7
- package/dist/cdn/not-found-DEtSM_Wd.js +0 -34
- package/dist/cdn/play-vuZ5PLnI.js +0 -7
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/providers/anthropic.png +0 -0
- package/dist/cdn/providers/google.png +0 -0
- package/dist/cdn/providers/openai.png +0 -0
- package/dist/cdn/react-BIs9pQ3H.js +0 -926
- package/dist/cdn/react-BajV-X4P.js +0 -5425
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +0 -21
- package/dist/cdn/save-Tgil_AJZ.js +0 -34
- package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
- package/dist/cdn/select-DDdiIPR2.js +0 -2594
- package/dist/cdn/servers-Dm72iTpY.js +0 -26
- package/dist/cdn/shared-DaILIQPP.js +0 -1700
- package/dist/cdn/sheet-Br_l2kry.js +0 -2077
- package/dist/cdn/sparkles-BntO2rDR.js +0 -23
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/cdn/square-check-big-BvwQ17Bl.js +0 -10
- package/dist/cdn/switch-C3IyQuid.js +0 -664
- package/dist/cdn/tabs-subtle-CkdI6Mac.js +0 -787
- package/dist/cdn/telemetry-DabTAQ8x.js +0 -240
- package/dist/cdn/textarea-DSbwcFVt.js +0 -14
- package/dist/cdn/trash-2-RwpJY5SL.js +0 -25
- package/dist/cdn/useAriaLabelledBy-DqAdnppm.js +0 -29
- package/dist/cdn/useCompositeItem-BRqEzYh-.js +0 -26
- package/dist/cdn/useConfig-Btmh8wjJ.js +0 -235
- package/dist/cdn/useSavedRequests-Ci2I919u.js +0 -51
- package/dist/cdn/useViewHostProps-B6SKeeH9.js +0 -349
- package/dist/cdn/wrench-DzGmCfnb.js +0 -7
- package/dist/cdn/x-C3vRQIYu.js +0 -10
- package/dist/cdn/zap-Mb-pbw2X.js +0 -10
- package/dist/client/auth/manufact-auth.d.ts +0 -32
- package/dist/client/auth/manufact-auth.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +0 -4
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +0 -28
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryRail.d.ts +0 -5
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +0 -1
- package/dist/client/chat-history/ChatList.d.ts +0 -18
- package/dist/client/chat-history/ChatList.d.ts.map +0 -1
- package/dist/client/chat-history/ChatTitleReveal.d.ts +0 -10
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +0 -1
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +0 -13
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +0 -1
- package/dist/client/chat-history/chat-title.d.ts +0 -10
- package/dist/client/chat-history/chat-title.d.ts.map +0 -1
- package/dist/client/chat-history/providers/local-storage.d.ts +0 -21
- package/dist/client/chat-history/providers/local-storage.d.ts.map +0 -1
- package/dist/client/chat-history/types.d.ts +0 -39
- package/dist/client/chat-history/types.d.ts.map +0 -1
- package/dist/client/chat-history/useChatHistory.d.ts +0 -20
- package/dist/client/chat-history/useChatHistory.d.ts.map +0 -1
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +0 -17
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +0 -1
- package/dist/client/components/AddToClientDropdown.d.ts +0 -52
- package/dist/client/components/AddToClientDropdown.d.ts.map +0 -1
- package/dist/client/components/ChatTab.d.ts +0 -98
- package/dist/client/components/ChatTab.d.ts.map +0 -1
- package/dist/client/components/IframeConsole.d.ts +0 -7
- package/dist/client/components/IframeConsole.d.ts.map +0 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +0 -19
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +0 -1
- package/dist/client/components/PromptsTab.d.ts +0 -34
- package/dist/client/components/PromptsTab.d.ts.map +0 -1
- package/dist/client/components/ResourcesTab.d.ts +0 -31
- package/dist/client/components/ResourcesTab.d.ts.map +0 -1
- package/dist/client/components/ToolsTab.d.ts +0 -39
- package/dist/client/components/ToolsTab.d.ts.map +0 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +0 -10
- package/dist/client/components/chat/AssistantMessage.d.ts.map +0 -1
- package/dist/client/components/chat/ChatHeader.d.ts +0 -70
- package/dist/client/components/chat/ChatHeader.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInput.d.ts +0 -29
- package/dist/client/components/chat/ChatInput.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +0 -65
- package/dist/client/components/chat/ChatInputArea.d.ts.map +0 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +0 -15
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +0 -1
- package/dist/client/components/chat/ChatManagedNotice.d.ts +0 -10
- package/dist/client/components/chat/ChatManagedNotice.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollTopFade.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +0 -1
- package/dist/client/components/chat/ChatTraceView.d.ts +0 -7
- package/dist/client/components/chat/ChatTraceView.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts +0 -42
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +0 -6
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +0 -1
- package/dist/client/components/chat/CopyButton.d.ts +0 -10
- package/dist/client/components/chat/CopyButton.d.ts.map +0 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +0 -10
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +0 -1
- package/dist/client/components/chat/McpReconnectBanner.d.ts +0 -10
- package/dist/client/components/chat/McpReconnectBanner.d.ts.map +0 -1
- package/dist/client/components/chat/MessageList.d.ts +0 -47
- package/dist/client/components/chat/MessageList.d.ts.map +0 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +0 -7
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +0 -1
- package/dist/client/components/chat/PromptResultsList.d.ts +0 -8
- package/dist/client/components/chat/PromptResultsList.d.ts.map +0 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts +0 -11
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +0 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +0 -7
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +0 -1
- package/dist/client/components/chat/SystemPromptButton.d.ts +0 -11
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +0 -1
- package/dist/client/components/chat/ToolCallDisplay.d.ts +0 -10
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +0 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +0 -15
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/ToolSelector.d.ts +0 -13
- package/dist/client/components/chat/ToolSelector.d.ts.map +0 -1
- package/dist/client/components/chat/UserMessage.d.ts +0 -10
- package/dist/client/components/chat/UserMessage.d.ts.map +0 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +0 -6
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +0 -1
- package/dist/client/components/chat/chatModeStorage.d.ts +0 -11
- package/dist/client/components/chat/chatModeStorage.d.ts.map +0 -1
- package/dist/client/components/chat/conversion.d.ts +0 -19
- package/dist/client/components/chat/conversion.d.ts.map +0 -1
- package/dist/client/components/chat/freeTier.d.ts +0 -32
- package/dist/client/components/chat/freeTier.d.ts.map +0 -1
- package/dist/client/components/chat/managedChatNotice.d.ts +0 -16
- package/dist/client/components/chat/managedChatNotice.d.ts.map +0 -1
- package/dist/client/components/chat/providerMeta.d.ts +0 -27
- package/dist/client/components/chat/providerMeta.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +0 -5
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/types.d.ts +0 -8
- package/dist/client/components/chat/system-prompt/types.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +0 -3
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt-default.d.ts +0 -2
- package/dist/client/components/chat/system-prompt-default.d.ts.map +0 -1
- package/dist/client/components/chat/trace.d.ts +0 -84
- package/dist/client/components/chat/trace.d.ts.map +0 -1
- package/dist/client/components/chat/types.d.ts +0 -75
- package/dist/client/components/chat/types.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessages.d.ts +0 -76
- package/dist/client/components/chat/useChatMessages.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +0 -43
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +0 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +0 -14
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +0 -1
- package/dist/client/components/chat/useConfig.d.ts +0 -24
- package/dist/client/components/chat/useConfig.d.ts.map +0 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +0 -14
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +0 -1
- package/dist/client/components/chat/useManagedCloudModel.d.ts +0 -14
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +0 -1
- package/dist/client/components/chat/utils.d.ts +0 -11
- package/dist/client/components/chat/utils.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +0 -12
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +0 -9
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts +0 -8
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +0 -13
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +0 -9
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptMessageCard.d.ts +0 -29
- package/dist/client/components/prompts/PromptMessageCard.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +0 -34
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsList.d.ts +0 -10
- package/dist/client/components/prompts/PromptsList.d.ts.map +0 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts +0 -19
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +0 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +0 -16
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +0 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +0 -30
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesList.d.ts +0 -10
- package/dist/client/components/resources/ResourcesList.d.ts.map +0 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +0 -6
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +0 -1
- package/dist/client/components/shared/InspectorScrollArea.d.ts +0 -9
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +0 -1
- package/dist/client/components/shared/JSONDisplay.d.ts +0 -12
- package/dist/client/components/shared/JSONDisplay.d.ts.map +0 -1
- package/dist/client/components/shared/ListItem.d.ts +0 -24
- package/dist/client/components/shared/ListItem.d.ts.map +0 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +0 -47
- package/dist/client/components/shared/ListTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts +0 -15
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +0 -1
- package/dist/client/components/shared/SchemaFormField.d.ts +0 -12
- package/dist/client/components/shared/SchemaFormField.d.ts.map +0 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +0 -28
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/StatusIcon.d.ts +0 -12
- package/dist/client/components/shared/StatusIcon.d.ts.map +0 -1
- package/dist/client/components/shared/index.d.ts +0 -7
- package/dist/client/components/shared/index.d.ts.map +0 -1
- package/dist/client/components/tools/SaveRequestDialog.d.ts +0 -11
- package/dist/client/components/tools/SaveRequestDialog.d.ts.map +0 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts +0 -19
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +0 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +0 -20
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +0 -14
- package/dist/client/components/tools/ToolInputForm.d.ts.map +0 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -24
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsList.d.ts +0 -10
- package/dist/client/components/tools/ToolsList.d.ts.map +0 -1
- package/dist/client/components/tools/schema-utils.d.ts +0 -13
- package/dist/client/components/tools/schema-utils.d.ts.map +0 -1
- package/dist/client/components/tools/useToolExecution.d.ts +0 -26
- package/dist/client/components/tools/useToolExecution.d.ts.map +0 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +0 -35
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +0 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts +0 -13
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +0 -1
- package/dist/client/components/ui/WidgetWrapper.d.ts +0 -12
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +0 -1
- package/dist/client/components/ui/alert-dialog.d.ts +0 -15
- package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +0 -80
- package/dist/client/components/ui/ask-user-questions.d.ts.map +0 -1
- package/dist/client/components/ui/badge.d.ts +0 -34
- package/dist/client/components/ui/badge.d.ts.map +0 -1
- package/dist/client/components/ui/blur-fade.d.ts +0 -25
- package/dist/client/components/ui/blur-fade.d.ts.map +0 -1
- package/dist/client/components/ui/button.d.ts +0 -34
- package/dist/client/components/ui/button.d.ts.map +0 -1
- package/dist/client/components/ui/chat-message.d.ts +0 -23
- package/dist/client/components/ui/chat-message.d.ts.map +0 -1
- package/dist/client/components/ui/checkbox.d.ts +0 -4
- package/dist/client/components/ui/checkbox.d.ts.map +0 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -20
- package/dist/client/components/ui/client-icons.d.ts.map +0 -1
- package/dist/client/components/ui/command.d.ts +0 -17
- package/dist/client/components/ui/command.d.ts.map +0 -1
- package/dist/client/components/ui/dialog.d.ts +0 -37
- package/dist/client/components/ui/dialog.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +0 -25
- package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown.d.ts +0 -30
- package/dist/client/components/ui/dropdown.d.ts.map +0 -1
- package/dist/client/components/ui/file-thumbnail.d.ts +0 -9
- package/dist/client/components/ui/file-thumbnail.d.ts.map +0 -1
- package/dist/client/components/ui/input.d.ts +0 -4
- package/dist/client/components/ui/input.d.ts.map +0 -1
- package/dist/client/components/ui/kbd.d.ts +0 -3
- package/dist/client/components/ui/kbd.d.ts.map +0 -1
- package/dist/client/components/ui/label.d.ts +0 -4
- package/dist/client/components/ui/label.d.ts.map +0 -1
- package/dist/client/components/ui/menu-item.d.ts +0 -52
- package/dist/client/components/ui/menu-item.d.ts.map +0 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts +0 -12
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +0 -1
- package/dist/client/components/ui/not-found.d.ts +0 -9
- package/dist/client/components/ui/not-found.d.ts.map +0 -1
- package/dist/client/components/ui/popover.d.ts +0 -6
- package/dist/client/components/ui/popover.d.ts.map +0 -1
- package/dist/client/components/ui/resizable.d.ts +0 -10
- package/dist/client/components/ui/resizable.d.ts.map +0 -1
- package/dist/client/components/ui/scroll-area.d.ts +0 -4
- package/dist/client/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/client/components/ui/select.d.ts +0 -52
- package/dist/client/components/ui/select.d.ts.map +0 -1
- package/dist/client/components/ui/sheet.d.ts +0 -14
- package/dist/client/components/ui/sheet.d.ts.map +0 -1
- package/dist/client/components/ui/skeleton.d.ts +0 -4
- package/dist/client/components/ui/skeleton.d.ts.map +0 -1
- package/dist/client/components/ui/spinner.d.ts +0 -3
- package/dist/client/components/ui/spinner.d.ts.map +0 -1
- package/dist/client/components/ui/switch.d.ts +0 -22
- package/dist/client/components/ui/switch.d.ts.map +0 -1
- package/dist/client/components/ui/table.d.ts +0 -9
- package/dist/client/components/ui/table.d.ts.map +0 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +0 -25
- package/dist/client/components/ui/tabs-subtle.d.ts.map +0 -1
- package/dist/client/components/ui/text-shimmer.d.ts +0 -11
- package/dist/client/components/ui/text-shimmer.d.ts.map +0 -1
- package/dist/client/components/ui/textarea.d.ts +0 -4
- package/dist/client/components/ui/textarea.d.ts.map +0 -1
- package/dist/client/components/ui/tooltip.d.ts +0 -43
- package/dist/client/components/ui/tooltip.d.ts.map +0 -1
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts +0 -19
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts.map +0 -1
- package/dist/client/console-log-bus.d.ts +0 -24
- package/dist/client/console-log-bus.d.ts.map +0 -1
- package/dist/client/constants/debug-options.d.ts +0 -16
- package/dist/client/constants/debug-options.d.ts.map +0 -1
- package/dist/client/context/InspectorContext.d.ts +0 -134
- package/dist/client/context/InspectorContext.d.ts.map +0 -1
- package/dist/client/context/ThemeContext.d.ts +0 -17
- package/dist/client/context/ThemeContext.d.ts.map +0 -1
- package/dist/client/context/WidgetDebugContext.d.ts +0 -121
- package/dist/client/context/WidgetDebugContext.d.ts.map +0 -1
- package/dist/client/hooks/use-merge-split.d.ts +0 -36
- package/dist/client/hooks/use-merge-split.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover-index.d.ts +0 -27
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover.d.ts +0 -26
- package/dist/client/hooks/use-proximity-hover.d.ts.map +0 -1
- package/dist/client/hooks/use-touch-primary.d.ts +0 -2
- package/dist/client/hooks/use-touch-primary.d.ts.map +0 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +0 -18
- package/dist/client/hooks/useDeviceViewport.d.ts.map +0 -1
- package/dist/client/hooks/useHostedSession.d.ts +0 -9
- package/dist/client/hooks/useHostedSession.d.ts.map +0 -1
- package/dist/client/hooks/useIframeConsole.d.ts +0 -24
- package/dist/client/hooks/useIframeConsole.d.ts.map +0 -1
- package/dist/client/hooks/useKeyboardShortcuts.d.ts +0 -28
- package/dist/client/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +0 -94
- package/dist/client/hooks/useMCPPrompts.d.ts.map +0 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +0 -27
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +0 -1
- package/dist/client/hooks/usePropsLLM.d.ts +0 -20
- package/dist/client/hooks/usePropsLLM.d.ts.map +0 -1
- package/dist/client/hooks/useResourceProps.d.ts +0 -14
- package/dist/client/hooks/useResourceProps.d.ts.map +0 -1
- package/dist/client/hooks/useSavedRequests.d.ts +0 -6
- package/dist/client/hooks/useSavedRequests.d.ts.map +0 -1
- package/dist/client/hooks/useViewHostProps.d.ts +0 -19
- package/dist/client/hooks/useViewHostProps.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/lib/elevated.d.ts +0 -28
- package/dist/client/lib/elevated.d.ts.map +0 -1
- package/dist/client/lib/font-weight.d.ts +0 -10
- package/dist/client/lib/font-weight.d.ts.map +0 -1
- package/dist/client/lib/icon-context.d.ts +0 -15
- package/dist/client/lib/icon-context.d.ts.map +0 -1
- package/dist/client/lib/shape-context.d.ts +0 -21
- package/dist/client/lib/shape-context.d.ts.map +0 -1
- package/dist/client/lib/springs.d.ts +0 -32
- package/dist/client/lib/springs.d.ts.map +0 -1
- package/dist/client/lib/surface-classes.d.ts +0 -2
- package/dist/client/lib/surface-classes.d.ts.map +0 -1
- package/dist/client/lib/surface-context.d.ts +0 -7
- package/dist/client/lib/surface-context.d.ts.map +0 -1
- package/dist/client/lib/utils.d.ts +0 -3
- package/dist/client/lib/utils.d.ts.map +0 -1
- package/dist/client/mcp-apps/csp.d.ts +0 -26
- package/dist/client/mcp-apps/csp.d.ts.map +0 -1
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +0 -17
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +0 -1
- package/dist/client/mcp-apps/logging-transport.d.ts +0 -13
- package/dist/client/mcp-apps/logging-transport.d.ts.map +0 -1
- package/dist/client/rpc-traffic-coalesce.d.ts +0 -7
- package/dist/client/rpc-traffic-coalesce.d.ts.map +0 -1
- package/dist/client/rpc-traffic-store.d.ts +0 -37
- package/dist/client/rpc-traffic-store.d.ts.map +0 -1
- package/dist/client/telemetry/capture.d.ts +0 -7
- package/dist/client/telemetry/capture.d.ts.map +0 -1
- package/dist/client/telemetry/events.d.ts +0 -168
- package/dist/client/telemetry/events.d.ts.map +0 -1
- package/dist/client/telemetry/index.d.ts +0 -5
- package/dist/client/telemetry/index.d.ts.map +0 -1
- package/dist/client/telemetry/init.d.ts +0 -2
- package/dist/client/telemetry/init.d.ts.map +0 -1
- package/dist/client/telemetry/utils.d.ts +0 -7
- package/dist/client/telemetry/utils.d.ts.map +0 -1
- package/dist/client/types/message-content-block.d.ts +0 -19
- package/dist/client/types/message-content-block.d.ts.map +0 -1
- package/dist/client/types/pending-requests.d.ts +0 -17
- package/dist/client/types/pending-requests.d.ts.map +0 -1
- package/dist/client/utils/basePath.d.ts +0 -34
- package/dist/client/utils/basePath.d.ts.map +0 -1
- package/dist/client/utils/browser.d.ts +0 -5
- package/dist/client/utils/browser.d.ts.map +0 -1
- package/dist/client/utils/format.d.ts +0 -4
- package/dist/client/utils/format.d.ts.map +0 -1
- package/dist/client/utils/highlightJson.d.ts +0 -11
- package/dist/client/utils/highlightJson.d.ts.map +0 -1
- package/dist/client/utils/jsonUtils.d.ts +0 -24
- package/dist/client/utils/jsonUtils.d.ts.map +0 -1
- package/dist/client/utils/mcpClientUtils.d.ts +0 -131
- package/dist/client/utils/mcpClientUtils.d.ts.map +0 -1
- package/dist/client/utils/servers.d.ts +0 -14
- package/dist/client/utils/servers.d.ts.map +0 -1
- package/dist/server/asset-urls.d.ts +0 -18
- package/dist/server/asset-urls.d.ts.map +0 -1
- package/dist/server/asset-urls.js +0 -17
- package/dist/server/cdn-shell.d.ts +0 -18
- package/dist/server/cdn-shell.d.ts.map +0 -1
- package/dist/server/cdn-shell.js +0 -12
- package/dist/server/chunk-DSTNUYWX.js +0 -148
- package/dist/server/chunk-H6ZCIKBS.js +0 -63
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/chunk-J4FNYLBF.js +0 -54
- package/dist/server/chunk-K2F2AJOI.js +0 -619
- package/dist/server/chunk-KD7K27XK.js +0 -77
- package/dist/server/chunk-M5TZA42I.js +0 -54
- package/dist/server/chunk-OWR2BIBW.js +0 -40
- package/dist/server/chunk-PKBMQBKP.js +0 -7
- package/dist/server/chunk-SQ4XNMLT.js +0 -72
- package/dist/server/chunk-UJLXHNQP.js +0 -43
- package/dist/server/chunk-WFT4JHYI.js +0 -24
- package/dist/server/chunk-XCNS5CIW.js +0 -199
- package/dist/server/chunk-ZCGLU5T7.js +0 -156
- package/dist/server/cli.d.ts +0 -3
- package/dist/server/cli.d.ts.map +0 -1
- package/dist/server/cli.js +0 -141
- package/dist/server/create-dev-api-app.d.ts +0 -4
- package/dist/server/create-dev-api-app.d.ts.map +0 -1
- package/dist/server/create-dev-api-app.js +0 -11
- package/dist/server/dev-callback-redirect.d.ts +0 -3
- package/dist/server/dev-callback-redirect.d.ts.map +0 -1
- package/dist/server/dev-callback-redirect.js +0 -18
- package/dist/server/favicon-links.d.ts +0 -12
- package/dist/server/favicon-links.d.ts.map +0 -1
- package/dist/server/favicon-links.js +0 -11
- package/dist/server/favicon-static.d.ts +0 -4
- package/dist/server/favicon-static.d.ts.map +0 -1
- package/dist/server/favicon-static.js +0 -8
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/middleware.d.ts +0 -40
- package/dist/server/middleware.d.ts.map +0 -1
- package/dist/server/middleware.js +0 -17
- package/dist/server/proxy/index.d.ts +0 -3
- package/dist/server/proxy/index.d.ts.map +0 -1
- package/dist/server/proxy/index.js +0 -12
- package/dist/server/proxy/mcp-proxy.d.ts +0 -101
- package/dist/server/proxy/mcp-proxy.d.ts.map +0 -1
- package/dist/server/proxy/mcp-proxy.js +0 -10
- package/dist/server/proxy/oauth-proxy.d.ts +0 -26
- package/dist/server/proxy/oauth-proxy.d.ts.map +0 -1
- package/dist/server/proxy/oauth-proxy.js +0 -9
- package/dist/server/proxy-routes.d.ts +0 -16
- package/dist/server/proxy-routes.d.ts.map +0 -1
- package/dist/server/proxy-routes.js +0 -10
- package/dist/server/rpc-log-bus.d.ts +0 -17
- package/dist/server/rpc-log-bus.d.ts.map +0 -1
- package/dist/server/rpc-log-bus.js +0 -77
- package/dist/server/server.d.ts +0 -15
- package/dist/server/server.d.ts.map +0 -1
- package/dist/server/server.js +0 -66
- package/dist/server/static-assets.d.ts +0 -5
- package/dist/server/static-assets.d.ts.map +0 -1
- package/dist/server/static-assets.js +0 -9
- package/dist/server/utils.d.ts +0 -33
- package/dist/server/utils.d.ts.map +0 -1
- package/dist/server/utils.js +0 -17
- package/dist/server/version.d.ts +0 -7
- package/dist/server/version.d.ts.map +0 -1
- package/dist/server/version.js +0 -9
- package/dist/server/vite-dev-api-plugin.d.ts +0 -4
- package/dist/server/vite-dev-api-plugin.d.ts.map +0 -1
- package/dist/server/vite-dev-api-plugin.js +0 -30
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-BCobuZDc.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-BjGkLwVu.js +0 -1
- package/dist/web/assets/ElicitationTab-D3ZUKHND.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/ManufactOAuthCallback-CS3ydSZg.js +0 -1
- package/dist/web/assets/MarkdownRenderer-BeeBfQhv.js +0 -47
- package/dist/web/assets/NotificationsTab-Uj0_DrmK.js +0 -1
- package/dist/web/assets/OAuthCallback-C0ljgCiw.js +0 -1
- package/dist/web/assets/PromptsTab-Bns2u0G-.js +0 -15
- package/dist/web/assets/ResourcesTab-CO24312V.js +0 -2
- package/dist/web/assets/SamplingTab-7gtN7FwU.js +0 -1
- package/dist/web/assets/ServerMetadataTab-CQwqYSjL.js +0 -1
- package/dist/web/assets/ToolsTab-bDdRxI1b.js +0 -8
- package/dist/web/assets/ViewPreview-Ba1Ec5uA.js +0 -1
- package/dist/web/assets/WidgetWrapper-CYHfzrtb.js +0 -34
- package/dist/web/assets/brush--0LobUi4.js +0 -1
- package/dist/web/assets/checkbox-CzBkaNKa.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/dist-C5JjLJN9.js +0 -21
- package/dist/web/assets/index-TQ5V7cM9.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/label-Cdim77Jw.js +0 -1
- package/dist/web/assets/maximize-2-BTT9QQU9.js +0 -1
- package/dist/web/assets/maximize-_O55kFcr.js +0 -1
- package/dist/web/assets/react-CU_d2d5K.js +0 -1
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +0 -1
- package/dist/web/assets/save-B-MsgxX9.js +0 -1
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-BF0rJNdE.js +0 -1
- package/dist/web/assets/sparkles-2OAsc1aP.js +0 -1
- package/dist/web/assets/tabs-subtle-6D79T1xd.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useConfig-BAgALiZg.js +0 -1
- package/dist/web/assets/useViewHostProps-BYitt_6K.js +0 -1
- package/dist/web/assets/zap-Du2Uc5pa.js +0 -1
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +0 -5
- package/dist/web/favicon-white.svg +0 -5
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +0 -5
- package/dist/web/index.html +0 -89
- package/dist/web/providers/anthropic.png +0 -0
- package/dist/web/providers/google.png +0 -0
- package/dist/web/providers/openai.png +0 -0
- package/dist/web/site.webmanifest +0 -21
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- /package/dist/{cdn → app}/apple-touch-icon.png +0 -0
- /package/dist/{cdn → app}/favicon-96x96.png +0 -0
- /package/dist/{cdn → app}/favicon-black.svg +0 -0
- /package/dist/{cdn → app}/favicon-white.svg +0 -0
- /package/dist/{cdn → app}/favicon.ico +0 -0
- /package/dist/{cdn → app}/favicon.svg +0 -0
- /package/dist/{cdn → app}/site.webmanifest +0 -0
- /package/dist/{cdn → app}/web-app-manifest-192x192.png +0 -0
- /package/dist/{cdn → app}/web-app-manifest-512x512.png +0 -0
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./index-browser-DkQOzkvX.js";
|
|
2
|
-
//#region src/client/telemetry/events.ts
|
|
3
|
-
var i = class {
|
|
4
|
-
name = "mcp_inspector_open";
|
|
5
|
-
properties;
|
|
6
|
-
constructor(e) {
|
|
7
|
-
this.properties = {
|
|
8
|
-
server_url: e.serverUrl,
|
|
9
|
-
connection_count: e.connectionCount
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}, a = class {
|
|
13
|
-
name = "mcp_tool_execution";
|
|
14
|
-
properties;
|
|
15
|
-
constructor(e) {
|
|
16
|
-
this.properties = {
|
|
17
|
-
tool_name: e.toolName,
|
|
18
|
-
server_id: e.serverId,
|
|
19
|
-
success: e.success,
|
|
20
|
-
duration: e.duration,
|
|
21
|
-
error: e.error
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}, o = class {
|
|
25
|
-
name = "mcp_resource_read";
|
|
26
|
-
properties;
|
|
27
|
-
constructor(e) {
|
|
28
|
-
this.properties = {
|
|
29
|
-
resource_uri: e.resourceUri,
|
|
30
|
-
server_id: e.serverId,
|
|
31
|
-
success: e.success,
|
|
32
|
-
error: e.error
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}, s = class {
|
|
36
|
-
name = "mcp_prompt_call";
|
|
37
|
-
properties;
|
|
38
|
-
constructor(e) {
|
|
39
|
-
this.properties = {
|
|
40
|
-
prompt_name: e.promptName,
|
|
41
|
-
server_id: e.serverId,
|
|
42
|
-
success: e.success,
|
|
43
|
-
error: e.error
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}, c = class {
|
|
47
|
-
name = "mcp_server_connection";
|
|
48
|
-
properties;
|
|
49
|
-
constructor(e) {
|
|
50
|
-
this.properties = {
|
|
51
|
-
server_id: e.serverId,
|
|
52
|
-
server_url: e.serverUrl,
|
|
53
|
-
success: e.success,
|
|
54
|
-
connection_type: e.connectionType,
|
|
55
|
-
error: e.error
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}, l = class {
|
|
59
|
-
name = "mcp_chat_message";
|
|
60
|
-
properties;
|
|
61
|
-
constructor(e) {
|
|
62
|
-
this.properties = {
|
|
63
|
-
server_id: e.serverId,
|
|
64
|
-
provider: e.provider,
|
|
65
|
-
model: e.model,
|
|
66
|
-
message_count: e.messageCount,
|
|
67
|
-
tool_calls_count: e.toolCallsCount,
|
|
68
|
-
success: e.success,
|
|
69
|
-
execution_mode: e.executionMode,
|
|
70
|
-
duration: e.duration,
|
|
71
|
-
error: e.error
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}, u = class {
|
|
75
|
-
name = "mcp_server_added";
|
|
76
|
-
properties;
|
|
77
|
-
constructor(e) {
|
|
78
|
-
this.properties = {
|
|
79
|
-
server_id: e.serverId,
|
|
80
|
-
server_url: e.serverUrl,
|
|
81
|
-
connection_type: e.connectionType,
|
|
82
|
-
via_proxy: e.viaProxy
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}, d = class {
|
|
86
|
-
name = "mcp_server_removed";
|
|
87
|
-
properties;
|
|
88
|
-
constructor(e) {
|
|
89
|
-
this.properties = { server_id: e.serverId };
|
|
90
|
-
}
|
|
91
|
-
}, f = class {
|
|
92
|
-
name = "mcp_command_palette_open";
|
|
93
|
-
properties;
|
|
94
|
-
constructor(e) {
|
|
95
|
-
this.properties = { trigger: e.trigger };
|
|
96
|
-
}
|
|
97
|
-
}, p = class {
|
|
98
|
-
name = "mcp_tool_saved";
|
|
99
|
-
properties;
|
|
100
|
-
constructor(e) {
|
|
101
|
-
this.properties = {
|
|
102
|
-
tool_name: e.toolName,
|
|
103
|
-
server_id: e.serverId
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
}, m = class {
|
|
107
|
-
name = "mcp_tunnel_action";
|
|
108
|
-
properties;
|
|
109
|
-
constructor(e) {
|
|
110
|
-
this.properties = {
|
|
111
|
-
action: e.action,
|
|
112
|
-
success: e.success,
|
|
113
|
-
tunnel_url: e.tunnelUrl
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}, h = class {
|
|
117
|
-
name = "mcp_deploy_click";
|
|
118
|
-
properties;
|
|
119
|
-
constructor(e) {
|
|
120
|
-
this.properties = { referrer: e.referrer };
|
|
121
|
-
}
|
|
122
|
-
}, g = class {
|
|
123
|
-
name = "mcp_chat_configured";
|
|
124
|
-
properties;
|
|
125
|
-
constructor(e) {
|
|
126
|
-
this.properties = {
|
|
127
|
-
provider: e.provider,
|
|
128
|
-
model: e.model
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}, _ = class {
|
|
132
|
-
name = "mcp_tab_navigation";
|
|
133
|
-
properties;
|
|
134
|
-
constructor(e) {
|
|
135
|
-
this.properties = {
|
|
136
|
-
tab: e.tab,
|
|
137
|
-
previous_tab: e.previousTab
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}, v = class {
|
|
141
|
-
name = "mcp_add_to_client";
|
|
142
|
-
properties;
|
|
143
|
-
constructor(e) {
|
|
144
|
-
this.properties = { client: e.client };
|
|
145
|
-
}
|
|
146
|
-
}, y = class {
|
|
147
|
-
name = "mcp_session_duration";
|
|
148
|
-
properties;
|
|
149
|
-
constructor(e) {
|
|
150
|
-
this.properties = {
|
|
151
|
-
duration_seconds: e.durationSeconds,
|
|
152
|
-
tabs_visited: e.tabsVisited,
|
|
153
|
-
tools_executed: e.toolsExecuted
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region src/client/telemetry/utils.ts
|
|
159
|
-
function b() {
|
|
160
|
-
try {
|
|
161
|
-
if (typeof window < "u") {
|
|
162
|
-
let e = window.__INSPECTOR_VERSION__;
|
|
163
|
-
if (e !== void 0 && e !== "") return e;
|
|
164
|
-
}
|
|
165
|
-
return "20.0.0-beta.4";
|
|
166
|
-
} catch {
|
|
167
|
-
return "0.0.0";
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region src/client/telemetry/init.ts
|
|
172
|
-
var x = "mcp_inspector_telemetry_disabled", S = "mcp_inspector_telemetry_user_id", C = "mcp_inspector_telemetry_download_version", w = "MCP_USE_ANONYMIZED_TELEMETRY", T = "mcp_use_user_id";
|
|
173
|
-
function E() {
|
|
174
|
-
return typeof localStorage < "u" && typeof localStorage.getItem == "function" && typeof localStorage.setItem == "function";
|
|
175
|
-
}
|
|
176
|
-
function D() {
|
|
177
|
-
if (typeof window > "u") return "standalone";
|
|
178
|
-
let e = window.__MCP_INSPECTOR_MODE__;
|
|
179
|
-
return e === "standalone" || e === "embedded" || e === "cloud" ? e : "standalone";
|
|
180
|
-
}
|
|
181
|
-
function O(e, t) {
|
|
182
|
-
let n = (e) => e.split("-")[0].split(".").map((e) => parseInt(e, 10) || 0), r = n(e), i = n(t), a = Math.max(r.length, i.length);
|
|
183
|
-
for (let e = 0; e < a; e++) {
|
|
184
|
-
let t = r[e] ?? 0, n = i[e] ?? 0;
|
|
185
|
-
if (t !== n) return t > n;
|
|
186
|
-
}
|
|
187
|
-
return !1;
|
|
188
|
-
}
|
|
189
|
-
function k() {
|
|
190
|
-
if (E()) try {
|
|
191
|
-
if (localStorage.getItem(x) === "true" && localStorage.getItem(w) !== "false" && localStorage.setItem(w, "false"), !localStorage.getItem(T)) {
|
|
192
|
-
let e = localStorage.getItem(S);
|
|
193
|
-
e && localStorage.setItem(T, e);
|
|
194
|
-
}
|
|
195
|
-
} catch {}
|
|
196
|
-
}
|
|
197
|
-
async function A() {
|
|
198
|
-
if (!(typeof window > "u" || !E())) try {
|
|
199
|
-
let t = e.getInstance();
|
|
200
|
-
if (!t.isEnabled) return;
|
|
201
|
-
let i = b(), a = !1, o = !1, s = localStorage.getItem(C);
|
|
202
|
-
if (s ? O(i, s) && (a = !0, localStorage.setItem(C, i)) : (a = !0, o = !0, localStorage.setItem(C, i)), !a) return;
|
|
203
|
-
n({
|
|
204
|
-
triggered_by: "initialization",
|
|
205
|
-
mcp_use_version: i,
|
|
206
|
-
user_id: t.userId,
|
|
207
|
-
event: "package_download",
|
|
208
|
-
first_download: o,
|
|
209
|
-
language: "typescript",
|
|
210
|
-
source: "inspector",
|
|
211
|
-
package: "inspector",
|
|
212
|
-
mode: D()
|
|
213
|
-
}, r);
|
|
214
|
-
} catch {}
|
|
215
|
-
}
|
|
216
|
-
function j() {
|
|
217
|
-
k(), t("inspector"), e.getInstance().setProductVersion(b()), A();
|
|
218
|
-
}
|
|
219
|
-
//#endregion
|
|
220
|
-
//#region src/client/telemetry/capture.ts
|
|
221
|
-
function M() {
|
|
222
|
-
if (typeof window > "u") return "standalone";
|
|
223
|
-
let e = window.__MCP_INSPECTOR_MODE__;
|
|
224
|
-
return e === "standalone" || e === "embedded" || e === "cloud" ? e : "standalone";
|
|
225
|
-
}
|
|
226
|
-
async function N(t) {
|
|
227
|
-
await e.getInstance().capture({
|
|
228
|
-
name: t.name,
|
|
229
|
-
properties: {
|
|
230
|
-
...t.properties,
|
|
231
|
-
package: "inspector",
|
|
232
|
-
mode: M()
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
async function P(e) {
|
|
237
|
-
await N(new i(e));
|
|
238
|
-
}
|
|
239
|
-
//#endregion
|
|
240
|
-
export { a as _, v as a, f as c, o as d, u as f, _ as g, y as h, b as i, h as l, d as m, P as n, g as o, c as p, j as r, l as s, N as t, s as u, p as v, m as y };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Rr as t } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
-
e();
|
|
5
|
-
var r = n();
|
|
6
|
-
function i({ className: e, ...n }) {
|
|
7
|
-
return /* @__PURE__ */ (0, r.jsx)("textarea", {
|
|
8
|
-
"data-slot": "textarea",
|
|
9
|
-
className: t("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
|
|
10
|
-
...n
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { i as t };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
|
|
2
|
-
var t = e("trash-2", [
|
|
3
|
-
["path", {
|
|
4
|
-
d: "M10 11v6",
|
|
5
|
-
key: "nco0om"
|
|
6
|
-
}],
|
|
7
|
-
["path", {
|
|
8
|
-
d: "M14 11v6",
|
|
9
|
-
key: "outv1u"
|
|
10
|
-
}],
|
|
11
|
-
["path", {
|
|
12
|
-
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
13
|
-
key: "miytrc"
|
|
14
|
-
}],
|
|
15
|
-
["path", {
|
|
16
|
-
d: "M3 6h18",
|
|
17
|
-
key: "d0wm0j"
|
|
18
|
-
}],
|
|
19
|
-
["path", {
|
|
20
|
-
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
21
|
-
key: "e791ji"
|
|
22
|
-
}]
|
|
23
|
-
]);
|
|
24
|
-
//#endregion
|
|
25
|
-
export { t };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Nn as n, Sr as r } from "./input-C2OBd4PJ.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/labelable-provider/useAriaLabelledBy.mjs
|
|
4
|
-
var i = /* @__PURE__ */ e(t(), 1);
|
|
5
|
-
function a(e, t, a, s = !0, c) {
|
|
6
|
-
let [l, u] = i.useState(), d = n(c ? `${c}-label` : void 0), f = e ?? t ?? l;
|
|
7
|
-
return r(() => {
|
|
8
|
-
let n = e || t || !s ? void 0 : o(a.current, d);
|
|
9
|
-
l !== n && u(n);
|
|
10
|
-
}), f;
|
|
11
|
-
}
|
|
12
|
-
function o(e, t) {
|
|
13
|
-
let n = s(e);
|
|
14
|
-
if (n) return !n.id && t && (n.id = t), n.id || void 0;
|
|
15
|
-
}
|
|
16
|
-
function s(e) {
|
|
17
|
-
if (!e) return;
|
|
18
|
-
let t = e.parentElement;
|
|
19
|
-
if (t && t.tagName === "LABEL") return t;
|
|
20
|
-
let n = e.id;
|
|
21
|
-
if (n) {
|
|
22
|
-
let t = e.nextElementSibling;
|
|
23
|
-
if (t && t.htmlFor === n) return t;
|
|
24
|
-
}
|
|
25
|
-
let r = e.labels;
|
|
26
|
-
return r && r[0];
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { a as t };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { gr as n, yr as r } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { b as i } from "./AnimatePresence-Dcw-FOy8.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/composite/item/useCompositeItem.mjs
|
|
5
|
-
var a = /* @__PURE__ */ e(t(), 1);
|
|
6
|
-
function o(e = {}) {
|
|
7
|
-
let { highlightItemOnHover: t, highlightedIndex: o, onHighlightedIndexChange: s } = r(), { ref: c, index: l } = i(e), u = o === l, d = a.useRef(null), f = n(c, d);
|
|
8
|
-
return {
|
|
9
|
-
compositeProps: {
|
|
10
|
-
tabIndex: u ? 0 : -1,
|
|
11
|
-
onFocus() {
|
|
12
|
-
s(l);
|
|
13
|
-
},
|
|
14
|
-
onMouseMove() {
|
|
15
|
-
let e = d.current;
|
|
16
|
-
if (!t || !e) return;
|
|
17
|
-
let n = e.hasAttribute("disabled") || e.ariaDisabled === "true";
|
|
18
|
-
!u && !n && e.focus();
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
compositeRef: f,
|
|
22
|
-
index: l
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { o as t };
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { o as n, t as r } from "./telemetry-DabTAQ8x.js";
|
|
3
|
-
import { t as i } from "./dist-DbX5yidW.js";
|
|
4
|
-
//#region src/client/components/chat/types.ts
|
|
5
|
-
var a = /* @__PURE__ */ e(t(), 1), o = {
|
|
6
|
-
openai: "gpt-5.6-terra",
|
|
7
|
-
"openai-compatible": "",
|
|
8
|
-
anthropic: "claude-haiku-4-5-20251001",
|
|
9
|
-
google: "gemini-2.5-flash",
|
|
10
|
-
openrouter: "meta-llama/llama-3.1-8b-instruct:free",
|
|
11
|
-
ollama: "qwen3"
|
|
12
|
-
}, s = { ollama: i };
|
|
13
|
-
function c(e) {
|
|
14
|
-
return e !== "ollama" && e !== "openai-compatible";
|
|
15
|
-
}
|
|
16
|
-
function l(e) {
|
|
17
|
-
return e === "ollama" || e === "openai-compatible";
|
|
18
|
-
}
|
|
19
|
-
function u(e) {
|
|
20
|
-
return s[e] ?? "";
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/client/components/chat/utils.ts
|
|
24
|
-
function d(e) {
|
|
25
|
-
let t = 0;
|
|
26
|
-
for (let n = 0; n < e.length; n++) {
|
|
27
|
-
let r = e.charCodeAt(n);
|
|
28
|
-
t = (t << 5) - t + r, t &= t;
|
|
29
|
-
}
|
|
30
|
-
return Math.abs(t).toString(16);
|
|
31
|
-
}
|
|
32
|
-
var f = 10 * 1024 * 1024, p = 20 * 1024 * 1024, m = [
|
|
33
|
-
"image/png",
|
|
34
|
-
"image/jpeg",
|
|
35
|
-
"image/jpg",
|
|
36
|
-
"image/gif",
|
|
37
|
-
"image/webp",
|
|
38
|
-
"image/svg+xml"
|
|
39
|
-
];
|
|
40
|
-
function h(e) {
|
|
41
|
-
return m.includes(e.type);
|
|
42
|
-
}
|
|
43
|
-
function g(e) {
|
|
44
|
-
return e.size <= f;
|
|
45
|
-
}
|
|
46
|
-
function _(e) {
|
|
47
|
-
return e.reduce((e, t) => e + (t.size || 0), 0) <= p;
|
|
48
|
-
}
|
|
49
|
-
function v(e) {
|
|
50
|
-
return new Promise((t, n) => {
|
|
51
|
-
let r = new FileReader();
|
|
52
|
-
r.onload = () => {
|
|
53
|
-
let e = r.result;
|
|
54
|
-
t(e.includes(",") ? e.split(",")[1] : e);
|
|
55
|
-
}, r.onerror = () => {
|
|
56
|
-
n(/* @__PURE__ */ Error(`Failed to read file: ${e.name}`));
|
|
57
|
-
}, r.readAsDataURL(e);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
async function y(e) {
|
|
61
|
-
if (!h(e)) throw Error(`Unsupported file type: ${e.type}. Only images are supported.`);
|
|
62
|
-
if (!g(e)) throw Error(`File too large: ${e.name}. Maximum size is 10MB.`);
|
|
63
|
-
return {
|
|
64
|
-
type: "image",
|
|
65
|
-
data: await v(e),
|
|
66
|
-
mimeType: e.type,
|
|
67
|
-
name: e.name,
|
|
68
|
-
size: e.size
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region src/client/components/chat/chatModeStorage.ts
|
|
73
|
-
var b = "mcp-inspector:chat-mode";
|
|
74
|
-
function x() {
|
|
75
|
-
try {
|
|
76
|
-
let e = localStorage.getItem(b);
|
|
77
|
-
if (e === "byok" || e === "managed") return e;
|
|
78
|
-
} catch {}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
function S(e) {
|
|
82
|
-
try {
|
|
83
|
-
localStorage.setItem(b, e);
|
|
84
|
-
} catch {}
|
|
85
|
-
}
|
|
86
|
-
function C(e, t) {
|
|
87
|
-
let n = x();
|
|
88
|
-
if (n === "byok") return !0;
|
|
89
|
-
if (n === "managed" || e) return !1;
|
|
90
|
-
try {
|
|
91
|
-
if (localStorage.getItem("mcp-inspector-llm-config")) return !0;
|
|
92
|
-
} catch {}
|
|
93
|
-
return !!t;
|
|
94
|
-
}
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/client/components/chat/useConfig.ts
|
|
97
|
-
function w({ mcpServerUrl: e }) {
|
|
98
|
-
let [t, i] = (0, a.useState)(null), [s, f] = (0, a.useState)(null), [p, m] = (0, a.useState)(!1), [h, g] = (0, a.useState)("openai"), [_, v] = (0, a.useState)(""), [y, b] = (0, a.useState)(o.openai), [x, C] = (0, a.useState)(u("openai")), w = (0, a.useCallback)(() => {
|
|
99
|
-
let e = localStorage.getItem("mcp-inspector-api-keys");
|
|
100
|
-
if (e) try {
|
|
101
|
-
return JSON.parse(e);
|
|
102
|
-
} catch (e) {
|
|
103
|
-
return console.error("Failed to load API keys:", e), {};
|
|
104
|
-
}
|
|
105
|
-
return {};
|
|
106
|
-
}, []), T = (0, a.useCallback)((e) => {
|
|
107
|
-
localStorage.setItem("mcp-inspector-api-keys", JSON.stringify(e));
|
|
108
|
-
}, []), E = (0, a.useCallback)(() => {
|
|
109
|
-
let e = localStorage.getItem("mcp-inspector-base-urls");
|
|
110
|
-
if (e) try {
|
|
111
|
-
return JSON.parse(e);
|
|
112
|
-
} catch (e) {
|
|
113
|
-
return console.error("Failed to load base URLs:", e), {};
|
|
114
|
-
}
|
|
115
|
-
return {};
|
|
116
|
-
}, []), D = (0, a.useCallback)((e) => {
|
|
117
|
-
localStorage.setItem("mcp-inspector-base-urls", JSON.stringify(e));
|
|
118
|
-
}, []), [O, k] = (0, a.useState)("none"), [A, j] = (0, a.useState)(""), [M, N] = (0, a.useState)(""), [P, F] = (0, a.useState)("");
|
|
119
|
-
(0, a.useEffect)(() => {
|
|
120
|
-
let e = () => {
|
|
121
|
-
let e = localStorage.getItem("mcp-inspector-llm-config"), t = w(), n = E();
|
|
122
|
-
if (e) try {
|
|
123
|
-
let r = JSON.parse(e);
|
|
124
|
-
i(r), g(r.provider), v(t[r.provider] || r.apiKey || ""), b(r.model), C(n[r.provider] || r.baseUrl || u(r.provider));
|
|
125
|
-
} catch (e) {
|
|
126
|
-
console.error("Failed to load LLM config:", e);
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
e();
|
|
130
|
-
let t = () => {
|
|
131
|
-
e();
|
|
132
|
-
}, n = (t) => {
|
|
133
|
-
(t.key === "mcp-inspector-llm-config" || t.key === "mcp-inspector-api-keys" || t.key === "mcp-inspector-base-urls") && e();
|
|
134
|
-
};
|
|
135
|
-
return window.addEventListener("llm-config-updated", t), window.addEventListener("storage", n), () => {
|
|
136
|
-
window.removeEventListener("llm-config-updated", t), window.removeEventListener("storage", n);
|
|
137
|
-
};
|
|
138
|
-
}, [w, E]), (0, a.useEffect)(() => {
|
|
139
|
-
let t = localStorage.getItem("mcp-inspector-auth-config");
|
|
140
|
-
if (t) try {
|
|
141
|
-
let e = JSON.parse(t);
|
|
142
|
-
f(e), k(e.type), e.username && j(e.username), e.password && N(e.password), e.token && F(e.token);
|
|
143
|
-
} catch (e) {
|
|
144
|
-
console.error("Failed to load auth config:", e);
|
|
145
|
-
}
|
|
146
|
-
else try {
|
|
147
|
-
let t = `mcp:auth_${d(e)}_tokens`;
|
|
148
|
-
localStorage.getItem(t) && (f({ type: "oauth" }), k("oauth"));
|
|
149
|
-
} catch (e) {
|
|
150
|
-
console.error("Failed to check for OAuth tokens:", e);
|
|
151
|
-
}
|
|
152
|
-
}, [e]);
|
|
153
|
-
let I = (0, a.useRef)(h);
|
|
154
|
-
return (0, a.useEffect)(() => {
|
|
155
|
-
let e = I.current !== h;
|
|
156
|
-
I.current = h, e && !l(h) && b(o[h]);
|
|
157
|
-
let t = w(), n = E();
|
|
158
|
-
v(t[h] || ""), C(n[h] || u(h));
|
|
159
|
-
}, [
|
|
160
|
-
h,
|
|
161
|
-
w,
|
|
162
|
-
E
|
|
163
|
-
]), {
|
|
164
|
-
llmConfig: t,
|
|
165
|
-
authConfig: s,
|
|
166
|
-
configDialogOpen: p,
|
|
167
|
-
setConfigDialogOpen: m,
|
|
168
|
-
tempProvider: h,
|
|
169
|
-
setTempProvider: g,
|
|
170
|
-
tempApiKey: _,
|
|
171
|
-
setTempApiKey: v,
|
|
172
|
-
tempModel: y,
|
|
173
|
-
setTempModel: b,
|
|
174
|
-
tempBaseUrl: x,
|
|
175
|
-
setTempBaseUrl: C,
|
|
176
|
-
tempAuthType: O,
|
|
177
|
-
saveLLMConfig: (0, a.useCallback)(() => {
|
|
178
|
-
if (c(h) && !_.trim() || l(h) && !x.trim()) return !1;
|
|
179
|
-
let e = w();
|
|
180
|
-
if (e[h] = _, T(e), l(h) && x.trim()) {
|
|
181
|
-
let e = E();
|
|
182
|
-
e[h] = x.trim(), D(e);
|
|
183
|
-
}
|
|
184
|
-
let t = {
|
|
185
|
-
provider: h,
|
|
186
|
-
apiKey: _,
|
|
187
|
-
model: y,
|
|
188
|
-
...l(h) ? { baseUrl: x.trim() || u(h) } : {}
|
|
189
|
-
}, a = {
|
|
190
|
-
type: O,
|
|
191
|
-
...O === "basic" && {
|
|
192
|
-
username: A.trim(),
|
|
193
|
-
password: M.trim()
|
|
194
|
-
},
|
|
195
|
-
...O === "bearer" && { token: P.trim() }
|
|
196
|
-
};
|
|
197
|
-
i(t), f(a), localStorage.setItem("mcp-inspector-llm-config", JSON.stringify(t)), localStorage.setItem("mcp-inspector-auth-config", JSON.stringify(a)), window.dispatchEvent(new CustomEvent("llm-config-updated"));
|
|
198
|
-
try {
|
|
199
|
-
r(new n({
|
|
200
|
-
provider: h,
|
|
201
|
-
model: y
|
|
202
|
-
})).catch(() => {});
|
|
203
|
-
} catch {}
|
|
204
|
-
return m(!1), !0;
|
|
205
|
-
}, [
|
|
206
|
-
h,
|
|
207
|
-
_,
|
|
208
|
-
y,
|
|
209
|
-
x,
|
|
210
|
-
O,
|
|
211
|
-
A,
|
|
212
|
-
M,
|
|
213
|
-
P,
|
|
214
|
-
w,
|
|
215
|
-
T,
|
|
216
|
-
E,
|
|
217
|
-
D
|
|
218
|
-
]),
|
|
219
|
-
clearConfig: (0, a.useCallback)(() => {
|
|
220
|
-
i(null), f(null);
|
|
221
|
-
let e = w();
|
|
222
|
-
delete e[h], T(e);
|
|
223
|
-
let t = E();
|
|
224
|
-
delete t[h], D(t), v(""), C(u(h)), j(""), N(""), F(""), k("none"), localStorage.removeItem("mcp-inspector-llm-config"), localStorage.removeItem("mcp-inspector-auth-config"), S("managed");
|
|
225
|
-
}, [
|
|
226
|
-
h,
|
|
227
|
-
w,
|
|
228
|
-
T,
|
|
229
|
-
E,
|
|
230
|
-
D
|
|
231
|
-
])
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
//#endregion
|
|
235
|
-
export { d as a, c, y as i, l, C as n, _ as o, S as r, u as s, w as t };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { t as n } from "./createLucideIcon-C5fZZ6oB.js";
|
|
3
|
-
var r = n("panels-top-left", [
|
|
4
|
-
["rect", {
|
|
5
|
-
width: "18",
|
|
6
|
-
height: "18",
|
|
7
|
-
x: "3",
|
|
8
|
-
y: "3",
|
|
9
|
-
rx: "2",
|
|
10
|
-
key: "afitv7"
|
|
11
|
-
}],
|
|
12
|
-
["path", {
|
|
13
|
-
d: "M3 9h18",
|
|
14
|
-
key: "1pudct"
|
|
15
|
-
}],
|
|
16
|
-
["path", {
|
|
17
|
-
d: "M9 21V9",
|
|
18
|
-
key: "1oto5p"
|
|
19
|
-
}]
|
|
20
|
-
]), i = /* @__PURE__ */ e(t(), 1), a = "mcp-inspector-saved-requests";
|
|
21
|
-
function o() {
|
|
22
|
-
let [e, t] = (0, i.useState)([]);
|
|
23
|
-
return (0, i.useEffect)(() => {
|
|
24
|
-
try {
|
|
25
|
-
let e = localStorage.getItem(a);
|
|
26
|
-
e && t(JSON.parse(e));
|
|
27
|
-
} catch (e) {
|
|
28
|
-
console.error("[useSavedRequests] Failed to load saved requests:", e);
|
|
29
|
-
}
|
|
30
|
-
}, []), (0, i.useEffect)(() => {
|
|
31
|
-
let e = (e) => {
|
|
32
|
-
if (e.key === a && e.newValue) try {
|
|
33
|
-
t(JSON.parse(e.newValue));
|
|
34
|
-
} catch (e) {
|
|
35
|
-
console.error("[useSavedRequests] Failed to parse saved requests:", e);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
return window.addEventListener("storage", e), () => window.removeEventListener("storage", e);
|
|
39
|
-
}, []), {
|
|
40
|
-
savedRequests: e,
|
|
41
|
-
saveSavedRequests: (0, i.useCallback)((e) => {
|
|
42
|
-
try {
|
|
43
|
-
localStorage.setItem(a, JSON.stringify(e)), t(e);
|
|
44
|
-
} catch (e) {
|
|
45
|
-
console.error("[useSavedRequests] Failed to save requests:", e);
|
|
46
|
-
}
|
|
47
|
-
}, [])
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
//#endregion
|
|
51
|
-
export { r as n, o as t };
|