@mcp-use/inspector 20.0.0-beta.8 → 20.0.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 +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 +272 -1383
- package/dist/client/index.d.ts +1408 -50
- package/dist/client/index.js +165 -24322
- package/dist/server/index.d.ts +79 -7
- package/dist/server/index.js +370 -22
- package/package.json +81 -36
- package/dist/cdn/AnimatePresence-D1bZ5_-l.js +0 -394
- package/dist/cdn/ChatTab-C-Ysv6Zf.js +0 -6811
- package/dist/cdn/CheckboxIndicator-BjF73mGX.js +0 -252
- package/dist/cdn/ConnectionSettingsForm-CNuMa6jp.js +0 -929
- package/dist/cdn/ConnectionSettingsTab-qSVQ1aIF.js +0 -151
- package/dist/cdn/ElicitationTab-PEmEDvC5.js +0 -655
- package/dist/cdn/FormContext-NtUiZclE.js +0 -135
- package/dist/cdn/InspectorContext-BBKCdfmK.js +0 -123
- package/dist/cdn/JSONDisplay-BJqMz7Ny.js +0 -324
- package/dist/cdn/ListTabHeader-DzmTtN1e.js +0 -89
- package/dist/cdn/MCPAppsDebugControls-BpP-Ifap.js +0 -2174
- package/dist/cdn/ManufactOAuthCallback-ChbbjFIT.js +0 -31
- package/dist/cdn/MarkdownRenderer-CK_6n3T9.js +0 -3610
- package/dist/cdn/McpAppsViewPanel-jlsYQ7uS.js +0 -56
- package/dist/cdn/NotificationsTab-B7uebqMV.js +0 -290
- package/dist/cdn/OAuthCallback--NZdLoWx.js +0 -58
- package/dist/cdn/PromptsTab-DSGYL32k.js +0 -902
- package/dist/cdn/ResourcesTab-d3wxN7xC.js +0 -566
- package/dist/cdn/SamplingTab-DETdWNJk.js +0 -659
- package/dist/cdn/ServerMetadataTab-BM3VhSLf.js +0 -244
- package/dist/cdn/StatusIcon-Q3n3YRtE.js +0 -65
- package/dist/cdn/ToolsTab-BMcnfEWg.js +0 -2045
- package/dist/cdn/ViewPreview-CBhrVdwx.js +0 -238
- package/dist/cdn/WidgetDebugContext-B6yoOVVV.js +0 -314
- package/dist/cdn/WidgetWrapper-BlbQAh_X.js +0 -12
- package/dist/cdn/basePath-B8HuhIMu.js +0 -25
- package/dist/cdn/bell-GrTZcnD2.js +0 -10
- package/dist/cdn/browser-DG2Z8392.js +0 -42
- package/dist/cdn/brush-CelVvMGp.js +0 -17
- package/dist/cdn/button-CB4uOoUV.js +0 -2509
- package/dist/cdn/card-BA-DQk-G.js +0 -41
- package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
- package/dist/cdn/checkbox-kwVa4gRX.js +0 -20
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
- package/dist/cdn/clock-YMF8Gtw5.js +0 -12
- package/dist/cdn/code-C8sN2OGR.js +0 -10
- package/dist/cdn/createLucideIcon-BONxC1L5.js +0 -213
- package/dist/cdn/dialog-CJGnC5Ag.js +0 -1028
- package/dist/cdn/dist-CTJnCYmk.js +0 -616
- package/dist/cdn/dist-SxRsB1iS.js +0 -2307
- package/dist/cdn/external-link-Bo4lQxr1.js +0 -17
- package/dist/cdn/eye-pSGG7nvf.js +0 -29
- package/dist/cdn/folder-open-aM8CPtBO.js +0 -7
- package/dist/cdn/hash-DDs2vE1k.js +0 -33
- package/dist/cdn/history-BfUFpL1d.js +0 -17
- package/dist/cdn/index-browser-Dm3R1Mfe.js +0 -1934
- package/dist/cdn/info-BMkB68mB.js +0 -19
- package/dist/cdn/input-BCpgLXU1.js +0 -9654
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
- package/dist/cdn/inspector.css +0 -2
- package/dist/cdn/inspector.js +0 -24489
- package/dist/cdn/label-A0UGV8FE.js +0 -60
- package/dist/cdn/loader-circle-BKRHJEB7.js +0 -7
- package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
- package/dist/cdn/maximize-2-DdrB_spi.js +0 -21
- package/dist/cdn/maximize-hSOCz133.js +0 -21
- package/dist/cdn/message-square-D3tKB3uJ.js +0 -7
- package/dist/cdn/not-found-BajFyZpp.js +0 -32
- package/dist/cdn/play-B1leulYf.js +0 -7
- package/dist/cdn/providerMeta-CjGU4rID.js +0 -436
- 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-Bl-hSkvn.js +0 -5482
- package/dist/cdn/refresh-cw-CyvXrS91.js +0 -21
- package/dist/cdn/save-CmdEPUAm.js +0 -34
- package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
- package/dist/cdn/select-CCFHjOGk.js +0 -2595
- package/dist/cdn/servers-Dd0Vcp81.js +0 -30
- package/dist/cdn/shared-CJVHJhag.js +0 -1700
- package/dist/cdn/sheet-oyq1mIyg.js +0 -2078
- package/dist/cdn/sparkles-CxeZpVtX.js +0 -23
- package/dist/cdn/spinner-Be1GlSGX.js +0 -15
- package/dist/cdn/square-check-big-C_4wbfwF.js +0 -10
- package/dist/cdn/switch-DHXEA_N5.js +0 -665
- package/dist/cdn/tabs-subtle-Dubd6Kj8.js +0 -788
- package/dist/cdn/telemetry-DjQn_Xm9.js +0 -240
- package/dist/cdn/textarea-CwmI8_uI.js +0 -14
- package/dist/cdn/trash-2-BhumJAFE.js +0 -25
- package/dist/cdn/useAriaLabelledBy-Cra6w3YY.js +0 -30
- package/dist/cdn/useCompositeItem-Dhnm-7el.js +0 -26
- package/dist/cdn/useConfig-B_adtnP1.js +0 -235
- package/dist/cdn/useSavedRequests-mSIsDd4c.js +0 -51
- package/dist/cdn/useViewHostProps-CDOm2w6u.js +0 -364
- package/dist/cdn/wrench-DvK20LUT.js +0 -7
- package/dist/cdn/x-EilKPiCX.js +0 -10
- package/dist/cdn/zap-0Wr9QO7N.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 -48
- 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/partialToolArgs.d.ts +0 -10
- package/dist/client/components/chat/partialToolArgs.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 -76
- 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/mcp-apps/McpAppsViewPanel.d.ts +0 -29
- package/dist/client/components/mcp-apps/McpAppsViewPanel.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 -25
- 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-animation-pause.d.ts +0 -14
- package/dist/client/components/ui/mesh-animation-pause.d.ts.map +0 -1
- package/dist/client/components/ui/mesh-gradient-colors.d.ts +0 -6
- package/dist/client/components/ui/mesh-gradient-colors.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 -111
- 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 -14
- 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 -19
- 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-BD3ROXCC.js +0 -156
- package/dist/server/chunk-BPXKTFQ5.js +0 -72
- 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-UJLXHNQP.js +0 -43
- package/dist/server/chunk-WFT4JHYI.js +0 -24
- package/dist/server/chunk-XCNS5CIW.js +0 -199
- package/dist/server/chunk-XTVIGRTB.js +0 -207
- 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-FfDQQNFJ.js +0 -9
- package/dist/web/assets/ChatTab-DxD-KLW_.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-pO6p0U0f.js +0 -1
- package/dist/web/assets/ElicitationTab-o5_z6gqe.js +0 -1
- package/dist/web/assets/FormContext-sV-yByKz.js +0 -1
- package/dist/web/assets/ListTabHeader-CrGae306.js +0 -1
- package/dist/web/assets/MCPAppsDebugControls-CZW1uZdH.js +0 -34
- package/dist/web/assets/ManufactOAuthCallback-BnWhf5bW.js +0 -1
- package/dist/web/assets/MarkdownRenderer-gUUHRIm1.js +0 -47
- package/dist/web/assets/McpAppsViewPanel-CDJDb4t-.js +0 -1
- package/dist/web/assets/NotificationsTab-CkJ5E_sR.js +0 -1
- package/dist/web/assets/OAuthCallback-Dv_mFcua.js +0 -1
- package/dist/web/assets/PromptsTab-CLwWFf6d.js +0 -15
- package/dist/web/assets/ResourcesTab-B8cnuq-m.js +0 -2
- package/dist/web/assets/SamplingTab-BjYHYRHX.js +0 -1
- package/dist/web/assets/ServerMetadataTab-CPlclbb7.js +0 -1
- package/dist/web/assets/ToolsTab-BSSwvp4Q.js +0 -8
- package/dist/web/assets/ViewPreview-C_LJdgt9.js +0 -1
- package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +0 -1
- package/dist/web/assets/brush-DX0UZ_pI.js +0 -1
- package/dist/web/assets/button-C8Xa2k4x.js +0 -1
- package/dist/web/assets/checkbox-BuuDhnpk.js +0 -1
- package/dist/web/assets/code-B14rVdNt.js +0 -1
- package/dist/web/assets/createLucideIcon-BEHeJH0M.js +0 -1
- package/dist/web/assets/dist-C39gcmyH.js +0 -21
- package/dist/web/assets/index-CyvvaDNR.js +0 -499
- package/dist/web/assets/index-bCIH1Sdx.css +0 -1
- package/dist/web/assets/input-C0OQCUZy.js +0 -1
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
- package/dist/web/assets/label-CI7JWQOo.js +0 -1
- package/dist/web/assets/maximize-2-Br1WQzT2.js +0 -1
- package/dist/web/assets/maximize-CJNgRe6S.js +0 -1
- package/dist/web/assets/react-CU_d2d5K.js +0 -1
- package/dist/web/assets/refresh-cw-B5iaAZKn.js +0 -1
- package/dist/web/assets/save-TM6fvNrt.js +0 -1
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
- package/dist/web/assets/select-D6jzbLJn.js +0 -1
- package/dist/web/assets/shared-Chk1rURG.js +0 -1
- package/dist/web/assets/sparkles-BGYTDThM.js +0 -1
- package/dist/web/assets/tabs-subtle-CK4nucyB.js +0 -1
- package/dist/web/assets/textarea-CRTXuRmE.js +0 -1
- package/dist/web/assets/useConfig-CgQbKjVT.js +0 -1
- package/dist/web/assets/useViewHostProps-DFI7Ywo7.js +0 -1
- package/dist/web/assets/zap-BDWHCVHU.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,54 +0,0 @@
|
|
|
1
|
-
// src/server/static-assets.ts
|
|
2
|
-
import { existsSync, readFileSync } from "fs";
|
|
3
|
-
import path from "path";
|
|
4
|
-
import { fileURLToPath } from "url";
|
|
5
|
-
var CONTENT_TYPES = {
|
|
6
|
-
".js": "application/javascript",
|
|
7
|
-
".css": "text/css",
|
|
8
|
-
".svg": "image/svg+xml",
|
|
9
|
-
".png": "image/png",
|
|
10
|
-
".ico": "image/x-icon",
|
|
11
|
-
".webmanifest": "application/manifest+json"
|
|
12
|
-
};
|
|
13
|
-
function resolveDistCdnDir() {
|
|
14
|
-
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
15
|
-
for (const dir of [
|
|
16
|
-
path.resolve(here, "cdn"),
|
|
17
|
-
// dist/cli.js (bundled)
|
|
18
|
-
path.resolve(here, "../cdn")
|
|
19
|
-
// dist/server/*.js
|
|
20
|
-
]) {
|
|
21
|
-
if (existsSync(path.join(dir, "inspector.js"))) {
|
|
22
|
-
return dir;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
throw new Error(
|
|
26
|
-
"Inspector bundle not found (expected dist/cdn/inspector.js)"
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
function registerInspectorStaticAssets(app, basePath = "") {
|
|
30
|
-
const cdnDir = resolveDistCdnDir();
|
|
31
|
-
const mountPath = `${basePath}/dist/cdn`;
|
|
32
|
-
app.get(`${mountPath}/*`, (c) => {
|
|
33
|
-
const subPath = c.req.path.slice(mountPath.length);
|
|
34
|
-
const relative = subPath.startsWith("/") ? subPath.slice(1) : subPath;
|
|
35
|
-
if (!relative || relative.includes("..")) {
|
|
36
|
-
return c.notFound();
|
|
37
|
-
}
|
|
38
|
-
const file = path.resolve(cdnDir, relative);
|
|
39
|
-
const root = cdnDir.endsWith(path.sep) ? cdnDir : `${cdnDir}${path.sep}`;
|
|
40
|
-
if (!file.startsWith(root) || !existsSync(file)) {
|
|
41
|
-
return c.notFound();
|
|
42
|
-
}
|
|
43
|
-
const ext = path.extname(file);
|
|
44
|
-
return c.body(readFileSync(file), 200, {
|
|
45
|
-
"Content-Type": CONTENT_TYPES[ext] ?? "application/octet-stream",
|
|
46
|
-
"Cache-Control": "public, max-age=3600"
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
resolveDistCdnDir,
|
|
53
|
-
registerInspectorStaticAssets
|
|
54
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
registerInspectorProxyRoutes
|
|
3
|
-
} from "./chunk-UJLXHNQP.js";
|
|
4
|
-
|
|
5
|
-
// src/server/create-dev-api-app.ts
|
|
6
|
-
import { Hono } from "hono";
|
|
7
|
-
import { cors } from "hono/cors";
|
|
8
|
-
import { logger } from "hono/logger";
|
|
9
|
-
function createDevApiApp() {
|
|
10
|
-
const app = new Hono();
|
|
11
|
-
app.use(
|
|
12
|
-
"*",
|
|
13
|
-
cors({
|
|
14
|
-
origin: "*",
|
|
15
|
-
allowHeaders: [
|
|
16
|
-
"Authorization",
|
|
17
|
-
"Content-Type",
|
|
18
|
-
"Accept",
|
|
19
|
-
"X-Target-URL",
|
|
20
|
-
"X-MCP-Target",
|
|
21
|
-
"Mcp-Session-Id",
|
|
22
|
-
"mcp-session-id",
|
|
23
|
-
"mcp-protocol-version",
|
|
24
|
-
"X-Server-Id",
|
|
25
|
-
"X-Requested-With"
|
|
26
|
-
],
|
|
27
|
-
exposeHeaders: ["*"]
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
app.use("/inspector/api/*", logger());
|
|
31
|
-
registerInspectorProxyRoutes(app, {
|
|
32
|
-
oauthProxyAllowedOrigins: [],
|
|
33
|
-
oauthProxyAllowLoopback: true
|
|
34
|
-
});
|
|
35
|
-
return app;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
createDevApiApp
|
|
40
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
__publicField
|
|
7
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mountMcpProxy
|
|
3
|
-
} from "./chunk-XCNS5CIW.js";
|
|
4
|
-
import {
|
|
5
|
-
mountOAuthProxy
|
|
6
|
-
} from "./chunk-K2F2AJOI.js";
|
|
7
|
-
|
|
8
|
-
// src/server/proxy-routes.ts
|
|
9
|
-
function registerInspectorProxyRoutes(app, config, basePath = "") {
|
|
10
|
-
const p = (suffix) => `${basePath}${suffix}`;
|
|
11
|
-
const allowLoopback = config?.oauthProxyAllowLoopback ?? false;
|
|
12
|
-
const mountOAuth = config?.oauth !== false;
|
|
13
|
-
app.get(p("/inspector/health"), (c) => {
|
|
14
|
-
return c.json({
|
|
15
|
-
status: "ok",
|
|
16
|
-
protocol: "mcp-use-inspector-preview",
|
|
17
|
-
version: 1,
|
|
18
|
-
capabilities: ["view-preview"]
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
mountMcpProxy(app, {
|
|
22
|
-
path: p("/inspector/api/proxy"),
|
|
23
|
-
allowLoopback
|
|
24
|
-
});
|
|
25
|
-
if (mountOAuth) {
|
|
26
|
-
mountOAuthProxy(app, {
|
|
27
|
-
basePath: p("/inspector/api/oauth"),
|
|
28
|
-
enableLogging: true,
|
|
29
|
-
allowedOrigins: config?.oauthProxyAllowedOrigins ?? [],
|
|
30
|
-
allowLoopback
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
if (config?.autoConnectUrl !== void 0) {
|
|
34
|
-
const autoConnectUrl = config.autoConnectUrl;
|
|
35
|
-
app.get(p("/inspector/config.json"), (c) => {
|
|
36
|
-
return c.json({ autoConnectUrl: autoConnectUrl ?? null });
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
registerInspectorProxyRoutes
|
|
43
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// src/server/favicon-links.ts
|
|
2
|
-
var FAVICON_CACHE_VERSION = "4";
|
|
3
|
-
var INSPECTOR_FAVICON_ASSETS = [
|
|
4
|
-
"favicon.svg",
|
|
5
|
-
"favicon-96x96.png",
|
|
6
|
-
"favicon.ico",
|
|
7
|
-
"apple-touch-icon.png",
|
|
8
|
-
"site.webmanifest",
|
|
9
|
-
"web-app-manifest-192x192.png",
|
|
10
|
-
"web-app-manifest-512x512.png",
|
|
11
|
-
"favicon-black.svg",
|
|
12
|
-
"favicon-white.svg"
|
|
13
|
-
];
|
|
14
|
-
function renderInspectorFaviconLinks(basePath = "") {
|
|
15
|
-
const prefix = basePath.replace(/\/$/, "");
|
|
16
|
-
const href = `${prefix}/favicon-black.svg?v=${FAVICON_CACHE_VERSION}`;
|
|
17
|
-
return `<link rel="icon" type="image/svg+xml" href="${href}" />`;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
FAVICON_CACHE_VERSION,
|
|
22
|
-
INSPECTOR_FAVICON_ASSETS,
|
|
23
|
-
renderInspectorFaviconLinks
|
|
24
|
-
};
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isSafeProxyTarget
|
|
3
|
-
} from "./chunk-K2F2AJOI.js";
|
|
4
|
-
|
|
5
|
-
// src/server/proxy/mcp-proxy.ts
|
|
6
|
-
import { cors } from "hono/cors";
|
|
7
|
-
import { logger } from "hono/logger";
|
|
8
|
-
function isOpenEndedSseResponse(contentType, contentLength) {
|
|
9
|
-
return contentType.includes("text/event-stream") && !contentLength;
|
|
10
|
-
}
|
|
11
|
-
function mountMcpProxy(app, options = {}) {
|
|
12
|
-
const basePath = options.path || "/mcp/proxy";
|
|
13
|
-
const enableLogging = options.enableLogging !== false;
|
|
14
|
-
app.use(
|
|
15
|
-
`${basePath}/*`,
|
|
16
|
-
cors({
|
|
17
|
-
origin: "*",
|
|
18
|
-
allowHeaders: [
|
|
19
|
-
"Authorization",
|
|
20
|
-
"Content-Type",
|
|
21
|
-
"Accept",
|
|
22
|
-
"X-Target-URL",
|
|
23
|
-
"X-MCP-Target",
|
|
24
|
-
"Mcp-Session-Id",
|
|
25
|
-
"mcp-session-id",
|
|
26
|
-
"mcp-protocol-version",
|
|
27
|
-
"X-Server-Id",
|
|
28
|
-
"X-Requested-With"
|
|
29
|
-
],
|
|
30
|
-
exposeHeaders: ["*"]
|
|
31
|
-
})
|
|
32
|
-
);
|
|
33
|
-
if (enableLogging) {
|
|
34
|
-
app.use(`${basePath}/*`, logger());
|
|
35
|
-
}
|
|
36
|
-
app.all(`${basePath}/*`, async (c) => {
|
|
37
|
-
try {
|
|
38
|
-
if (options.authenticate) {
|
|
39
|
-
const isAuthenticated = await options.authenticate(c);
|
|
40
|
-
if (!isAuthenticated) {
|
|
41
|
-
return c.json({ error: "Unauthorized" }, 401);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const targetUrl = c.req.header("X-Target-URL");
|
|
45
|
-
if (!targetUrl) {
|
|
46
|
-
return c.json(
|
|
47
|
-
{
|
|
48
|
-
error: "X-Target-URL header is required",
|
|
49
|
-
usage: "Set X-Target-URL header to the MCP server URL you want to proxy to"
|
|
50
|
-
},
|
|
51
|
-
400
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
if (!await isSafeProxyTarget(targetUrl, options.allowLoopback ?? false)) {
|
|
55
|
-
return c.json(
|
|
56
|
-
{
|
|
57
|
-
error: "Invalid target URL",
|
|
58
|
-
details: "Target is not allowed by the proxy network policy"
|
|
59
|
-
},
|
|
60
|
-
403
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
if (options.validateRequest) {
|
|
64
|
-
const isValid = await options.validateRequest(targetUrl, c);
|
|
65
|
-
if (!isValid) {
|
|
66
|
-
return c.json(
|
|
67
|
-
{
|
|
68
|
-
error: "Invalid target URL",
|
|
69
|
-
details: "The requested target URL is not allowed"
|
|
70
|
-
},
|
|
71
|
-
403
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
try {
|
|
76
|
-
new URL(targetUrl);
|
|
77
|
-
} catch {
|
|
78
|
-
return c.json(
|
|
79
|
-
{
|
|
80
|
-
error: "Invalid target URL format",
|
|
81
|
-
details: "The X-Target-URL must be a valid HTTP/HTTPS URL"
|
|
82
|
-
},
|
|
83
|
-
400
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
const method = c.req.method;
|
|
87
|
-
const headers = {};
|
|
88
|
-
const requestHeaders = c.req.header();
|
|
89
|
-
for (const [key, value] of Object.entries(requestHeaders)) {
|
|
90
|
-
const lowerKey = key.toLowerCase();
|
|
91
|
-
if (!lowerKey.startsWith("x-proxy-") && !lowerKey.startsWith("x-target-") && !lowerKey.startsWith("x-mcp-") && !lowerKey.startsWith("x-forwarded-") && !lowerKey.startsWith("cf-") && lowerKey !== "x-original-host" && lowerKey !== "host" && lowerKey !== "accept-encoding" && lowerKey !== "cdn-loop") {
|
|
92
|
-
headers[key] = value;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
headers["Accept-Encoding"] = "identity";
|
|
96
|
-
try {
|
|
97
|
-
const targetUrlObj = new URL(targetUrl);
|
|
98
|
-
headers.Host = targetUrlObj.host;
|
|
99
|
-
} catch {
|
|
100
|
-
return c.json({ error: "Invalid target URL" }, 400);
|
|
101
|
-
}
|
|
102
|
-
const body = method !== "GET" && method !== "HEAD" ? new Uint8Array(await c.req.arrayBuffer()).slice() : void 0;
|
|
103
|
-
const response = await fetch(targetUrl, {
|
|
104
|
-
method,
|
|
105
|
-
headers,
|
|
106
|
-
body,
|
|
107
|
-
redirect: "manual"
|
|
108
|
-
});
|
|
109
|
-
if (response.status >= 300 && response.status < 400) {
|
|
110
|
-
const location = response.headers.get("location");
|
|
111
|
-
if (location) {
|
|
112
|
-
const redirectUrl = new URL(location, targetUrl).toString();
|
|
113
|
-
if (!await isSafeProxyTarget(
|
|
114
|
-
redirectUrl,
|
|
115
|
-
options.allowLoopback ?? false
|
|
116
|
-
) || options.validateRequest && !await options.validateRequest(redirectUrl, c)) {
|
|
117
|
-
return c.json({ error: "Redirect target is not allowed" }, 403);
|
|
118
|
-
}
|
|
119
|
-
const redirectResponse = await fetch(redirectUrl, {
|
|
120
|
-
method,
|
|
121
|
-
headers,
|
|
122
|
-
body,
|
|
123
|
-
redirect: "manual"
|
|
124
|
-
});
|
|
125
|
-
const redirectHeaders = {};
|
|
126
|
-
redirectResponse.headers.forEach((value, key) => {
|
|
127
|
-
const lowerKey = key.toLowerCase();
|
|
128
|
-
if (lowerKey !== "content-encoding" && lowerKey !== "transfer-encoding" && lowerKey !== "content-length") {
|
|
129
|
-
redirectHeaders[key] = value;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
return new Response(redirectResponse.body, {
|
|
133
|
-
status: redirectResponse.status,
|
|
134
|
-
statusText: redirectResponse.statusText,
|
|
135
|
-
headers: redirectHeaders
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
const responseHeaders = {};
|
|
140
|
-
response.headers.forEach((value, key) => {
|
|
141
|
-
const lowerKey = key.toLowerCase();
|
|
142
|
-
if (lowerKey !== "content-encoding" && lowerKey !== "transfer-encoding" && lowerKey !== "content-length") {
|
|
143
|
-
responseHeaders[key] = value;
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
const contentType = response.headers.get("content-type") || "";
|
|
147
|
-
const upstreamContentLength = response.headers.get("content-length");
|
|
148
|
-
const isTrueStream = isOpenEndedSseResponse(
|
|
149
|
-
contentType,
|
|
150
|
-
upstreamContentLength
|
|
151
|
-
);
|
|
152
|
-
if (isTrueStream) {
|
|
153
|
-
return new Response(response.body, {
|
|
154
|
-
status: response.status,
|
|
155
|
-
statusText: response.statusText,
|
|
156
|
-
headers: responseHeaders
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
const bodyBuffer = await response.arrayBuffer();
|
|
160
|
-
responseHeaders["Content-Length"] = String(bodyBuffer.byteLength);
|
|
161
|
-
return new Response(bodyBuffer, {
|
|
162
|
-
status: response.status,
|
|
163
|
-
statusText: response.statusText,
|
|
164
|
-
headers: responseHeaders
|
|
165
|
-
});
|
|
166
|
-
} catch (error) {
|
|
167
|
-
const message = error instanceof Error ? error.message : "Unknown error";
|
|
168
|
-
const targetUrl = c.req.header("X-Target-URL");
|
|
169
|
-
const isConnectionRefused = error instanceof Error && (error.message.includes("ECONNREFUSED") || error.message.includes("fetch failed"));
|
|
170
|
-
if (isConnectionRefused) {
|
|
171
|
-
console.warn(
|
|
172
|
-
`[MCP Proxy] Connection refused to ${targetUrl || "unknown target"} - server may not be running`
|
|
173
|
-
);
|
|
174
|
-
} else {
|
|
175
|
-
console.error(
|
|
176
|
-
"[MCP Proxy] Request failed:",
|
|
177
|
-
message,
|
|
178
|
-
"\nTarget URL:",
|
|
179
|
-
targetUrl || "unknown",
|
|
180
|
-
"\nError:",
|
|
181
|
-
error
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
return c.json(
|
|
185
|
-
{
|
|
186
|
-
error: "Proxy request failed",
|
|
187
|
-
details: message,
|
|
188
|
-
targetUrl: targetUrl || "unknown"
|
|
189
|
-
},
|
|
190
|
-
500
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export {
|
|
197
|
-
isOpenEndedSseResponse,
|
|
198
|
-
mountMcpProxy
|
|
199
|
-
};
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
registerInspectorStaticAssets
|
|
3
|
-
} from "./chunk-M5TZA42I.js";
|
|
4
|
-
import {
|
|
5
|
-
getInspectorVersion
|
|
6
|
-
} from "./chunk-BD3ROXCC.js";
|
|
7
|
-
import {
|
|
8
|
-
inspectorStylesUrl,
|
|
9
|
-
resolveInspectorAssetUrls,
|
|
10
|
-
withInspectorCacheBust
|
|
11
|
-
} from "./chunk-H6ZCIKBS.js";
|
|
12
|
-
import {
|
|
13
|
-
registerInspectorFaviconStatic
|
|
14
|
-
} from "./chunk-J4FNYLBF.js";
|
|
15
|
-
import {
|
|
16
|
-
renderInspectorFaviconLinks
|
|
17
|
-
} from "./chunk-WFT4JHYI.js";
|
|
18
|
-
|
|
19
|
-
// src/server/cdn-shell.ts
|
|
20
|
-
var INSPECTOR_VERSION = getInspectorVersion();
|
|
21
|
-
var OAUTH_POPUP_CLOSED_HTML = `<!doctype html>
|
|
22
|
-
<html lang="en"><head><meta charset="utf-8"><title>Signed in</title><meta name="robots" content="noindex"><style>html,body{margin:0;height:100%;display:flex;align-items:center;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#4b5563;background:#fff}</style></head>
|
|
23
|
-
<body><div>Signed in. You can close this window.</div>
|
|
24
|
-
<script>try{if(window.opener&&!window.opener.closed)window.opener.postMessage({type:"manufact:oauth-complete"},"*")}catch(e){}try{window.close()}catch(e){}</script>
|
|
25
|
-
</body></html>`;
|
|
26
|
-
function generateCdnShellHtml(config, basePath, assets) {
|
|
27
|
-
const scripts = [];
|
|
28
|
-
if (config?.basePath !== void 0) {
|
|
29
|
-
scripts.push(
|
|
30
|
-
`<script>window.__MCP_BASE_PATH__ = ${JSON.stringify(config.basePath)};</script>`
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
if (config?.devMode) {
|
|
34
|
-
scripts.push(`<script>window.__MCP_DEV_MODE__ = true;</script>`);
|
|
35
|
-
}
|
|
36
|
-
if (config?.sandboxOrigin) {
|
|
37
|
-
scripts.push(
|
|
38
|
-
`<script>window.__MCP_SANDBOX_ORIGIN__ = ${JSON.stringify(config.sandboxOrigin)};</script>`
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
if (config?.proxyUrl !== void 0) {
|
|
42
|
-
scripts.push(
|
|
43
|
-
`<script>window.__MCP_PROXY_URL__ = ${JSON.stringify(config.proxyUrl)};</script>`
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
if (config?.inspectorMode) {
|
|
47
|
-
scripts.push(
|
|
48
|
-
`<script>window.__MCP_INSPECTOR_MODE__ = ${JSON.stringify(config.inspectorMode)};</script>`
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
if (config?.manufactChatUrl) {
|
|
52
|
-
scripts.push(
|
|
53
|
-
`<script>window.__MANUFACT_CHAT_URL__ = ${JSON.stringify(config.manufactChatUrl)};</script>`
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
if (config?.disableTelemetry) {
|
|
57
|
-
scripts.push(
|
|
58
|
-
`<script>window.__MCP_USE_ANONYMIZED_TELEMETRY__ = false;try{localStorage.setItem("MCP_USE_ANONYMIZED_TELEMETRY","false");}catch(e){}</script>`
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
const runtimeScripts = scripts.join("\n ");
|
|
62
|
-
return `<!doctype html>
|
|
63
|
-
<html lang="en">
|
|
64
|
-
<head>
|
|
65
|
-
<meta charset="UTF-8" />
|
|
66
|
-
${renderInspectorFaviconLinks(basePath)}
|
|
67
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
68
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
69
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
70
|
-
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
71
|
-
<link rel="stylesheet" href="${assets.cssUrl}" />
|
|
72
|
-
<title>Inspector | mcp-use</title>
|
|
73
|
-
<meta name="description" content="Free, open-source MCP Inspector by mcp-use. Connect to any MCP server, test tools, prompts, and resources, inspect RPC logs, and debug MCP apps \u2014 all in your browser." />
|
|
74
|
-
<style>
|
|
75
|
-
:root { color-scheme: light dark; }
|
|
76
|
-
html, body { height: 100%; margin: 0; background-color: #f3f3f3; }
|
|
77
|
-
#root { height: 100%; }
|
|
78
|
-
.mcp-boot {
|
|
79
|
-
display: flex;
|
|
80
|
-
height: 100%;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
background-color: #f3f3f3;
|
|
84
|
-
}
|
|
85
|
-
.mcp-boot-inner {
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
align-items: center;
|
|
89
|
-
gap: 16px;
|
|
90
|
-
}
|
|
91
|
-
.mcp-boot-spinner {
|
|
92
|
-
width: 32px;
|
|
93
|
-
height: 32px;
|
|
94
|
-
color: #52525b;
|
|
95
|
-
animation: mcp-boot-spin 1s linear infinite;
|
|
96
|
-
}
|
|
97
|
-
.mcp-boot-label {
|
|
98
|
-
margin: 0;
|
|
99
|
-
font-family: Ubuntu, sans-serif;
|
|
100
|
-
font-size: 0.875rem;
|
|
101
|
-
line-height: 1.25rem;
|
|
102
|
-
color: #52525b;
|
|
103
|
-
}
|
|
104
|
-
@keyframes mcp-boot-spin {
|
|
105
|
-
to { transform: rotate(360deg); }
|
|
106
|
-
}
|
|
107
|
-
@media (prefers-color-scheme: dark) {
|
|
108
|
-
html, body { background-color: #000; }
|
|
109
|
-
.mcp-boot { background-color: #000; }
|
|
110
|
-
.mcp-boot-spinner, .mcp-boot-label { color: #a1a1aa; }
|
|
111
|
-
}
|
|
112
|
-
</style>
|
|
113
|
-
<script>window.__INSPECTOR_VERSION__ = ${JSON.stringify(INSPECTOR_VERSION)};</script>
|
|
114
|
-
${runtimeScripts}
|
|
115
|
-
</head>
|
|
116
|
-
<body>
|
|
117
|
-
<script>
|
|
118
|
-
if (typeof window !== "undefined" && typeof window.process === "undefined") {
|
|
119
|
-
window.process = {
|
|
120
|
-
env: {},
|
|
121
|
-
platform: "browser",
|
|
122
|
-
browser: true,
|
|
123
|
-
version: "v18.0.0",
|
|
124
|
-
versions: { node: "18.0.0" },
|
|
125
|
-
cwd: () => "/",
|
|
126
|
-
nextTick: (fn, ...args) => queueMicrotask(() => fn(...args)),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
</script>
|
|
130
|
-
<div id="root">
|
|
131
|
-
<div class="mcp-boot">
|
|
132
|
-
<div class="mcp-boot-inner">
|
|
133
|
-
<svg
|
|
134
|
-
class="mcp-boot-spinner"
|
|
135
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
136
|
-
viewBox="0 0 24 24"
|
|
137
|
-
fill="none"
|
|
138
|
-
stroke="currentColor"
|
|
139
|
-
stroke-width="2"
|
|
140
|
-
stroke-linecap="round"
|
|
141
|
-
stroke-linejoin="round"
|
|
142
|
-
role="status"
|
|
143
|
-
aria-label="Loading"
|
|
144
|
-
>
|
|
145
|
-
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
146
|
-
</svg>
|
|
147
|
-
<p class="mcp-boot-label">Connecting to MCP server...</p>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
<script type="module" src="${assets.jsUrl}"></script>
|
|
152
|
-
</body>
|
|
153
|
-
</html>`;
|
|
154
|
-
}
|
|
155
|
-
function registerInspectorCdnShell(app, config, basePath = "") {
|
|
156
|
-
const assets = resolveInspectorAssetUrls(config?.inspectorMode, basePath);
|
|
157
|
-
const p = (suffix) => `${basePath}${suffix}`;
|
|
158
|
-
const effectiveConfig = {
|
|
159
|
-
...config,
|
|
160
|
-
basePath: config?.basePath ?? basePath,
|
|
161
|
-
proxyUrl: config?.proxyUrl !== void 0 ? config.proxyUrl : p("/inspector/api/proxy"),
|
|
162
|
-
disableTelemetry: config?.disableTelemetry ?? process.env.MCP_USE_ANONYMIZED_TELEMETRY === "false"
|
|
163
|
-
};
|
|
164
|
-
const serveShell = (c) => {
|
|
165
|
-
const base = resolveInspectorAssetUrls(config?.inspectorMode, basePath);
|
|
166
|
-
const jsUrl = withInspectorCacheBust(base.jsUrl);
|
|
167
|
-
return c.html(
|
|
168
|
-
generateCdnShellHtml(effectiveConfig, basePath, {
|
|
169
|
-
jsUrl,
|
|
170
|
-
cssUrl: inspectorStylesUrl(jsUrl)
|
|
171
|
-
})
|
|
172
|
-
);
|
|
173
|
-
};
|
|
174
|
-
registerInspectorFaviconStatic(app, basePath);
|
|
175
|
-
app.get(
|
|
176
|
-
p("/inspector/oauth-popup-closed.html"),
|
|
177
|
-
(c) => c.html(OAUTH_POPUP_CLOSED_HTML)
|
|
178
|
-
);
|
|
179
|
-
app.get(p("/inspector"), serveShell);
|
|
180
|
-
app.get(`${p("/inspector")}/`, serveShell);
|
|
181
|
-
const apiPrefix = p("/inspector/api/");
|
|
182
|
-
app.get(p("/inspector/*"), (c) => {
|
|
183
|
-
if (c.req.path.startsWith(apiPrefix)) {
|
|
184
|
-
return c.notFound();
|
|
185
|
-
}
|
|
186
|
-
return serveShell(c);
|
|
187
|
-
});
|
|
188
|
-
app.post(p("/inspector/*"), (c) => {
|
|
189
|
-
if (c.req.path.startsWith(apiPrefix)) {
|
|
190
|
-
return c.notFound();
|
|
191
|
-
}
|
|
192
|
-
return serveShell(c);
|
|
193
|
-
});
|
|
194
|
-
if (basePath === "") {
|
|
195
|
-
app.get("/", (c) => {
|
|
196
|
-
const url = new URL(c.req.url);
|
|
197
|
-
return c.redirect(`${p("/inspector")}${url.search}`);
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
if (assets.useLocal) {
|
|
201
|
-
registerInspectorStaticAssets(app, basePath);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export {
|
|
206
|
-
registerInspectorCdnShell
|
|
207
|
-
};
|
package/dist/server/cli.d.ts
DELETED
package/dist/server/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/server/cli.ts"],"names":[],"mappings":""}
|