@mcp-use/inspector 12.0.4-canary.0 → 20.0.0-beta.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/README.md +39 -6
- package/dist/cdn/AnimatePresence-B4HhIdgq.js +393 -0
- package/dist/cdn/ChatTab-5ya_YTFV.js +13218 -0
- package/dist/cdn/CheckboxIndicator-BF2cKfbA.js +251 -0
- package/dist/cdn/ConnectionSettingsForm-iwNW86ZU.js +873 -0
- package/dist/cdn/ConnectionSettingsTab-CeK83dxn.js +145 -0
- package/dist/cdn/ElicitationTab-upPXq2q7.js +654 -0
- package/dist/cdn/FormContext-Cl51-7O7.js +135 -0
- package/dist/cdn/InspectorContext-DzXtgyTx.js +143 -0
- package/dist/cdn/JSONDisplay-D3RcyO9z.js +324 -0
- package/dist/cdn/ListTabHeader-8lULn-90.js +88 -0
- package/dist/cdn/ManufactOAuthCallback-DEM8mhWD.js +31 -0
- package/dist/cdn/NotificationsTab-CWopTIzT.js +290 -0
- package/dist/cdn/OAuthCallback-BxuOVgdb.js +58 -0
- package/dist/cdn/PromptsTab-Cspfnl6n.js +4400 -0
- package/dist/cdn/ResourcesTab-BczUMFil.js +584 -0
- package/dist/cdn/SamplingTab-6u5s845G.js +658 -0
- package/dist/cdn/ServerMetadataTab-DS0eiyyD.js +244 -0
- package/dist/cdn/StatusIcon-BGXOEU2u.js +66 -0
- package/dist/cdn/ToolsTab-CUhwP4rZ.js +2067 -0
- package/dist/cdn/ViewPreview-CxJc1Kht.js +237 -0
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +324 -0
- package/dist/cdn/WidgetWrapper-BJJtLqMb.js +2211 -0
- package/dist/cdn/apple-touch-icon.png +0 -0
- package/dist/cdn/basePath-B8HuhIMu.js +25 -0
- package/dist/cdn/bell-CGjAO_0s.js +10 -0
- package/dist/cdn/browser-CbQIH4w2.js +42 -0
- package/dist/cdn/brush-B_mKhyxG.js +17 -0
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +1953 -0
- package/dist/cdn/card-DqjqAq0o.js +41 -0
- package/dist/cdn/cfWorker-Bxcs9rNe.js +10799 -0
- package/dist/cdn/checkbox-B4oUG6Rr.js +20 -0
- package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +17500 -0
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +1508 -0
- package/dist/cdn/clock-CmUbSx_B.js +12 -0
- package/dist/cdn/code-V_0nf5rg.js +10 -0
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +38 -0
- package/dist/cdn/dialog-Dnl-pZsY.js +1028 -0
- package/dist/cdn/dist-DjXr_YO3.js +616 -0
- package/dist/cdn/dist-mRDqCgKU.js +2305 -0
- package/dist/cdn/external-link-CjmfT6rW.js +17 -0
- package/dist/cdn/eye-B7H96av8.js +29 -0
- package/dist/cdn/favicon-96x96.png +0 -0
- package/dist/cdn/favicon-black.svg +5 -8
- package/dist/cdn/favicon-white.svg +4 -7
- package/dist/cdn/favicon.ico +0 -0
- package/dist/cdn/favicon.svg +5 -0
- package/dist/cdn/folder-open-B3lu2rG_.js +7 -0
- package/dist/cdn/hash-BVQnWi7q.js +33 -0
- package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +36 -0
- package/dist/cdn/history-Csw4rb44.js +17 -0
- package/dist/cdn/index-browser-CVUwR-Bu.js +1934 -0
- package/dist/cdn/info-CNiOwqkf.js +19 -0
- package/dist/cdn/input-BLxOA7V-.js +10215 -0
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +4 -0
- package/dist/cdn/inspector.css +1 -2
- package/dist/cdn/inspector.js +10854 -133726
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +180 -0
- package/dist/cdn/label-CBvG613A.js +60 -0
- package/dist/cdn/loader-circle-BLy9A_pp.js +7 -0
- package/dist/cdn/manufact-auth-0TVxpeTA.js +387 -0
- package/dist/cdn/maximize-2-CH5Lq90B.js +21 -0
- package/dist/cdn/maximize-BALCV_ep.js +21 -0
- package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +2 -0
- package/dist/cdn/message-square-BnxdpJxZ.js +7 -0
- package/dist/cdn/not-found-BcNNsTjS.js +34 -0
- package/dist/cdn/pdf-CxFT9FER.js +16291 -0
- package/dist/cdn/play-vuZ5PLnI.js +7 -0
- package/dist/cdn/popover-C_SSrXT0.js +2005 -0
- package/dist/cdn/react-BIs9pQ3H.js +926 -0
- package/dist/cdn/react-yUi9mVK4.js +5411 -0
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +21 -0
- package/dist/cdn/save-Tgil_AJZ.js +34 -0
- package/dist/cdn/schemaHelpers-DTV38jGq.js +16 -0
- package/dist/cdn/select-BZ_IoKxg.js +2594 -0
- package/dist/cdn/servers-Dm72iTpY.js +26 -0
- package/dist/cdn/shared-uMiV6Fx1.js +1700 -0
- package/dist/cdn/sheet-CerCdhxz.js +78 -0
- package/dist/cdn/site.webmanifest +21 -0
- package/dist/cdn/sparkles-BntO2rDR.js +23 -0
- package/dist/cdn/spinner-CWcJhIY_.js +15 -0
- package/dist/cdn/square-check-big-BvwQ17Bl.js +10 -0
- package/dist/cdn/switch-DtQOLb9R.js +664 -0
- package/dist/cdn/tabs-subtle-C5cy35sY.js +787 -0
- package/dist/cdn/telemetry-Ct6pVkM1.js +240 -0
- package/dist/cdn/textarea-Bj-CT7hC.js +14 -0
- package/dist/cdn/trash-2-RwpJY5SL.js +25 -0
- package/dist/cdn/useAriaLabelledBy-Bm9qHGK6.js +29 -0
- package/dist/cdn/useCompositeItem-CNJ6MXdi.js +26 -0
- package/dist/cdn/useConfig-CwxZ6Quj.js +208 -0
- package/dist/cdn/useHostedSession-BA39Aegc.js +153 -0
- package/dist/cdn/useMCPPrompts-D3_Hla_z.js +104 -0
- package/dist/cdn/useSavedRequests-Ci2I919u.js +51 -0
- package/dist/cdn/useViewHostProps-C7vjco2m.js +348 -0
- package/dist/cdn/web-app-manifest-192x192.png +0 -0
- package/dist/cdn/web-app-manifest-512x512.png +0 -0
- package/dist/cdn/wrench-DzGmCfnb.js +7 -0
- package/dist/cdn/x-C3vRQIYu.js +10 -0
- package/dist/cdn/zap-Mb-pbw2X.js +10 -0
- package/dist/cli.js +1060 -3601
- package/dist/client/auth/manufact-auth.d.ts +30 -0
- package/dist/client/auth/manufact-auth.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +4 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +28 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts +5 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +1 -0
- package/dist/client/chat-history/ChatList.d.ts +18 -0
- package/dist/client/chat-history/ChatList.d.ts.map +1 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts +10 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +1 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +13 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +1 -0
- package/dist/client/chat-history/chat-title.d.ts +10 -0
- package/dist/client/chat-history/chat-title.d.ts.map +1 -0
- package/dist/client/chat-history/providers/local-storage.d.ts +21 -0
- package/dist/client/chat-history/providers/local-storage.d.ts.map +1 -0
- package/dist/client/chat-history/types.d.ts +39 -0
- package/dist/client/chat-history/types.d.ts.map +1 -0
- package/dist/client/chat-history/useChatHistory.d.ts +20 -0
- package/dist/client/chat-history/useChatHistory.d.ts.map +1 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +17 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +1 -0
- package/dist/client/components/AddToClientDropdown.d.ts.map +1 -1
- package/dist/client/components/ChatTab.d.ts +28 -3
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/IframeConsole.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +2 -18
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/PromptsTab.d.ts +1 -1
- package/dist/client/components/PromptsTab.d.ts.map +1 -1
- package/dist/client/components/ResourcesTab.d.ts +1 -1
- package/dist/client/components/ResourcesTab.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts +3 -3
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +2 -1
- package/dist/client/components/chat/AssistantMessage.d.ts.map +1 -1
- package/dist/client/components/chat/ChatHeader.d.ts +20 -2
- package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInput.d.ts +6 -2
- package/dist/client/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +31 -3
- package/dist/client/components/chat/ChatInputArea.d.ts.map +1 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +5 -42
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +7 -0
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +1 -0
- package/dist/client/components/chat/ChatTraceView.d.ts +7 -0
- package/dist/client/components/chat/ChatTraceView.d.ts.map +1 -0
- package/dist/client/components/chat/ConfigurationDialog.d.ts +12 -2
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +2 -5
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
- package/dist/client/components/chat/CopyButton.d.ts.map +1 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +10 -0
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +1 -0
- package/dist/client/components/chat/MessageList.d.ts +6 -11
- package/dist/client/components/chat/MessageList.d.ts.map +1 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +7 -0
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +1 -0
- package/dist/client/components/chat/PromptsDropdown.d.ts +1 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +1 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +7 -0
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts +11 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +1 -0
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +2 -9
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/chat/ToolSelector.d.ts.map +1 -1
- package/dist/client/components/chat/UserMessage.d.ts +2 -1
- package/dist/client/components/chat/UserMessage.d.ts.map +1 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +6 -0
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +1 -0
- package/dist/client/components/chat/conversion.d.ts +1 -1
- package/dist/client/components/chat/conversion.d.ts.map +1 -1
- package/dist/client/components/chat/freeTier.d.ts +11 -0
- package/dist/client/components/chat/freeTier.d.ts.map +1 -1
- package/dist/client/components/chat/providerMeta.d.ts +10 -1
- package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
- package/dist/client/components/chat/streamdown-code-slim.d.ts +4 -0
- package/dist/client/components/chat/streamdown-code-slim.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +5 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/types.d.ts +8 -0
- package/dist/client/components/chat/system-prompt/types.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +3 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt-default.d.ts +2 -0
- package/dist/client/components/chat/system-prompt-default.d.ts.map +1 -0
- package/dist/client/components/chat/trace.d.ts +84 -0
- package/dist/client/components/chat/trace.d.ts.map +1 -0
- package/dist/client/components/chat/types.d.ts +2 -1
- package/dist/client/components/chat/types.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessages.d.ts +4 -0
- package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +14 -2
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +13 -0
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -0
- package/dist/client/components/chat/useConfig.d.ts +2 -2
- package/dist/client/components/chat/useConfig.d.ts.map +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +14 -0
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts +14 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +1 -0
- package/dist/client/components/chat/utils.d.ts +0 -4
- package/dist/client/components/chat/utils.d.ts.map +1 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +12 -0
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +1 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +9 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +1 -0
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +1 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts.map +1 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts.map +1 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +6 -0
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +1 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts +9 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +1 -0
- package/dist/client/components/shared/JSONDisplay.d.ts +5 -1
- package/dist/client/components/shared/JSONDisplay.d.ts.map +1 -1
- package/dist/client/components/shared/ListItem.d.ts +1 -3
- package/dist/client/components/shared/ListItem.d.ts.map +1 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +4 -1
- package/dist/client/components/shared/ListTabHeader.d.ts.map +1 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +28 -0
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +1 -0
- package/dist/client/components/shared/StatusIcon.d.ts +12 -0
- package/dist/client/components/shared/StatusIcon.d.ts.map +1 -0
- package/dist/client/components/shared/index.d.ts +4 -1
- package/dist/client/components/shared/index.d.ts.map +1 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -6
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/ToolsList.d.ts +1 -1
- package/dist/client/components/tools/ToolsList.d.ts.map +1 -1
- package/dist/client/components/tools/useToolExecution.d.ts +26 -0
- package/dist/client/components/tools/useToolExecution.d.ts.map +1 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +35 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -0
- package/dist/client/components/ui/WidgetWrapper.d.ts +2 -2
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +1 -1
- package/dist/client/components/ui/alert-dialog.d.ts +8 -5
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +80 -0
- package/dist/client/components/ui/ask-user-questions.d.ts.map +1 -0
- package/dist/client/components/ui/badge.d.ts +32 -7
- package/dist/client/components/ui/badge.d.ts.map +1 -1
- package/dist/client/components/ui/button.d.ts +31 -11
- package/dist/client/components/ui/button.d.ts.map +1 -1
- package/dist/client/components/ui/chat-message.d.ts +23 -0
- package/dist/client/components/ui/chat-message.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +2 -3
- package/dist/client/components/ui/checkbox.d.ts.map +1 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -4
- package/dist/client/components/ui/client-icons.d.ts.map +1 -1
- package/dist/client/components/ui/command.d.ts +13 -64
- package/dist/client/components/ui/command.d.ts.map +1 -1
- package/dist/client/components/ui/dialog.d.ts +36 -12
- package/dist/client/components/ui/dialog.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +17 -48
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown.d.ts +30 -0
- package/dist/client/components/ui/dropdown.d.ts.map +1 -0
- package/dist/client/components/ui/file-thumbnail.d.ts +9 -0
- package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -0
- package/dist/client/components/ui/label.d.ts +1 -2
- package/dist/client/components/ui/label.d.ts.map +1 -1
- package/dist/client/components/ui/menu-item.d.ts +52 -0
- package/dist/client/components/ui/menu-item.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +10 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -0
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/components/ui/popover.d.ts +4 -5
- package/dist/client/components/ui/popover.d.ts.map +1 -1
- package/dist/client/components/ui/scroll-area.d.ts +4 -0
- package/dist/client/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/client/components/ui/select.d.ts +50 -9
- package/dist/client/components/ui/select.d.ts.map +1 -1
- package/dist/client/components/ui/sheet.d.ts +9 -7
- package/dist/client/components/ui/sheet.d.ts.map +1 -1
- package/dist/client/components/ui/skeleton.d.ts +4 -0
- package/dist/client/components/ui/skeleton.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +1 -1
- package/dist/client/components/ui/spinner.d.ts.map +1 -1
- package/dist/client/components/ui/switch.d.ts +19 -7
- package/dist/client/components/ui/switch.d.ts.map +1 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +25 -0
- package/dist/client/components/ui/tabs-subtle.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +41 -6
- package/dist/client/components/ui/tooltip.d.ts.map +1 -1
- package/dist/client/context/InspectorContext.d.ts +6 -10
- package/dist/client/context/InspectorContext.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +2 -3
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/use-merge-split.d.ts +36 -0
- package/dist/client/hooks/use-merge-split.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts +27 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover.d.ts +26 -0
- package/dist/client/hooks/use-proximity-hover.d.ts.map +1 -0
- package/dist/client/hooks/use-touch-primary.d.ts +2 -0
- package/dist/client/hooks/use-touch-primary.d.ts.map +1 -0
- package/dist/client/hooks/useHostedSession.d.ts +4 -14
- package/dist/client/hooks/useHostedSession.d.ts.map +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts.map +1 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +2 -2
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts.map +1 -1
- package/dist/client/hooks/useSavedRequests.d.ts +6 -0
- package/dist/client/hooks/useSavedRequests.d.ts.map +1 -0
- package/dist/client/hooks/useViewHostProps.d.ts +19 -0
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -0
- package/dist/client/index.d.ts +19 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +19306 -16141
- package/dist/client/lib/elevated.d.ts +28 -0
- package/dist/client/lib/elevated.d.ts.map +1 -0
- package/dist/client/lib/font-weight.d.ts +10 -0
- package/dist/client/lib/font-weight.d.ts.map +1 -0
- package/dist/client/lib/icon-context.d.ts +15 -0
- package/dist/client/lib/icon-context.d.ts.map +1 -0
- package/dist/client/lib/shape-context.d.ts +21 -0
- package/dist/client/lib/shape-context.d.ts.map +1 -0
- package/dist/client/lib/springs.d.ts +32 -0
- package/dist/client/lib/springs.d.ts.map +1 -0
- package/dist/client/lib/surface-classes.d.ts +2 -0
- package/dist/client/lib/surface-classes.d.ts.map +1 -0
- package/dist/client/lib/surface-context.d.ts +7 -0
- package/dist/client/lib/surface-context.d.ts.map +1 -0
- package/dist/client/lib/utils.d.ts +1 -1
- package/dist/client/lib/utils.d.ts.map +1 -1
- package/dist/client/mcp-apps/csp.d.ts +26 -0
- package/dist/client/mcp-apps/csp.d.ts.map +1 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +17 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +1 -0
- package/dist/client/mcp-apps/logging-transport.d.ts +13 -0
- package/dist/client/mcp-apps/logging-transport.d.ts.map +1 -0
- package/dist/client/rpc-traffic-coalesce.d.ts +7 -0
- package/dist/client/rpc-traffic-coalesce.d.ts.map +1 -0
- package/dist/client/rpc-traffic-store.d.ts +37 -0
- package/dist/client/rpc-traffic-store.d.ts.map +1 -0
- package/dist/client/telemetry/capture.d.ts +7 -0
- package/dist/client/telemetry/capture.d.ts.map +1 -0
- package/dist/client/telemetry/events.d.ts +1 -1
- package/dist/client/telemetry/events.d.ts.map +1 -1
- package/dist/client/telemetry/index.d.ts +2 -1
- package/dist/client/telemetry/index.d.ts.map +1 -1
- package/dist/client/telemetry/init.d.ts +2 -0
- package/dist/client/telemetry/init.d.ts.map +1 -0
- package/dist/client/telemetry/utils.d.ts +5 -0
- package/dist/client/telemetry/utils.d.ts.map +1 -1
- package/dist/client/types/message-content-block.d.ts +19 -0
- package/dist/client/types/message-content-block.d.ts.map +1 -0
- package/dist/client/types/pending-requests.d.ts +17 -0
- package/dist/client/types/pending-requests.d.ts.map +1 -0
- package/dist/client/utils/basePath.d.ts +34 -0
- package/dist/client/utils/basePath.d.ts.map +1 -0
- package/dist/client/utils/browser.d.ts +5 -0
- package/dist/client/utils/browser.d.ts.map +1 -0
- package/dist/client/utils/format.d.ts +4 -0
- package/dist/client/utils/format.d.ts.map +1 -0
- package/dist/client/utils/highlightJson.d.ts +11 -0
- package/dist/client/utils/highlightJson.d.ts.map +1 -0
- package/dist/client/utils/jsonUtils.d.ts +4 -0
- package/dist/client/utils/jsonUtils.d.ts.map +1 -1
- package/dist/client/utils/mcpClientUtils.d.ts.map +1 -1
- package/dist/client/utils/servers.d.ts +14 -0
- package/dist/client/utils/servers.d.ts.map +1 -0
- package/dist/server/cdn-shell.d.ts +18 -0
- package/dist/server/cdn-shell.d.ts.map +1 -0
- package/dist/server/cdn-shell.js +10 -0
- package/dist/server/chunk-5B3SXGZP.js +43 -0
- package/dist/server/chunk-6XWDZEFF.js +194 -0
- package/dist/server/chunk-ESODOPDD.js +50 -0
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/{chunk-57KIBVKX.js → chunk-J67FVPHF.js} +27 -26
- package/dist/server/chunk-K2F2AJOI.js +619 -0
- package/dist/server/chunk-K2V2SDQD.js +40 -0
- package/dist/server/{chunk-ZPHNDECP.js → chunk-THQ67TSE.js} +31 -32
- package/dist/server/chunk-TPHRVELX.js +130 -0
- package/dist/server/chunk-WFT4JHYI.js +24 -0
- package/dist/server/cli.js +23 -25
- package/dist/server/create-dev-api-app.d.ts +4 -0
- package/dist/server/create-dev-api-app.d.ts.map +1 -0
- package/dist/server/create-dev-api-app.js +11 -0
- package/dist/server/favicon-links.d.ts +12 -0
- package/dist/server/favicon-links.d.ts.map +1 -0
- package/dist/server/favicon-links.js +11 -0
- package/dist/server/favicon-static.d.ts +4 -0
- package/dist/server/favicon-static.d.ts.map +1 -0
- package/dist/server/favicon-static.js +8 -0
- package/dist/server/index.d.ts +3 -4
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +13 -17
- package/dist/server/middleware.d.ts +14 -3
- package/dist/server/middleware.d.ts.map +1 -1
- package/dist/server/middleware.js +9 -9
- package/dist/server/proxy/index.d.ts +3 -0
- package/dist/server/proxy/index.d.ts.map +1 -0
- package/dist/server/proxy/index.js +12 -0
- package/dist/server/proxy/mcp-proxy.d.ts +99 -0
- package/dist/server/proxy/mcp-proxy.d.ts.map +1 -0
- package/dist/server/proxy/mcp-proxy.js +8 -0
- package/dist/server/proxy/oauth-proxy.d.ts +26 -0
- package/dist/server/proxy/oauth-proxy.d.ts.map +1 -0
- package/dist/server/proxy/oauth-proxy.js +9 -0
- package/dist/server/proxy-routes.d.ts +16 -0
- package/dist/server/proxy-routes.d.ts.map +1 -0
- package/dist/server/proxy-routes.js +10 -0
- package/dist/server/rpc-log-bus.js +73 -3
- package/dist/server/server.d.ts +3 -8
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +15 -92
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.d.ts +4 -0
- package/dist/server/vite-dev-api-plugin.d.ts.map +1 -0
- package/dist/server/vite-dev-api-plugin.js +30 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-CthXziG2.js +9 -0
- package/dist/web/assets/ChatTab-CiAqtqhj.js +460 -0
- package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +1 -0
- package/dist/web/assets/ElicitationTab-B3Eg0_Jm.js +1 -0
- package/dist/web/assets/FormContext-Cqc_A12u.js +1 -0
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +1 -0
- package/dist/web/assets/ManufactOAuthCallback-B-tdkUA2.js +1 -0
- package/dist/web/assets/NotificationsTab-BgLjxuos.js +1 -0
- package/dist/web/assets/OAuthCallback-Bp-jLoQs.js +1 -0
- package/dist/web/assets/PromptsTab-CA-SZs43.js +61 -0
- package/dist/web/assets/ResourcesTab-DdMIW_af.js +2 -0
- package/dist/web/assets/SamplingTab-DjyDG01W.js +1 -0
- package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +1 -0
- package/dist/web/assets/ToolsTab-BHk8GCmd.js +8 -0
- package/dist/web/assets/ViewPreview-DWtmwzCb.js +1 -0
- package/dist/web/assets/WidgetWrapper-B43lqbld.js +34 -0
- package/dist/web/assets/brush--0LobUi4.js +1 -0
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +1 -0
- package/dist/web/assets/checkbox-_GzEPQic.js +1 -0
- package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.js +131 -0
- package/dist/web/assets/code-tME-5H6D.js +1 -0
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +1 -0
- package/dist/web/assets/dist-DQjEDTKs.js +21 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +1 -0
- package/dist/web/assets/index-Bbn-6QR2.js +475 -0
- package/dist/web/assets/index-BjH-Qp85.css +1 -0
- package/dist/web/assets/input-CjmxOFr6.js +1 -0
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +1 -0
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +1 -0
- package/dist/web/assets/label-B5Q_Zr8M.js +1 -0
- package/dist/web/assets/maximize-2-BTT9QQU9.js +1 -0
- package/dist/web/assets/maximize-_O55kFcr.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-yq1lkD3x.js +1 -0
- package/dist/web/assets/pdf-C3cfS_Ha.js +54 -0
- package/dist/web/assets/react-CU_d2d5K.js +1 -0
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +1 -0
- package/dist/web/assets/save-B-MsgxX9.js +1 -0
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +1 -0
- package/dist/web/assets/select-C0xlfLAa.js +1 -0
- package/dist/web/assets/shared-Dfwy7nyg.js +1 -0
- package/dist/web/assets/sheet-CRPrEqAa.js +1 -0
- package/dist/web/assets/sparkles-2OAsc1aP.js +1 -0
- package/dist/web/assets/tabs-subtle-Dxgism9f.js +1 -0
- package/dist/web/assets/textarea-Ci09-en6.js +1 -0
- package/dist/web/assets/useConfig-b1f_iVFH.js +1 -0
- package/dist/web/assets/useMCPPrompts-CPskz9af.js +1 -0
- package/dist/web/assets/useViewHostProps-BgsQ2yYl.js +1 -0
- package/dist/web/assets/zap-Du2Uc5pa.js +1 -0
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +5 -8
- package/dist/web/favicon-white.svg +4 -7
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +5 -0
- package/dist/web/index.html +13 -20
- package/dist/web/site.webmanifest +21 -0
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- package/package.json +29 -30
- package/dist/client/components/FullscreenNavbar.d.ts +0 -9
- package/dist/client/components/FullscreenNavbar.d.ts.map +0 -1
- package/dist/client/components/LoginModal.d.ts +0 -11
- package/dist/client/components/LoginModal.d.ts.map +0 -1
- package/dist/client/components/MCPAppsRenderer.d.ts +0 -53
- package/dist/client/components/MCPAppsRenderer.d.ts.map +0 -1
- package/dist/client/components/McpUIRenderer.d.ts +0 -19
- package/dist/client/components/McpUIRenderer.d.ts.map +0 -1
- package/dist/client/components/OpenAIComponentRenderer.d.ts +0 -51
- package/dist/client/components/OpenAIComponentRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/InlineElicitationCard.d.ts +0 -10
- package/dist/client/components/chat/InlineElicitationCard.d.ts.map +0 -1
- package/dist/client/components/chat/MCPUIResource.d.ts +0 -11
- package/dist/client/components/chat/MCPUIResource.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts +0 -21
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/index.d.ts +0 -3
- package/dist/client/components/elicitation/shared/index.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts +0 -23
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts.map +0 -1
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts +0 -20
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsTabHeader.d.ts +0 -17
- package/dist/client/components/prompts/PromptsTabHeader.d.ts.map +0 -1
- package/dist/client/components/prompts/index.d.ts +0 -6
- package/dist/client/components/prompts/index.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesTabHeader.d.ts +0 -16
- package/dist/client/components/resources/ResourcesTabHeader.d.ts.map +0 -1
- package/dist/client/components/resources/index.d.ts +0 -4
- package/dist/client/components/resources/index.d.ts.map +0 -1
- package/dist/client/components/shared/RpcPanel.d.ts +0 -21
- package/dist/client/components/shared/RpcPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsTabHeader.d.ts +0 -17
- package/dist/client/components/tools/ToolsTabHeader.d.ts.map +0 -1
- package/dist/client/components/tools/index.d.ts +0 -7
- package/dist/client/components/tools/index.d.ts.map +0 -1
- package/dist/client/components/ui/SandboxedIframe.d.ts +0 -64
- package/dist/client/components/ui/SandboxedIframe.d.ts.map +0 -1
- package/dist/client/components/ui/aurora-background.d.ts +0 -9
- package/dist/client/components/ui/aurora-background.d.ts.map +0 -1
- package/dist/client/constants/iframe.d.ts +0 -9
- package/dist/client/constants/iframe.d.ts.map +0 -1
- package/dist/client/constants/index.d.ts +0 -7
- package/dist/client/constants/index.d.ts.map +0 -1
- package/dist/client/constants/mcp-apps.d.ts +0 -39
- package/dist/client/constants/mcp-apps.d.ts.map +0 -1
- package/dist/client/hooks/usePrismTheme.d.ts +0 -5
- package/dist/client/hooks/usePrismTheme.d.ts.map +0 -1
- package/dist/client/lib/use-sandbox-remount-generation.d.ts +0 -9
- package/dist/client/lib/use-sandbox-remount-generation.d.ts.map +0 -1
- package/dist/client/lib/widget-fullscreen.d.ts +0 -17
- package/dist/client/lib/widget-fullscreen.d.ts.map +0 -1
- package/dist/client/telemetry/telemetry.d.ts +0 -42
- package/dist/client/telemetry/telemetry.d.ts.map +0 -1
- package/dist/client/types/elicitation.d.ts +0 -9
- package/dist/client/types/elicitation.d.ts.map +0 -1
- package/dist/client/utils/clipboard.d.ts +0 -6
- package/dist/client/utils/clipboard.d.ts.map +0 -1
- package/dist/client/utils/iframeConsoleInterceptor.d.ts +0 -6
- package/dist/client/utils/iframeConsoleInterceptor.d.ts.map +0 -1
- package/dist/client/utils/widget-detection.d.ts +0 -31
- package/dist/client/utils/widget-detection.d.ts.map +0 -1
- package/dist/llm/__tests__/messageFormat.test.d.ts +0 -2
- package/dist/llm/__tests__/messageFormat.test.d.ts.map +0 -1
- package/dist/llm/__tests__/providerToolResults.test.d.ts +0 -2
- package/dist/llm/__tests__/providerToolResults.test.d.ts.map +0 -1
- package/dist/llm/__tests__/toolResultParts.test.d.ts +0 -2
- package/dist/llm/__tests__/toolResultParts.test.d.ts.map +0 -1
- package/dist/llm/messageFormat.d.ts +0 -48
- package/dist/llm/messageFormat.d.ts.map +0 -1
- package/dist/llm/ndjson.d.ts +0 -5
- package/dist/llm/ndjson.d.ts.map +0 -1
- package/dist/llm/providers/anthropic.d.ts +0 -19
- package/dist/llm/providers/anthropic.d.ts.map +0 -1
- package/dist/llm/providers/google.d.ts +0 -19
- package/dist/llm/providers/google.d.ts.map +0 -1
- package/dist/llm/providers/index.d.ts +0 -19
- package/dist/llm/providers/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/index.d.ts +0 -18
- package/dist/llm/providers/ollama/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/utils.d.ts +0 -7
- package/dist/llm/providers/ollama/utils.d.ts.map +0 -1
- package/dist/llm/providers/openai.d.ts +0 -19
- package/dist/llm/providers/openai.d.ts.map +0 -1
- package/dist/llm/schemaUtils.d.ts +0 -2
- package/dist/llm/schemaUtils.d.ts.map +0 -1
- package/dist/llm/sse.d.ts +0 -15
- package/dist/llm/sse.d.ts.map +0 -1
- package/dist/llm/toolLoop.d.ts +0 -40
- package/dist/llm/toolLoop.d.ts.map +0 -1
- package/dist/llm/toolResultParts.d.ts +0 -28
- package/dist/llm/toolResultParts.d.ts.map +0 -1
- package/dist/llm/types.d.ts +0 -102
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/server/chunk-63EJEHRP.js +0 -71
- package/dist/server/chunk-A4VH7AIP.js +0 -738
- package/dist/server/chunk-CVECQ7BJ.js +0 -78
- package/dist/server/chunk-IDMHJUEM.js +0 -42
- package/dist/server/chunk-KIJYOTYZ.js +0 -322
- package/dist/server/chunk-PJNKFX2R.js +0 -2351
- package/dist/server/chunk-QQ37LGLJ.js +0 -127
- package/dist/server/chunk-R4ISUE7T.js +0 -164
- package/dist/server/chunk-UTW44YSH.js +0 -322
- package/dist/server/file-utils.d.ts +0 -11
- package/dist/server/file-utils.d.ts.map +0 -1
- package/dist/server/file-utils.js +0 -11
- package/dist/server/routes/mcp-apps.d.ts +0 -12
- package/dist/server/routes/mcp-apps.d.ts.map +0 -1
- package/dist/server/shared-routes.d.ts +0 -11
- package/dist/server/shared-routes.d.ts.map +0 -1
- package/dist/server/shared-routes.js +0 -11
- package/dist/server/shared-static.d.ts +0 -57
- package/dist/server/shared-static.d.ts.map +0 -1
- package/dist/server/shared-static.js +0 -11
- package/dist/server/shared-utils.d.ts +0 -175
- package/dist/server/shared-utils.d.ts.map +0 -1
- package/dist/server/shared-utils.js +0 -21
- package/dist/server/transport-wrapper.d.ts +0 -6
- package/dist/server/transport-wrapper.d.ts.map +0 -1
- package/dist/server/transport-wrapper.js +0 -68
- package/dist/server/tunnel.d.ts +0 -11
- package/dist/server/tunnel.d.ts.map +0 -1
- package/dist/server/tunnel.js +0 -13
- package/dist/web/assets/1c-D19GPo3L.js +0 -1
- package/dist/web/assets/abnf-BR1TaWs-.js +0 -1
- package/dist/web/assets/accesslog-CZxiyYuK.js +0 -1
- package/dist/web/assets/actionscript-BS1fMZ9M.js +0 -1
- package/dist/web/assets/ada-Dhy1EabM.js +0 -1
- package/dist/web/assets/angelscript-Gjldi7xi.js +0 -1
- package/dist/web/assets/apache-Cx8TUABI.js +0 -1
- package/dist/web/assets/applescript-JfBNOabq.js +0 -1
- package/dist/web/assets/arcade-E6zGzFSx.js +0 -1
- package/dist/web/assets/arduino-D7Y37T_-.js +0 -1
- package/dist/web/assets/armasm-vpTNgAzt.js +0 -1
- package/dist/web/assets/asciidoc-DaVECsQY.js +0 -1
- package/dist/web/assets/aspectj-CdRAuqVM.js +0 -1
- package/dist/web/assets/autohotkey-DvZQekH9.js +0 -1
- package/dist/web/assets/autoit-oLytjhLA.js +0 -1
- package/dist/web/assets/avrasm-5Cf9yIw9.js +0 -1
- package/dist/web/assets/awk-Bf_S2P0n.js +0 -1
- package/dist/web/assets/axapta-DrOS6bUw.js +0 -1
- package/dist/web/assets/bash-DCVWALRV.js +0 -1
- package/dist/web/assets/basic-D0GZ3REU.js +0 -1
- package/dist/web/assets/bnf-D74FvP-b.js +0 -1
- package/dist/web/assets/brainfuck-DwUXsIlY.js +0 -3
- package/dist/web/assets/c-CPGbDsng.js +0 -1
- package/dist/web/assets/c-like-DLj4FsHF.js +0 -1
- package/dist/web/assets/cal-Czm5e2Qe.js +0 -1
- package/dist/web/assets/capnproto-CVJ2fID7.js +0 -1
- package/dist/web/assets/ceylon-DR5D2yFU.js +0 -1
- package/dist/web/assets/clean-CkIuagdM.js +0 -1
- package/dist/web/assets/clojure-VwyIEQaz.js +0 -1
- package/dist/web/assets/clojure-repl-jCSr2ntH.js +0 -1
- package/dist/web/assets/cmake-D2Zl_q65.js +0 -1
- package/dist/web/assets/coffeescript-C7Hfrw9O.js +0 -1
- package/dist/web/assets/coq-DAxtVI93.js +0 -1
- package/dist/web/assets/core-ICctFm9I.js +0 -4
- package/dist/web/assets/cos-0GHB8yn1.js +0 -1
- package/dist/web/assets/cpp-DdlDGc99.js +0 -1
- package/dist/web/assets/crmsh-C0vbH3xd.js +0 -1
- package/dist/web/assets/crystal-BloCCkus.js +0 -1
- package/dist/web/assets/csharp-YhN72Cls.js +0 -1
- package/dist/web/assets/csp-OAeIWScz.js +0 -1
- package/dist/web/assets/css-D1ih01yA.js +0 -1
- package/dist/web/assets/d-yGrz2xEC.js +0 -1
- package/dist/web/assets/dart-C3qG0xpq.js +0 -1
- package/dist/web/assets/delphi-CvoiTamH.js +0 -1
- package/dist/web/assets/diff-zDaBDf86.js +0 -1
- package/dist/web/assets/django-DBYOwnaY.js +0 -1
- package/dist/web/assets/dns-BWy_Oa_w.js +0 -1
- package/dist/web/assets/dockerfile-Cj5YqQiP.js +0 -1
- package/dist/web/assets/dos-AaJBzvG4.js +0 -1
- package/dist/web/assets/dsconfig-BgEbyf_A.js +0 -1
- package/dist/web/assets/dts-z64kku76.js +0 -1
- package/dist/web/assets/dust-C-6seNMG.js +0 -1
- package/dist/web/assets/ebnf-DC6yB_8o.js +0 -1
- package/dist/web/assets/elixir-DVZgqY4T.js +0 -1
- package/dist/web/assets/elm-Css3uC5x.js +0 -1
- package/dist/web/assets/erb-C538Iixw.js +0 -1
- package/dist/web/assets/erlang-DyDPiXgX.js +0 -1
- package/dist/web/assets/erlang-repl-CVIWmQKC.js +0 -1
- package/dist/web/assets/excel-BLHu7SPw.js +0 -1
- package/dist/web/assets/fix-JPCm4C-u.js +0 -1
- package/dist/web/assets/flix-DejUTEwL.js +0 -1
- package/dist/web/assets/fortran-CK7Rlzc4.js +0 -1
- package/dist/web/assets/fsharp-ZgHvh-ZT.js +0 -1
- package/dist/web/assets/gams-BIBfDr3x.js +0 -1
- package/dist/web/assets/gauss-DttPF6Qr.js +0 -1
- package/dist/web/assets/gcode-BXL931mb.js +0 -1
- package/dist/web/assets/gherkin-B7qFZ0rb.js +0 -1
- package/dist/web/assets/glsl-BSKhKy8T.js +0 -1
- package/dist/web/assets/gml-BcbsDsfr.js +0 -1
- package/dist/web/assets/go-BksciLaM.js +0 -1
- package/dist/web/assets/golo-D2QFLiUq.js +0 -1
- package/dist/web/assets/gradle-BH3VzvYn.js +0 -1
- package/dist/web/assets/groovy-Bv9ooqes.js +0 -1
- package/dist/web/assets/haml-CacWyVgj.js +0 -1
- package/dist/web/assets/handlebars-Cpp3MUlG.js +0 -1
- package/dist/web/assets/haskell-BQM3-EaA.js +0 -1
- package/dist/web/assets/haxe-Df4nG9sq.js +0 -1
- package/dist/web/assets/hsp-sHEckFHE.js +0 -1
- package/dist/web/assets/htmlbars-shnKLbrr.js +0 -1
- package/dist/web/assets/http-CNJ01fsj.js +0 -1
- package/dist/web/assets/hy-B3oY6sFO.js +0 -1
- package/dist/web/assets/index-C4BqUITd.css +0 -2
- package/dist/web/assets/index-DB2yAAMO.js +0 -848
- package/dist/web/assets/inform7-CNEOVpOE.js +0 -1
- package/dist/web/assets/ini-q6ZmK_Ll.js +0 -1
- package/dist/web/assets/irpf90-CHcNzzFG.js +0 -1
- package/dist/web/assets/isbl-ClZ-43Pe.js +0 -1
- package/dist/web/assets/java-C63Whuw3.js +0 -1
- package/dist/web/assets/javascript-BAgDYvOy.js +0 -1
- package/dist/web/assets/jboss-cli-qjpm-ZOy.js +0 -1
- package/dist/web/assets/json-DT8at3fD.js +0 -1
- package/dist/web/assets/julia-B3hjMqCS.js +0 -1
- package/dist/web/assets/julia-repl-BWC_EUt4.js +0 -1
- package/dist/web/assets/kotlin-DnDhVR1g.js +0 -2
- package/dist/web/assets/lasso-7_9jkuWm.js +0 -1
- package/dist/web/assets/latex-7NcBU-sp.js +0 -1
- package/dist/web/assets/ldif-BKsNETfE.js +0 -1
- package/dist/web/assets/leaf-Dr24XSMP.js +0 -1
- package/dist/web/assets/less-Da52wdLB.js +0 -1
- package/dist/web/assets/lisp-CxEhJv_S.js +0 -1
- package/dist/web/assets/livecodeserver-DyLLEQa3.js +0 -1
- package/dist/web/assets/livescript-DuMxIrKU.js +0 -1
- package/dist/web/assets/llvm-M9yuLNva.js +0 -1
- package/dist/web/assets/lsl-BP2wVZAx.js +0 -1
- package/dist/web/assets/lua-B0U8rByV.js +0 -1
- package/dist/web/assets/makefile-DL3DBvu0.js +0 -1
- package/dist/web/assets/markdown-jLDab-Ns.js +0 -1
- package/dist/web/assets/mathematica-2lChxOtk.js +0 -1
- package/dist/web/assets/matlab-BbPZe1tR.js +0 -1
- package/dist/web/assets/maxima-BdT1lNyu.js +0 -1
- package/dist/web/assets/mel-CxSMh57a.js +0 -1
- package/dist/web/assets/mercury-e3yoICSq.js +0 -1
- package/dist/web/assets/mipsasm--tpOiQ5I.js +0 -1
- package/dist/web/assets/mizar-DN4-ri-A.js +0 -1
- package/dist/web/assets/module-3nkmv-tD.js +0 -4
- package/dist/web/assets/mojolicious-lKYGBrCw.js +0 -1
- package/dist/web/assets/monkey-CvEgDQbs.js +0 -1
- package/dist/web/assets/moonscript-BgjEcnsm.js +0 -1
- package/dist/web/assets/n1ql-CtsXVmUQ.js +0 -1
- package/dist/web/assets/nginx-C6tprI2e.js +0 -1
- package/dist/web/assets/nim-B3y0lYop.js +0 -1
- package/dist/web/assets/nix-BczA7CjW.js +0 -1
- package/dist/web/assets/node-repl-DGgD94SZ.js +0 -1
- package/dist/web/assets/nsis-C_SmguFH.js +0 -1
- package/dist/web/assets/objectivec-2mUTCw1f.js +0 -1
- package/dist/web/assets/ocaml-Cn7F37_9.js +0 -1
- package/dist/web/assets/openscad-CkenTSp3.js +0 -1
- package/dist/web/assets/oxygene-D7pQi21T.js +0 -1
- package/dist/web/assets/parser3--pt_dbbu.js +0 -1
- package/dist/web/assets/perl-C0job7Qz.js +0 -1
- package/dist/web/assets/pf-CfWQAyKz.js +0 -1
- package/dist/web/assets/pgsql-CKshFhGu.js +0 -1
- package/dist/web/assets/php-CNUWaUh2.js +0 -1
- package/dist/web/assets/php-template-BCrABFi4.js +0 -1
- package/dist/web/assets/plaintext-ChYroSk0.js +0 -1
- package/dist/web/assets/pony-Bh4zwDWt.js +0 -1
- package/dist/web/assets/powershell-BuAlXUWx.js +0 -1
- package/dist/web/assets/processing-Bb5btTkH.js +0 -1
- package/dist/web/assets/profile-BOk16iWu.js +0 -1
- package/dist/web/assets/prolog-MHE4b3nq.js +0 -1
- package/dist/web/assets/properties-CZfxER-Q.js +0 -1
- package/dist/web/assets/protobuf-C_54DU4K.js +0 -1
- package/dist/web/assets/puppet-Z-t3L629.js +0 -1
- package/dist/web/assets/purebasic-CZKfEDHv.js +0 -1
- package/dist/web/assets/python-BvGG_JZE.js +0 -1
- package/dist/web/assets/python-repl-DaUVEuDx.js +0 -1
- package/dist/web/assets/q-CvWis_nQ.js +0 -1
- package/dist/web/assets/qml-2XPxalcH.js +0 -1
- package/dist/web/assets/r-DTTPbRAt.js +0 -1
- package/dist/web/assets/reasonml-CyJw_qBZ.js +0 -1
- package/dist/web/assets/rib-GYMKCC1Y.js +0 -1
- package/dist/web/assets/roboconf-CV_6N_o7.js +0 -1
- package/dist/web/assets/routeros-C11OKG9F.js +0 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-CvwEntuM.js +0 -1
- package/dist/web/assets/rsl-rez9LEUy.js +0 -1
- package/dist/web/assets/ruby-_B4GQ_7D.js +0 -1
- package/dist/web/assets/ruleslanguage-jRg89I6w.js +0 -1
- package/dist/web/assets/rust-qdkaNniS.js +0 -1
- package/dist/web/assets/sas-BNjYSnSg.js +0 -1
- package/dist/web/assets/scala-CVLdU51z.js +0 -1
- package/dist/web/assets/scheme-Cneig3hI.js +0 -1
- package/dist/web/assets/scilab-DxKCNrof.js +0 -1
- package/dist/web/assets/scss-DQ23aG9u.js +0 -1
- package/dist/web/assets/shell-BgVIEdPP.js +0 -1
- package/dist/web/assets/smali-KZ0XB6tA.js +0 -2
- package/dist/web/assets/smalltalk-CYsrtMqX.js +0 -1
- package/dist/web/assets/sml-CwPjhShZ.js +0 -1
- package/dist/web/assets/sqf-Dyh-UyfR.js +0 -1
- package/dist/web/assets/sql-BqwecpD_.js +0 -1
- package/dist/web/assets/sql_more-CUF5pbmY.js +0 -1
- package/dist/web/assets/stan-Ddf5JFRA.js +0 -1
- package/dist/web/assets/stata-XlPupwqv.js +0 -3
- package/dist/web/assets/step21-CucMyzRd.js +0 -1
- package/dist/web/assets/stylus-nj6mAxkC.js +0 -1
- package/dist/web/assets/subunit-CiXRLQcz.js +0 -3
- package/dist/web/assets/swift-CIdqZMKK.js +0 -1
- package/dist/web/assets/taggerscript-m6_DnfoH.js +0 -1
- package/dist/web/assets/tap-DbEec7Q2.js +0 -1
- package/dist/web/assets/tcl-n8aGQ2H6.js +0 -1
- package/dist/web/assets/thrift-J1PtwUUl.js +0 -1
- package/dist/web/assets/tp-CnbYKLYQ.js +0 -1
- package/dist/web/assets/twig-BEBOjZvM.js +0 -1
- package/dist/web/assets/typescript-BwvhN9Dw.js +0 -1
- package/dist/web/assets/vala-BSRZa9oU.js +0 -1
- package/dist/web/assets/vbnet-BhOhpmOF.js +0 -1
- package/dist/web/assets/vbscript-BpRpQGFw.js +0 -1
- package/dist/web/assets/vbscript-html-z-0GWV6e.js +0 -1
- package/dist/web/assets/verilog-CE-mWkfc.js +0 -1
- package/dist/web/assets/vhdl-hkUj0_K7.js +0 -1
- package/dist/web/assets/vim-XK7W3JN3.js +0 -1
- package/dist/web/assets/x86asm-D0cmZUWd.js +0 -1
- package/dist/web/assets/xl-dRKa8VcI.js +0 -1
- package/dist/web/assets/xml-BGrFHpDb.js +0 -1
- package/dist/web/assets/xquery-B7qeO1Sf.js +0 -1
- package/dist/web/assets/yaml-DErfnXTM.js +0 -1
- package/dist/web/assets/zephir-O2ApOQbM.js +0 -1
|
@@ -0,0 +1,873 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
+
import { Rr as r, sr as i, t as a } from "./input-BLxOA7V-.js";
|
|
4
|
+
import { t as o } from "./label-CBvG613A.js";
|
|
5
|
+
import { a as s, i as c, n as l, r as u, t as d } from "./select-BZ_IoKxg.js";
|
|
6
|
+
import { t as f } from "./createLucideIcon-C5fZZ6oB.js";
|
|
7
|
+
import { c as p, l as m, n as h, o as g, r as _, t as v, w as y, x as b } from "./dialog-Dnl-pZsY.js";
|
|
8
|
+
import { i as ee, t as te } from "./browser-CbQIH4w2.js";
|
|
9
|
+
import { n as ne, t as x } from "./eye-B7H96av8.js";
|
|
10
|
+
import { t as S } from "./trash-2-RwpJY5SL.js";
|
|
11
|
+
import { t as C } from "./react-yUi9mVK4.js";
|
|
12
|
+
import { r as w } from "./basePath-B8HuhIMu.js";
|
|
13
|
+
import { i as T, r as E } from "./servers-Dm72iTpY.js";
|
|
14
|
+
import { n as D } from "./dist-DjXr_YO3.js";
|
|
15
|
+
import { a as O, i as k, n as A, r as j, t as M } from "./card-DqjqAq0o.js";
|
|
16
|
+
var re = f("cog", [
|
|
17
|
+
["path", {
|
|
18
|
+
d: "M11 10.27 7 3.34",
|
|
19
|
+
key: "16pf9h"
|
|
20
|
+
}],
|
|
21
|
+
["path", {
|
|
22
|
+
d: "m11 13.73-4 6.93",
|
|
23
|
+
key: "794ttg"
|
|
24
|
+
}],
|
|
25
|
+
["path", {
|
|
26
|
+
d: "M12 22v-2",
|
|
27
|
+
key: "1osdcq"
|
|
28
|
+
}],
|
|
29
|
+
["path", {
|
|
30
|
+
d: "M12 2v2",
|
|
31
|
+
key: "tus03m"
|
|
32
|
+
}],
|
|
33
|
+
["path", {
|
|
34
|
+
d: "M14 12h8",
|
|
35
|
+
key: "4f43i9"
|
|
36
|
+
}],
|
|
37
|
+
["path", {
|
|
38
|
+
d: "m17 20.66-1-1.73",
|
|
39
|
+
key: "eq3orb"
|
|
40
|
+
}],
|
|
41
|
+
["path", {
|
|
42
|
+
d: "m17 3.34-1 1.73",
|
|
43
|
+
key: "2wel8s"
|
|
44
|
+
}],
|
|
45
|
+
["path", {
|
|
46
|
+
d: "M2 12h2",
|
|
47
|
+
key: "1t8f8n"
|
|
48
|
+
}],
|
|
49
|
+
["path", {
|
|
50
|
+
d: "m20.66 17-1.73-1",
|
|
51
|
+
key: "sg0v6f"
|
|
52
|
+
}],
|
|
53
|
+
["path", {
|
|
54
|
+
d: "m20.66 7-1.73 1",
|
|
55
|
+
key: "1ow05n"
|
|
56
|
+
}],
|
|
57
|
+
["path", {
|
|
58
|
+
d: "m3.34 17 1.73-1",
|
|
59
|
+
key: "nuk764"
|
|
60
|
+
}],
|
|
61
|
+
["path", {
|
|
62
|
+
d: "m3.34 7 1.73 1",
|
|
63
|
+
key: "1ulond"
|
|
64
|
+
}],
|
|
65
|
+
["circle", {
|
|
66
|
+
cx: "12",
|
|
67
|
+
cy: "12",
|
|
68
|
+
r: "2",
|
|
69
|
+
key: "1c9p78"
|
|
70
|
+
}],
|
|
71
|
+
["circle", {
|
|
72
|
+
cx: "12",
|
|
73
|
+
cy: "12",
|
|
74
|
+
r: "8",
|
|
75
|
+
key: "46899m"
|
|
76
|
+
}]
|
|
77
|
+
]), ie = f("file-text", [
|
|
78
|
+
["path", {
|
|
79
|
+
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
80
|
+
key: "1oefj6"
|
|
81
|
+
}],
|
|
82
|
+
["path", {
|
|
83
|
+
d: "M14 2v5a1 1 0 0 0 1 1h5",
|
|
84
|
+
key: "wfsgrz"
|
|
85
|
+
}],
|
|
86
|
+
["path", {
|
|
87
|
+
d: "M10 9H8",
|
|
88
|
+
key: "b1mrlr"
|
|
89
|
+
}],
|
|
90
|
+
["path", {
|
|
91
|
+
d: "M16 13H8",
|
|
92
|
+
key: "t4e002"
|
|
93
|
+
}],
|
|
94
|
+
["path", {
|
|
95
|
+
d: "M16 17H8",
|
|
96
|
+
key: "z1uh3a"
|
|
97
|
+
}]
|
|
98
|
+
]), N = /* @__PURE__ */ e(t(), 1), P = n();
|
|
99
|
+
function F() {
|
|
100
|
+
if (typeof window > "u") return "";
|
|
101
|
+
let e = window.__MCP_PROXY_URL__;
|
|
102
|
+
return e === null ? "" : `${window.location.origin}${e || w("proxy")}`;
|
|
103
|
+
}
|
|
104
|
+
function I(e, t, n = !1) {
|
|
105
|
+
return e === "auto" || e === "direct" || e === "proxy" ? e : t === "Via Proxy" ? "proxy" : t === "Direct" ? "auto" : n ? "proxy" : "auto";
|
|
106
|
+
}
|
|
107
|
+
function L(e) {
|
|
108
|
+
return !e || typeof e == "boolean" ? "" : e.proxyAddress?.trim() || "";
|
|
109
|
+
}
|
|
110
|
+
var R = [
|
|
111
|
+
"requestTimeout",
|
|
112
|
+
"resetTimeoutOnProgress",
|
|
113
|
+
"maxTotalTimeout"
|
|
114
|
+
];
|
|
115
|
+
function z(e) {
|
|
116
|
+
if (!e) return {};
|
|
117
|
+
let t = {};
|
|
118
|
+
for (let n of R) {
|
|
119
|
+
let r = e[n];
|
|
120
|
+
r !== void 0 && (t[n] = r);
|
|
121
|
+
}
|
|
122
|
+
return t;
|
|
123
|
+
}
|
|
124
|
+
function B(e, t) {
|
|
125
|
+
try {
|
|
126
|
+
let n = localStorage.getItem("mcp-inspector-connections"), r = n ? JSON.parse(n) : {};
|
|
127
|
+
r[e] = {
|
|
128
|
+
...r[e],
|
|
129
|
+
...t
|
|
130
|
+
}, localStorage.setItem("mcp-inspector-connections", JSON.stringify(r));
|
|
131
|
+
} catch {}
|
|
132
|
+
}
|
|
133
|
+
function V(e, t, n) {
|
|
134
|
+
let r = e.trim(), i = t.trim(), a = n.trim();
|
|
135
|
+
if (!(!r && !a)) return {
|
|
136
|
+
...r ? { clientId: r } : {},
|
|
137
|
+
...r && i ? { clientSecret: i } : {},
|
|
138
|
+
...a ? { scope: a } : {}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function H(e) {
|
|
142
|
+
let t = e.headers || e.proxyConfig?.headers || e.proxyConfig?.customHeaders;
|
|
143
|
+
return t && Object.keys(t).length > 0 ? t : void 0;
|
|
144
|
+
}
|
|
145
|
+
function U(e) {
|
|
146
|
+
let t = e.proxyConfig, n = e.headers || e.customHeaders, r = t?.headers || t?.customHeaders || void 0, i = n || r, a = t ? {
|
|
147
|
+
...t,
|
|
148
|
+
...r ? { headers: r } : {},
|
|
149
|
+
customHeaders: void 0
|
|
150
|
+
} : void 0, { customHeaders: o, connectionType: s, transportType: c, ...l } = e;
|
|
151
|
+
return {
|
|
152
|
+
...l,
|
|
153
|
+
...i && !a?.proxyAddress ? { headers: i } : {},
|
|
154
|
+
...a ? { proxyConfig: a } : {},
|
|
155
|
+
connectionMode: I(e.connectionMode, e.connectionType, !!a?.proxyAddress)
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function W(e) {
|
|
159
|
+
let t = q(e), n = e.proxyConfig?.proxyAddress?.trim() || L(e.autoProxyFallback), r = I(e.connectionMode, e.connectionType, !!n), i = {
|
|
160
|
+
url: e.url,
|
|
161
|
+
displayName: e.name?.trim() || e.url,
|
|
162
|
+
connectionMode: r,
|
|
163
|
+
...e.oauth ? { oauth: e.oauth } : {}
|
|
164
|
+
};
|
|
165
|
+
return r === "proxy" && n ? i.proxyConfig = {
|
|
166
|
+
proxyAddress: n,
|
|
167
|
+
...Object.keys(t).length > 0 ? { headers: t } : {}
|
|
168
|
+
} : Object.keys(t).length > 0 && (i.headers = t), r === "auto" && (i.autoProxyFallback = e.autoProxyFallback ?? (n ? {
|
|
169
|
+
enabled: !0,
|
|
170
|
+
proxyAddress: n
|
|
171
|
+
} : !1)), i;
|
|
172
|
+
}
|
|
173
|
+
function G(e, t) {
|
|
174
|
+
let n = t ? U(t) : e, r = H(e) || {}, i = n.proxyConfig?.proxyAddress?.trim() || L(n.autoProxyFallback);
|
|
175
|
+
return {
|
|
176
|
+
url: e.url || "",
|
|
177
|
+
name: e.displayName || e.url || "",
|
|
178
|
+
transportType: "http",
|
|
179
|
+
connectionMode: I(n.connectionMode, void 0, !!i),
|
|
180
|
+
connectionType: n.connectionMode === "proxy" ? "Via Proxy" : "Direct",
|
|
181
|
+
proxyConfig: n.connectionMode === "proxy" && i ? {
|
|
182
|
+
proxyAddress: i,
|
|
183
|
+
...Object.keys(r).length > 0 ? { headers: r } : {}
|
|
184
|
+
} : void 0,
|
|
185
|
+
headers: r,
|
|
186
|
+
oauth: n.oauth,
|
|
187
|
+
autoProxyFallback: n.autoProxyFallback,
|
|
188
|
+
...z(t)
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function K(e) {
|
|
192
|
+
try {
|
|
193
|
+
let t = localStorage.getItem("mcp-inspector-connections");
|
|
194
|
+
return t && JSON.parse(t)[e] || null;
|
|
195
|
+
} catch {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function q(e) {
|
|
200
|
+
let t = e.proxyConfig?.headers || e.proxyConfig?.customHeaders || e.headers || e.customHeaders || {};
|
|
201
|
+
return Object.fromEntries(Object.entries(t).filter(([e, t]) => e && t).map(([e, t]) => [e, String(t)]).sort(([e], [t]) => e.localeCompare(t)));
|
|
202
|
+
}
|
|
203
|
+
function J(e) {
|
|
204
|
+
let t = e.url?.trim() || "", n = e.proxyConfig?.proxyAddress?.trim() || L(e.autoProxyFallback);
|
|
205
|
+
return {
|
|
206
|
+
url: t,
|
|
207
|
+
name: e.name?.trim() || t,
|
|
208
|
+
transportType: e.transportType || "http",
|
|
209
|
+
proxyAddress: n,
|
|
210
|
+
connectionMode: I(e.connectionMode, e.connectionType, !!n),
|
|
211
|
+
headers: q(e),
|
|
212
|
+
oauthClientId: e.oauth?.clientId?.trim() || "",
|
|
213
|
+
oauthClientSecret: e.oauth?.clientSecret?.trim() || "",
|
|
214
|
+
oauthScope: e.oauth?.scope?.trim() || "",
|
|
215
|
+
requestTimeout: "requestTimeout" in e ? e.requestTimeout : void 0,
|
|
216
|
+
resetTimeoutOnProgress: "resetTimeoutOnProgress" in e ? e.resetTimeoutOnProgress : void 0,
|
|
217
|
+
maxTotalTimeout: "maxTotalTimeout" in e ? e.maxTotalTimeout : void 0
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function ae(e, t) {
|
|
221
|
+
let n = J(e), r = J(t);
|
|
222
|
+
return n.url === r.url && n.transportType === r.transportType && n.proxyAddress === r.proxyAddress && n.connectionMode === r.connectionMode && JSON.stringify(n.headers) === JSON.stringify(r.headers) && n.oauthClientId === r.oauthClientId && n.oauthClientSecret === r.oauthClientSecret && n.oauthScope === r.oauthScope && n.requestTimeout === r.requestTimeout && n.resetTimeoutOnProgress === r.resetTimeoutOnProgress && n.maxTotalTimeout === r.maxTotalTimeout && n.name !== r.name;
|
|
223
|
+
}
|
|
224
|
+
var oe = class extends C {
|
|
225
|
+
setServers(e) {
|
|
226
|
+
let t = this.readRawStoredServers(), n = Object.fromEntries(Object.entries(e).map(([e, n]) => [e, {
|
|
227
|
+
...z(t[e]),
|
|
228
|
+
...n,
|
|
229
|
+
...E(e) && typeof n.url == "string" && T(n.url) ? { url: e } : {}
|
|
230
|
+
}]));
|
|
231
|
+
super.setServers(n);
|
|
232
|
+
}
|
|
233
|
+
setServer(e, t) {
|
|
234
|
+
let n = this.getServers();
|
|
235
|
+
n[e] = {
|
|
236
|
+
...z(this.readRawStoredServers()[e]),
|
|
237
|
+
...t
|
|
238
|
+
}, this.setServers(n);
|
|
239
|
+
}
|
|
240
|
+
readRawStoredServers() {
|
|
241
|
+
try {
|
|
242
|
+
let e = localStorage.getItem("mcp-inspector-connections");
|
|
243
|
+
return e ? JSON.parse(e) : {};
|
|
244
|
+
} catch {
|
|
245
|
+
return {};
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/client/components/CustomHeadersEditor.tsx
|
|
251
|
+
function se({ headers: e, onChange: t, onSave: n, className: s, title: c = "Custom Headers", description: l = "Headers with both name and value will be sent", maxHeaders: u = 50 }) {
|
|
252
|
+
let [d, f] = (0, N.useState)({}), [p, m] = (0, N.useState)(null), h = (0, N.useRef)({});
|
|
253
|
+
(0, N.useEffect)(() => {
|
|
254
|
+
p && h.current[p] && (h.current[p]?.focus(), m(null));
|
|
255
|
+
}, [p, e]);
|
|
256
|
+
let g = () => Math.random().toString(36).slice(2, 11), _ = () => {
|
|
257
|
+
if (e.length >= u) return;
|
|
258
|
+
let n = {
|
|
259
|
+
id: g(),
|
|
260
|
+
name: "",
|
|
261
|
+
value: ""
|
|
262
|
+
};
|
|
263
|
+
t([...e, n]);
|
|
264
|
+
}, v = (n) => {
|
|
265
|
+
t(e.filter((e) => e.id !== n));
|
|
266
|
+
}, b = (n, r, i) => {
|
|
267
|
+
t(e.map((e) => e.id === n ? {
|
|
268
|
+
...e,
|
|
269
|
+
[r]: i
|
|
270
|
+
} : e));
|
|
271
|
+
}, ee = (e) => {
|
|
272
|
+
f((t) => ({
|
|
273
|
+
...t,
|
|
274
|
+
[e]: !t[e]
|
|
275
|
+
}));
|
|
276
|
+
};
|
|
277
|
+
return /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
278
|
+
className: r("space-y-3", s),
|
|
279
|
+
children: [
|
|
280
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
281
|
+
className: "space-y-2",
|
|
282
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
283
|
+
className: "text-base font-medium",
|
|
284
|
+
children: c
|
|
285
|
+
}), /* @__PURE__ */ (0, P.jsx)("p", {
|
|
286
|
+
className: "text-sm text-muted-foreground",
|
|
287
|
+
children: l
|
|
288
|
+
})]
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
291
|
+
className: "space-y-2",
|
|
292
|
+
children: [
|
|
293
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
294
|
+
className: "grid grid-cols-[1fr_1fr] gap-4 text-sm font-medium text-muted-foreground",
|
|
295
|
+
children: [/* @__PURE__ */ (0, P.jsx)("div", { children: "Name" }), /* @__PURE__ */ (0, P.jsx)("div", { children: "Value" })]
|
|
296
|
+
}),
|
|
297
|
+
e.length === 0 ? /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
298
|
+
className: "grid grid-cols-[1fr_1fr] gap-4 items-center",
|
|
299
|
+
children: [/* @__PURE__ */ (0, P.jsx)(a, {
|
|
300
|
+
placeholder: "Authorization",
|
|
301
|
+
value: "",
|
|
302
|
+
onChange: (e) => {
|
|
303
|
+
if (e.target.value.trim()) {
|
|
304
|
+
let n = g();
|
|
305
|
+
t([{
|
|
306
|
+
id: n,
|
|
307
|
+
name: e.target.value,
|
|
308
|
+
value: ""
|
|
309
|
+
}]), m(n);
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
className: "text-sm",
|
|
313
|
+
autoComplete: "off"
|
|
314
|
+
}), /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
315
|
+
className: "flex items-center gap-2",
|
|
316
|
+
children: [
|
|
317
|
+
/* @__PURE__ */ (0, P.jsx)(a, {
|
|
318
|
+
placeholder: "Bearer token...",
|
|
319
|
+
value: "",
|
|
320
|
+
onChange: () => {},
|
|
321
|
+
type: "password",
|
|
322
|
+
className: "font-mono text-sm",
|
|
323
|
+
autoComplete: "off",
|
|
324
|
+
disabled: !0
|
|
325
|
+
}),
|
|
326
|
+
/* @__PURE__ */ (0, P.jsx)(i, {
|
|
327
|
+
type: "button",
|
|
328
|
+
variant: "ghost",
|
|
329
|
+
size: "icon-sm",
|
|
330
|
+
className: "h-8 w-8 p-0",
|
|
331
|
+
disabled: !0,
|
|
332
|
+
children: /* @__PURE__ */ (0, P.jsx)(x, { className: "h-4 w-4" })
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ (0, P.jsx)(i, {
|
|
335
|
+
type: "button",
|
|
336
|
+
variant: "ghost",
|
|
337
|
+
size: "icon-sm",
|
|
338
|
+
className: "h-8 w-8 p-0",
|
|
339
|
+
disabled: !0,
|
|
340
|
+
children: /* @__PURE__ */ (0, P.jsx)(S, { className: "h-4 w-4" })
|
|
341
|
+
})
|
|
342
|
+
]
|
|
343
|
+
})]
|
|
344
|
+
}) : e.map((e) => /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
345
|
+
className: "grid grid-cols-[1fr_1fr] gap-4 items-center",
|
|
346
|
+
children: [/* @__PURE__ */ (0, P.jsx)(a, {
|
|
347
|
+
ref: (t) => {
|
|
348
|
+
h.current[e.id] = t;
|
|
349
|
+
},
|
|
350
|
+
placeholder: "Authorization",
|
|
351
|
+
value: e.name,
|
|
352
|
+
onChange: (t) => b(e.id, "name", t.target.value),
|
|
353
|
+
className: "text-sm",
|
|
354
|
+
autoComplete: "off"
|
|
355
|
+
}), /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
356
|
+
className: "flex items-center gap-2",
|
|
357
|
+
children: [
|
|
358
|
+
/* @__PURE__ */ (0, P.jsx)(a, {
|
|
359
|
+
placeholder: "",
|
|
360
|
+
value: e.value,
|
|
361
|
+
onChange: (t) => b(e.id, "value", t.target.value),
|
|
362
|
+
type: d[e.id] ? "text" : "password",
|
|
363
|
+
className: "font-mono text-sm",
|
|
364
|
+
autoComplete: "off"
|
|
365
|
+
}),
|
|
366
|
+
/* @__PURE__ */ (0, P.jsx)(i, {
|
|
367
|
+
type: "button",
|
|
368
|
+
variant: "ghost",
|
|
369
|
+
size: "icon-sm",
|
|
370
|
+
onClick: () => ee(e.id),
|
|
371
|
+
className: "h-8 w-8 p-0",
|
|
372
|
+
children: d[e.id] ? /* @__PURE__ */ (0, P.jsx)(ne, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, P.jsx)(x, { className: "h-4 w-4" })
|
|
373
|
+
}),
|
|
374
|
+
/* @__PURE__ */ (0, P.jsx)(i, {
|
|
375
|
+
type: "button",
|
|
376
|
+
variant: "ghost",
|
|
377
|
+
size: "icon-sm",
|
|
378
|
+
onClick: () => v(e.id),
|
|
379
|
+
className: "h-8 w-8 p-0",
|
|
380
|
+
children: /* @__PURE__ */ (0, P.jsx)(S, { className: "h-4 w-4" })
|
|
381
|
+
})
|
|
382
|
+
]
|
|
383
|
+
})]
|
|
384
|
+
}, e.id)),
|
|
385
|
+
/* @__PURE__ */ (0, P.jsx)("div", {
|
|
386
|
+
className: "flex justify-start mt-4",
|
|
387
|
+
children: /* @__PURE__ */ (0, P.jsxs)(i, {
|
|
388
|
+
type: "button",
|
|
389
|
+
variant: "outline",
|
|
390
|
+
size: "sm",
|
|
391
|
+
onClick: _,
|
|
392
|
+
disabled: e.length >= u,
|
|
393
|
+
className: "flex items-center gap-2",
|
|
394
|
+
children: [/* @__PURE__ */ (0, P.jsx)(y, { className: "h-4 w-4" }), "Add"]
|
|
395
|
+
})
|
|
396
|
+
})
|
|
397
|
+
]
|
|
398
|
+
}),
|
|
399
|
+
n && /* @__PURE__ */ (0, P.jsx)("div", {
|
|
400
|
+
className: "flex justify-end",
|
|
401
|
+
children: /* @__PURE__ */ (0, P.jsx)(i, {
|
|
402
|
+
type: "button",
|
|
403
|
+
onClick: n,
|
|
404
|
+
className: "bg-black text-white hover:bg-gray-800",
|
|
405
|
+
children: "Save"
|
|
406
|
+
})
|
|
407
|
+
})
|
|
408
|
+
]
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/client/components/ConnectionSettingsForm.tsx
|
|
413
|
+
function ce({ alias: e, setAlias: t, url: n, setUrl: f, connectionMode: y, setConnectionMode: ne, customHeaders: x, setCustomHeaders: S, requestTimeout: C, setRequestTimeout: w, resetTimeoutOnProgress: T, setResetTimeoutOnProgress: E, maxTotalTimeout: F, setMaxTotalTimeout: L, proxyAddress: R, setProxyAddress: z, clientId: B, setClientId: V, clientSecret: H, setClientSecret: U, scope: W, setScope: G, onConnect: K, onSave: q, onCancel: J, variant: ae = "default", showConnectButton: oe = !1, showSaveButton: ce = !1, showExportButton: le = !1, isConnecting: ue = !1, inlineSections: Y = !1, cardSections: X = !1 }) {
|
|
414
|
+
let [de, fe] = (0, N.useState)(!1), [pe, me] = (0, N.useState)(!1), [he, ge] = (0, N.useState)(!1), Z = (0, N.useRef)(!1), _e = async () => {
|
|
415
|
+
if (!n.trim()) {
|
|
416
|
+
D.error("Please enter a URL first");
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
let t = {
|
|
420
|
+
url: n,
|
|
421
|
+
...e.trim() ? { name: e.trim() } : {},
|
|
422
|
+
transportType: "http",
|
|
423
|
+
connectionMode: y,
|
|
424
|
+
connectionType: y === "proxy" ? "Via Proxy" : "Direct",
|
|
425
|
+
proxyConfig: y === "proxy" && R.trim() ? {
|
|
426
|
+
proxyAddress: R.trim(),
|
|
427
|
+
customHeaders: x.reduce((e, t) => (t.name && t.value && (e[t.name] = t.value), e), {})
|
|
428
|
+
} : void 0,
|
|
429
|
+
autoProxyFallback: y === "auto" && R.trim() ? {
|
|
430
|
+
enabled: !0,
|
|
431
|
+
proxyAddress: R.trim()
|
|
432
|
+
} : void 0,
|
|
433
|
+
customHeaders: x.reduce((e, t) => (t.name && t.value && (e[t.name] = t.value), e), {}),
|
|
434
|
+
requestTimeout: Number.parseInt(C, 10),
|
|
435
|
+
resetTimeoutOnProgress: T === "True",
|
|
436
|
+
maxTotalTimeout: Number.parseInt(F, 10),
|
|
437
|
+
oauth: B || W ? {
|
|
438
|
+
clientId: B,
|
|
439
|
+
...B && H ? { clientSecret: H } : {},
|
|
440
|
+
scope: W
|
|
441
|
+
} : void 0
|
|
442
|
+
};
|
|
443
|
+
try {
|
|
444
|
+
await te(JSON.stringify(t, null, 2)), D.success("Configuration copied to clipboard");
|
|
445
|
+
} catch {
|
|
446
|
+
D.error("Failed to copy configuration to clipboard");
|
|
447
|
+
}
|
|
448
|
+
}, Q = ae === "styled", ve = Q ? "bg-white/10 border-white/20 text-white placeholder:text-white/50" : "", ye = Q ? "text-white/90" : "", $ = Q ? "bg-white/10 border-white/20 text-white hover:bg-white/20" : "", be = async (e) => {
|
|
449
|
+
let n = e.clipboardData.getData("text");
|
|
450
|
+
try {
|
|
451
|
+
let r = JSON.parse(n);
|
|
452
|
+
if (r.url && typeof r.url == "string") {
|
|
453
|
+
e.preventDefault(), f(r.url), t(typeof r.name == "string" && r.name !== r.url ? r.name : "");
|
|
454
|
+
let n = r.proxyConfig?.proxyAddress || (typeof r.autoProxyFallback == "object" ? r.autoProxyFallback.proxyAddress : void 0);
|
|
455
|
+
ne(I(r.connectionMode, r.connectionType, !!n)), n && z(n);
|
|
456
|
+
let i = r.proxyConfig?.customHeaders || r.proxyConfig?.headers || r.customHeaders || r.headers || {};
|
|
457
|
+
Object.keys(i).length > 0 && S(Object.entries(i).map(([e, t], n) => ({
|
|
458
|
+
id: `header-${n}`,
|
|
459
|
+
name: e,
|
|
460
|
+
value: String(t)
|
|
461
|
+
}))), r.requestTimeout && w(String(r.requestTimeout)), r.resetTimeoutOnProgress !== void 0 && E(r.resetTimeoutOnProgress ? "True" : "False"), r.maxTotalTimeout && L(String(r.maxTotalTimeout)), r.oauth && (V(r.oauth.clientId || ""), U(r.oauth.clientSecret || ""), G(r.oauth.scope || "")), D.success("Configuration pasted and form populated");
|
|
462
|
+
}
|
|
463
|
+
} catch {}
|
|
464
|
+
}, xe = (e) => {
|
|
465
|
+
Z.current || e.nativeEvent.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && !e.metaKey && !e.ctrlKey && e.target.tagName !== "TEXTAREA" && (e.preventDefault(), K && n.trim() && K());
|
|
466
|
+
}, Se = /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
467
|
+
className: "grid gap-4 sm:grid-cols-2",
|
|
468
|
+
children: [
|
|
469
|
+
!X && /* @__PURE__ */ (0, P.jsx)("h4", {
|
|
470
|
+
className: "text-sm font-medium sm:col-span-2",
|
|
471
|
+
children: "OAuth 2.0"
|
|
472
|
+
}),
|
|
473
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
474
|
+
className: "space-y-2",
|
|
475
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
476
|
+
className: "text-sm",
|
|
477
|
+
children: "Client ID"
|
|
478
|
+
}), /* @__PURE__ */ (0, P.jsx)(a, {
|
|
479
|
+
"data-testid": "auth-dialog-client-id-input",
|
|
480
|
+
placeholder: "Client ID",
|
|
481
|
+
value: B,
|
|
482
|
+
onChange: (e) => V(e.target.value)
|
|
483
|
+
})]
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
486
|
+
className: "space-y-2",
|
|
487
|
+
children: [
|
|
488
|
+
/* @__PURE__ */ (0, P.jsx)(o, {
|
|
489
|
+
className: "text-sm",
|
|
490
|
+
children: "Client Secret"
|
|
491
|
+
}),
|
|
492
|
+
/* @__PURE__ */ (0, P.jsx)(a, {
|
|
493
|
+
"data-testid": "auth-dialog-client-secret-input",
|
|
494
|
+
type: "password",
|
|
495
|
+
placeholder: "Client Secret (optional)",
|
|
496
|
+
value: H,
|
|
497
|
+
onChange: (e) => U(e.target.value)
|
|
498
|
+
}),
|
|
499
|
+
/* @__PURE__ */ (0, P.jsx)("p", {
|
|
500
|
+
className: "text-xs text-muted-foreground",
|
|
501
|
+
children: "Stored in your browser's localStorage."
|
|
502
|
+
})
|
|
503
|
+
]
|
|
504
|
+
}),
|
|
505
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
506
|
+
className: "space-y-2 sm:col-span-2",
|
|
507
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
508
|
+
className: "text-sm",
|
|
509
|
+
children: "Scope"
|
|
510
|
+
}), /* @__PURE__ */ (0, P.jsx)(a, {
|
|
511
|
+
"data-testid": "auth-dialog-scope-input",
|
|
512
|
+
placeholder: "Scope (space-separated)",
|
|
513
|
+
value: W,
|
|
514
|
+
onChange: (e) => G(e.target.value)
|
|
515
|
+
})]
|
|
516
|
+
})
|
|
517
|
+
]
|
|
518
|
+
}), Ce = /* @__PURE__ */ (0, P.jsx)(se, {
|
|
519
|
+
title: /* @__PURE__ */ (0, P.jsx)(P.Fragment, {}),
|
|
520
|
+
headers: x,
|
|
521
|
+
onChange: S
|
|
522
|
+
}), we = /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
523
|
+
className: "grid gap-4 sm:grid-cols-2",
|
|
524
|
+
children: [
|
|
525
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
526
|
+
className: "space-y-2",
|
|
527
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
528
|
+
className: "text-sm",
|
|
529
|
+
children: "Connection Mode"
|
|
530
|
+
}), /* @__PURE__ */ (0, P.jsxs)(d, {
|
|
531
|
+
value: y,
|
|
532
|
+
onValueChange: (e) => ne(e),
|
|
533
|
+
children: [/* @__PURE__ */ (0, P.jsx)(c, {
|
|
534
|
+
className: "w-full",
|
|
535
|
+
"data-testid": "config-dialog-connection-mode-select",
|
|
536
|
+
children: /* @__PURE__ */ (0, P.jsx)(s, {})
|
|
537
|
+
}), /* @__PURE__ */ (0, P.jsxs)(l, { children: [
|
|
538
|
+
/* @__PURE__ */ (0, P.jsx)(u, {
|
|
539
|
+
value: "auto",
|
|
540
|
+
children: "Auto"
|
|
541
|
+
}),
|
|
542
|
+
/* @__PURE__ */ (0, P.jsx)(u, {
|
|
543
|
+
value: "direct",
|
|
544
|
+
children: "Direct"
|
|
545
|
+
}),
|
|
546
|
+
/* @__PURE__ */ (0, P.jsx)(u, {
|
|
547
|
+
value: "proxy",
|
|
548
|
+
children: "Proxy"
|
|
549
|
+
})
|
|
550
|
+
] })]
|
|
551
|
+
})]
|
|
552
|
+
}),
|
|
553
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
554
|
+
className: "space-y-2",
|
|
555
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
556
|
+
className: "text-sm",
|
|
557
|
+
children: "Proxy Endpoint"
|
|
558
|
+
}), /* @__PURE__ */ (0, P.jsx)(a, {
|
|
559
|
+
"data-testid": "config-dialog-proxy-address-input",
|
|
560
|
+
value: R,
|
|
561
|
+
onChange: (e) => z(e.target.value)
|
|
562
|
+
})]
|
|
563
|
+
}),
|
|
564
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
565
|
+
className: "space-y-2",
|
|
566
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
567
|
+
className: "text-sm",
|
|
568
|
+
children: "Request Timeout"
|
|
569
|
+
}), /* @__PURE__ */ (0, P.jsx)(a, {
|
|
570
|
+
"data-testid": "config-dialog-request-timeout-input",
|
|
571
|
+
type: "number",
|
|
572
|
+
value: C,
|
|
573
|
+
onChange: (e) => w(e.target.value)
|
|
574
|
+
})]
|
|
575
|
+
}),
|
|
576
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
577
|
+
className: "space-y-2",
|
|
578
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
579
|
+
className: "text-sm",
|
|
580
|
+
children: "Maximum Total Timeout"
|
|
581
|
+
}), /* @__PURE__ */ (0, P.jsx)(a, {
|
|
582
|
+
"data-testid": "config-dialog-max-timeout-input",
|
|
583
|
+
type: "number",
|
|
584
|
+
value: F,
|
|
585
|
+
onChange: (e) => L(e.target.value)
|
|
586
|
+
})]
|
|
587
|
+
}),
|
|
588
|
+
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
589
|
+
className: "space-y-2",
|
|
590
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
591
|
+
className: "text-sm",
|
|
592
|
+
children: "Reset Timeout on Progress"
|
|
593
|
+
}), /* @__PURE__ */ (0, P.jsxs)(d, {
|
|
594
|
+
value: T,
|
|
595
|
+
onValueChange: E,
|
|
596
|
+
children: [/* @__PURE__ */ (0, P.jsx)(c, {
|
|
597
|
+
className: "w-full",
|
|
598
|
+
"data-testid": "config-dialog-reset-timeout-select",
|
|
599
|
+
children: /* @__PURE__ */ (0, P.jsx)(s, {})
|
|
600
|
+
}), /* @__PURE__ */ (0, P.jsxs)(l, { children: [/* @__PURE__ */ (0, P.jsx)(u, {
|
|
601
|
+
value: "True",
|
|
602
|
+
children: "True"
|
|
603
|
+
}), /* @__PURE__ */ (0, P.jsx)(u, {
|
|
604
|
+
value: "False",
|
|
605
|
+
children: "False"
|
|
606
|
+
})] })]
|
|
607
|
+
})]
|
|
608
|
+
})
|
|
609
|
+
]
|
|
610
|
+
}), Te = /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
611
|
+
className: Y || X ? "grid gap-4 sm:grid-cols-2" : "space-y-4",
|
|
612
|
+
children: [/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
613
|
+
className: "space-y-2",
|
|
614
|
+
children: [/* @__PURE__ */ (0, P.jsx)(o, {
|
|
615
|
+
className: ye,
|
|
616
|
+
children: "Alias"
|
|
617
|
+
}), /* @__PURE__ */ (0, P.jsx)(a, {
|
|
618
|
+
"data-testid": "connection-form-alias-input",
|
|
619
|
+
placeholder: "Optional server alias",
|
|
620
|
+
value: e,
|
|
621
|
+
onChange: (e) => t(e.target.value),
|
|
622
|
+
className: ve
|
|
623
|
+
})]
|
|
624
|
+
}), /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
625
|
+
className: "space-y-2",
|
|
626
|
+
children: [
|
|
627
|
+
/* @__PURE__ */ (0, P.jsx)(o, {
|
|
628
|
+
className: ye,
|
|
629
|
+
children: "URL"
|
|
630
|
+
}),
|
|
631
|
+
/* @__PURE__ */ (0, P.jsx)(a, {
|
|
632
|
+
"data-testid": "connection-form-url-input",
|
|
633
|
+
placeholder: "http://localhost:3000",
|
|
634
|
+
value: n,
|
|
635
|
+
onChange: (e) => f(e.target.value),
|
|
636
|
+
onPaste: be,
|
|
637
|
+
className: ve
|
|
638
|
+
}),
|
|
639
|
+
/* @__PURE__ */ (0, P.jsx)("p", {
|
|
640
|
+
className: r("text-xs text-muted-foreground", Q ? "text-white/60" : ""),
|
|
641
|
+
children: "Tip: You can paste a copied connection config (JSON) to auto-populate the form"
|
|
642
|
+
})
|
|
643
|
+
]
|
|
644
|
+
})]
|
|
645
|
+
}), Ee = {
|
|
646
|
+
onCompositionStart: () => {
|
|
647
|
+
Z.current = !0;
|
|
648
|
+
},
|
|
649
|
+
onCompositionEnd: () => {
|
|
650
|
+
Z.current = !1;
|
|
651
|
+
},
|
|
652
|
+
onKeyDown: xe
|
|
653
|
+
}, De = le ? /* @__PURE__ */ (0, P.jsxs)(i, {
|
|
654
|
+
"data-testid": "connection-form-copy-config-button",
|
|
655
|
+
variant: "ghost",
|
|
656
|
+
onClick: _e,
|
|
657
|
+
className: r(Q ? "absolute top-0 right-0 z-10 text-white hover:bg-white/20 dark:hover:bg-white/20" : "w-full", !Q && "mb-2"),
|
|
658
|
+
children: [/* @__PURE__ */ (0, P.jsx)(ee, { className: "mr-2 h-4 w-4" }), "Copy Config"]
|
|
659
|
+
}) : null;
|
|
660
|
+
return Y && X ? /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
661
|
+
className: "relative space-y-6 @container",
|
|
662
|
+
...Ee,
|
|
663
|
+
children: [
|
|
664
|
+
De,
|
|
665
|
+
/* @__PURE__ */ (0, P.jsxs)(M, {
|
|
666
|
+
className: "border",
|
|
667
|
+
children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
|
|
668
|
+
className: "text-base font-medium",
|
|
669
|
+
children: "Endpoint"
|
|
670
|
+
}), /* @__PURE__ */ (0, P.jsx)(j, { children: "MCP server URL and display alias" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
|
|
671
|
+
className: "pt-0",
|
|
672
|
+
children: Te
|
|
673
|
+
})]
|
|
674
|
+
}),
|
|
675
|
+
/* @__PURE__ */ (0, P.jsxs)(M, {
|
|
676
|
+
className: "border",
|
|
677
|
+
children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
|
|
678
|
+
className: "text-base font-medium",
|
|
679
|
+
children: "Authentication"
|
|
680
|
+
}), /* @__PURE__ */ (0, P.jsx)(j, { children: "OAuth 2.0 client credentials" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
|
|
681
|
+
className: "pt-0",
|
|
682
|
+
children: Se
|
|
683
|
+
})]
|
|
684
|
+
}),
|
|
685
|
+
/* @__PURE__ */ (0, P.jsxs)(M, {
|
|
686
|
+
className: "border",
|
|
687
|
+
children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
|
|
688
|
+
className: "text-base font-medium",
|
|
689
|
+
children: "Custom Headers"
|
|
690
|
+
}), /* @__PURE__ */ (0, P.jsx)(j, { children: "Extra HTTP headers sent with MCP requests" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
|
|
691
|
+
className: "pt-0",
|
|
692
|
+
children: Ce
|
|
693
|
+
})]
|
|
694
|
+
}),
|
|
695
|
+
/* @__PURE__ */ (0, P.jsxs)(M, {
|
|
696
|
+
className: "border",
|
|
697
|
+
children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
|
|
698
|
+
className: "text-base font-medium",
|
|
699
|
+
children: "Configuration"
|
|
700
|
+
}), /* @__PURE__ */ (0, P.jsx)(j, { children: "Connection mode, proxy, and request timeouts" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
|
|
701
|
+
className: "pt-0",
|
|
702
|
+
children: we
|
|
703
|
+
})]
|
|
704
|
+
})
|
|
705
|
+
]
|
|
706
|
+
}) : /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
707
|
+
className: "relative space-y-4 @container",
|
|
708
|
+
...Ee,
|
|
709
|
+
children: [
|
|
710
|
+
!Y && /* @__PURE__ */ (0, P.jsx)("h3", {
|
|
711
|
+
className: "mb-4 text-xl font-semibold text-white",
|
|
712
|
+
children: "Connect"
|
|
713
|
+
}),
|
|
714
|
+
De,
|
|
715
|
+
Te,
|
|
716
|
+
Y && !X && /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
717
|
+
className: "space-y-8 pt-2",
|
|
718
|
+
children: [
|
|
719
|
+
/* @__PURE__ */ (0, P.jsxs)("section", {
|
|
720
|
+
className: "space-y-4",
|
|
721
|
+
children: [/* @__PURE__ */ (0, P.jsx)("h3", {
|
|
722
|
+
className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
723
|
+
children: "Authentication"
|
|
724
|
+
}), Se]
|
|
725
|
+
}),
|
|
726
|
+
/* @__PURE__ */ (0, P.jsxs)("section", {
|
|
727
|
+
className: "space-y-4",
|
|
728
|
+
children: [/* @__PURE__ */ (0, P.jsx)("h3", {
|
|
729
|
+
className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
730
|
+
children: "Custom Headers"
|
|
731
|
+
}), Ce]
|
|
732
|
+
}),
|
|
733
|
+
/* @__PURE__ */ (0, P.jsxs)("section", {
|
|
734
|
+
className: "space-y-4",
|
|
735
|
+
children: [/* @__PURE__ */ (0, P.jsx)("h3", {
|
|
736
|
+
className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
737
|
+
children: "Configuration"
|
|
738
|
+
}), we]
|
|
739
|
+
})
|
|
740
|
+
]
|
|
741
|
+
}),
|
|
742
|
+
!Y && /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
743
|
+
className: "flex flex-row gap-3 @lg:flex-col",
|
|
744
|
+
children: [
|
|
745
|
+
/* @__PURE__ */ (0, P.jsxs)(v, {
|
|
746
|
+
open: pe,
|
|
747
|
+
onOpenChange: me,
|
|
748
|
+
children: [/* @__PURE__ */ (0, P.jsx)(m, {
|
|
749
|
+
render: /* @__PURE__ */ (0, P.jsx)("div", {
|
|
750
|
+
className: "relative flex-1 ",
|
|
751
|
+
children: /* @__PURE__ */ (0, P.jsxs)(i, {
|
|
752
|
+
"data-testid": "connection-form-auth-button",
|
|
753
|
+
variant: "outline",
|
|
754
|
+
className: r((B || H || W) && "border-2", "w-full justify-center hover:text-white cursor-pointer", $),
|
|
755
|
+
children: [/* @__PURE__ */ (0, P.jsx)(b, { className: "w-4 h-4 mr-0" }), "Authentication"]
|
|
756
|
+
})
|
|
757
|
+
}),
|
|
758
|
+
nativeButton: !1
|
|
759
|
+
}), /* @__PURE__ */ (0, P.jsxs)(_, {
|
|
760
|
+
scrollable: !0,
|
|
761
|
+
className: "w-[calc(100vw-2rem)] sm:w-full max-w-2xl max-h-[80vh]",
|
|
762
|
+
children: [/* @__PURE__ */ (0, P.jsx)(g, { children: /* @__PURE__ */ (0, P.jsx)(p, { children: "Authentication" }) }), /* @__PURE__ */ (0, P.jsxs)(h, {
|
|
763
|
+
className: "space-y-4",
|
|
764
|
+
children: [Se, /* @__PURE__ */ (0, P.jsx)("div", {
|
|
765
|
+
className: "flex justify-end",
|
|
766
|
+
children: /* @__PURE__ */ (0, P.jsx)(i, {
|
|
767
|
+
onClick: () => me(!1),
|
|
768
|
+
children: "Save"
|
|
769
|
+
})
|
|
770
|
+
})]
|
|
771
|
+
})]
|
|
772
|
+
})]
|
|
773
|
+
}),
|
|
774
|
+
/* @__PURE__ */ (0, P.jsxs)(v, {
|
|
775
|
+
open: de,
|
|
776
|
+
onOpenChange: fe,
|
|
777
|
+
children: [/* @__PURE__ */ (0, P.jsx)(m, {
|
|
778
|
+
render: /* @__PURE__ */ (0, P.jsx)("div", {
|
|
779
|
+
className: "relative flex-1 ",
|
|
780
|
+
children: /* @__PURE__ */ (0, P.jsxs)(i, {
|
|
781
|
+
"data-testid": "connection-form-headers-button",
|
|
782
|
+
variant: "outline",
|
|
783
|
+
className: r("w-full justify-center hover:text-white cursor-pointer", $),
|
|
784
|
+
children: [/* @__PURE__ */ (0, P.jsx)(ie, { className: "w-4 h-4" }), "Custom Headers"]
|
|
785
|
+
})
|
|
786
|
+
}),
|
|
787
|
+
nativeButton: !1
|
|
788
|
+
}), /* @__PURE__ */ (0, P.jsxs)(_, {
|
|
789
|
+
scrollable: !0,
|
|
790
|
+
className: "w-full max-w-2xl max-h-[80vh]",
|
|
791
|
+
children: [/* @__PURE__ */ (0, P.jsx)(g, { children: /* @__PURE__ */ (0, P.jsx)(p, { children: "Custom Headers" }) }), /* @__PURE__ */ (0, P.jsx)(h, { children: /* @__PURE__ */ (0, P.jsx)(se, {
|
|
792
|
+
title: /* @__PURE__ */ (0, P.jsx)(P.Fragment, {}),
|
|
793
|
+
headers: x,
|
|
794
|
+
onChange: S,
|
|
795
|
+
onSave: () => fe(!1)
|
|
796
|
+
}) })]
|
|
797
|
+
})]
|
|
798
|
+
}),
|
|
799
|
+
/* @__PURE__ */ (0, P.jsxs)(v, {
|
|
800
|
+
open: he,
|
|
801
|
+
onOpenChange: ge,
|
|
802
|
+
children: [/* @__PURE__ */ (0, P.jsx)(m, {
|
|
803
|
+
render: /* @__PURE__ */ (0, P.jsxs)(i, {
|
|
804
|
+
"data-testid": "connection-form-config-button",
|
|
805
|
+
variant: "outline",
|
|
806
|
+
className: r("flex-1 justify-center hover:text-white cursor-pointer", $),
|
|
807
|
+
children: [/* @__PURE__ */ (0, P.jsx)(re, { className: "w-4 h-4" }), "Configuration"]
|
|
808
|
+
}),
|
|
809
|
+
nativeButton: !0
|
|
810
|
+
}), /* @__PURE__ */ (0, P.jsxs)(_, {
|
|
811
|
+
scrollable: !0,
|
|
812
|
+
className: "w-full max-w-2xl max-h-[80vh]",
|
|
813
|
+
children: [/* @__PURE__ */ (0, P.jsx)(g, { children: /* @__PURE__ */ (0, P.jsx)(p, { children: "Configuration" }) }), /* @__PURE__ */ (0, P.jsxs)(h, {
|
|
814
|
+
className: "space-y-4",
|
|
815
|
+
children: [we, /* @__PURE__ */ (0, P.jsx)("div", {
|
|
816
|
+
className: "flex justify-end",
|
|
817
|
+
children: /* @__PURE__ */ (0, P.jsx)(i, {
|
|
818
|
+
onClick: () => ge(!1),
|
|
819
|
+
children: "Save"
|
|
820
|
+
})
|
|
821
|
+
})]
|
|
822
|
+
})]
|
|
823
|
+
})]
|
|
824
|
+
})
|
|
825
|
+
]
|
|
826
|
+
}),
|
|
827
|
+
oe && /* @__PURE__ */ (0, P.jsx)(i, {
|
|
828
|
+
"data-testid": "connection-form-connect-button",
|
|
829
|
+
onClick: K,
|
|
830
|
+
disabled: !n.trim() || ue,
|
|
831
|
+
size: Q ? "lg" : void 0,
|
|
832
|
+
className: r("w-full font-semibold", Q ? "rounded-full text-black [&_[aria-hidden]]:bg-white hover:[&_[aria-hidden]]:bg-white/90 group-active:[&_[aria-hidden]]:bg-white/80" : ""),
|
|
833
|
+
children: ue ? /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, P.jsx)("svg", {
|
|
834
|
+
className: "w-4 h-4 mr-2 animate-spin",
|
|
835
|
+
fill: "none",
|
|
836
|
+
stroke: "currentColor",
|
|
837
|
+
viewBox: "0 0 24 24",
|
|
838
|
+
children: /* @__PURE__ */ (0, P.jsx)("path", {
|
|
839
|
+
strokeLinecap: "round",
|
|
840
|
+
strokeLinejoin: "round",
|
|
841
|
+
strokeWidth: 2,
|
|
842
|
+
d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
|
|
843
|
+
})
|
|
844
|
+
}), "Connecting..."] }) : /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, P.jsx)("svg", {
|
|
845
|
+
className: "w-4 h-4 mr-2",
|
|
846
|
+
fill: "none",
|
|
847
|
+
stroke: "currentColor",
|
|
848
|
+
viewBox: "0 0 24 24",
|
|
849
|
+
children: /* @__PURE__ */ (0, P.jsx)("path", {
|
|
850
|
+
strokeLinecap: "round",
|
|
851
|
+
strokeLinejoin: "round",
|
|
852
|
+
strokeWidth: 2,
|
|
853
|
+
d: "M13 10V3L4 14h7v7l9-11h-7z"
|
|
854
|
+
})
|
|
855
|
+
}), "Connect"] })
|
|
856
|
+
}),
|
|
857
|
+
ce && /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
858
|
+
className: "flex justify-end gap-2",
|
|
859
|
+
children: [J && /* @__PURE__ */ (0, P.jsx)(i, {
|
|
860
|
+
variant: "outline",
|
|
861
|
+
onClick: J,
|
|
862
|
+
children: "Cancel"
|
|
863
|
+
}), /* @__PURE__ */ (0, P.jsx)(i, {
|
|
864
|
+
"data-testid": "connection-form-save-button",
|
|
865
|
+
onClick: q,
|
|
866
|
+
children: "Save Connection Options"
|
|
867
|
+
})]
|
|
868
|
+
})
|
|
869
|
+
]
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
//#endregion
|
|
873
|
+
export { H as a, I as c, W as d, ie as f, F as i, B as l, oe as n, K as o, V as r, ae as s, ce as t, G as u };
|