@mcp-use/inspector 20.0.0-beta.1 → 20.0.0-beta.11
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 +7 -18
- package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-D1bZ5_-l.js} +80 -79
- package/dist/cdn/ChatTab-KJDI5ycl.js +6811 -0
- package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-BjF73mGX.js} +74 -73
- package/dist/cdn/ConnectionSettingsForm-CAvpobCm.js +929 -0
- package/dist/cdn/ConnectionSettingsTab-Nhdvdpk5.js +151 -0
- package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-PEmEDvC5.js} +48 -47
- package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-NtUiZclE.js} +26 -26
- package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-BBKCdfmK.js} +2 -22
- package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BJqMz7Ny.js} +23 -23
- package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-DzmTtN1e.js} +21 -20
- package/dist/cdn/{WidgetWrapper-D29YDxIu.js → MCPAppsDebugControls-BIiauZ_A.js} +583 -620
- package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-ChbbjFIT.js} +3 -3
- package/dist/cdn/MarkdownRenderer-DZuWYsja.js +3610 -0
- package/dist/cdn/McpAppsViewPanel-BTOKcnV3.js +56 -0
- package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-B7uebqMV.js} +13 -13
- package/dist/cdn/{OAuthCallback-k3oeLtIC.js → OAuthCallback-CBWWNg2N.js} +3 -3
- package/dist/cdn/PromptsTab-DuP66kUg.js +902 -0
- package/dist/cdn/{ResourcesTab-KfamsM6-.js → ResourcesTab-BJxaJgKU.js} +106 -124
- package/dist/cdn/{SamplingTab-vcufuK24.js → SamplingTab-Bfnd-TZ-.js} +43 -42
- package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-BM3VhSLf.js} +14 -14
- package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-Q3n3YRtE.js} +8 -9
- package/dist/cdn/{ToolsTab-DRjcZnpu.js → ToolsTab-DGBRXBW-.js} +671 -693
- package/dist/cdn/{ViewPreview-B_onhcUB.js → ViewPreview-DPWKMeND.js} +5 -4
- package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
- package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
- package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
- package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
- package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
- package/dist/cdn/button-CB4uOoUV.js +2509 -0
- package/dist/cdn/{card-DqjqAq0o.js → card-BA-DQk-G.js} +2 -2
- package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-kwVa4gRX.js} +4 -4
- package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
- package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
- package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
- package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-CJGnC5Ag.js} +165 -165
- package/dist/cdn/{dist-mRDqCgKU.js → dist-BgB6gR-d.js} +116 -114
- package/dist/cdn/{dist-DjXr_YO3.js → dist-CTJnCYmk.js} +1 -1
- package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
- package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
- package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
- package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
- package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
- package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-Ds41Irtb.js} +120 -201
- package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
- package/dist/cdn/{input-BLxOA7V-.js → input-BCpgLXU1.js} +3039 -3600
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +7797 -7857
- package/dist/cdn/{label-CBvG613A.js → label-A0UGV8FE.js} +8 -8
- package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
- package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
- package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
- package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
- package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
- package/dist/cdn/{not-found-BcNNsTjS.js → not-found-BajFyZpp.js} +4 -6
- package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
- package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
- package/dist/cdn/{react-BxO-uEDZ.js → react-BtzXvzGh.js} +855 -853
- package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
- package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
- package/dist/cdn/{select-BZ_IoKxg.js → select-CCFHjOGk.js} +843 -842
- package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
- package/dist/cdn/{shared-uMiV6Fx1.js → shared-CJVHJhag.js} +35 -35
- package/dist/cdn/sheet-oyq1mIyg.js +2078 -0
- package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
- package/dist/cdn/{spinner-CWcJhIY_.js → spinner-Be1GlSGX.js} +3 -3
- package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
- package/dist/cdn/{switch-DtQOLb9R.js → switch-DHXEA_N5.js} +211 -210
- package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-Dubd6Kj8.js} +259 -258
- package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-B6Xh2ktb.js} +38 -70
- package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-CwmI8_uI.js} +2 -2
- package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
- package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
- package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-Dhnm-7el.js} +3 -3
- package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-CLBnK-B4.js} +73 -46
- package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
- package/dist/cdn/{useViewHostProps-Dr6W2ooF.js → useViewHostProps-DRWpI0-w.js} +124 -108
- package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
- package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
- package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
- package/dist/cli.js +87 -14
- package/dist/client/auth/manufact-auth.d.ts +3 -1
- package/dist/client/auth/manufact-auth.d.ts.map +1 -1
- package/dist/client/components/ChatTab.d.ts +1 -8
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/ResourcesTab.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/ChatHeader.d.ts +7 -2
- package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
- package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
- package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
- package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
- package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
- package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
- package/dist/client/components/chat/MessageList.d.ts +1 -0
- package/dist/client/components/chat/MessageList.d.ts.map +1 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
- package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
- package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
- package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
- package/dist/client/components/chat/partialToolArgs.d.ts +10 -0
- package/dist/client/components/chat/partialToolArgs.d.ts.map +1 -0
- package/dist/client/components/chat/providerMeta.d.ts +11 -0
- package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
- package/dist/client/components/chat/types.d.ts +1 -0
- package/dist/client/components/chat/types.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessages.d.ts +7 -5
- package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
- package/dist/client/components/chat/useConfig.d.ts +1 -1
- package/dist/client/components/chat/useConfig.d.ts.map +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
- package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
- package/dist/client/components/ui/chat-message.d.ts +1 -1
- package/dist/client/components/ui/chat-message.d.ts.map +1 -1
- package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
- package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
- package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/context/InspectorContext.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +1 -11
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
- package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
- package/dist/client/index.js +4202 -3491
- package/dist/client/telemetry/init.d.ts.map +1 -1
- package/dist/client/telemetry/utils.d.ts.map +1 -1
- package/dist/client/utils/servers.d.ts +5 -0
- package/dist/client/utils/servers.d.ts.map +1 -1
- package/dist/server/asset-urls.d.ts +4 -0
- package/dist/server/asset-urls.d.ts.map +1 -1
- package/dist/server/asset-urls.js +7 -3
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +3 -3
- package/dist/server/{chunk-Y2GBQOQW.js → chunk-7BTEIKSA.js} +2 -9
- package/dist/server/{chunk-VDUV6LR6.js → chunk-FJ7P3RIU.js} +75 -5
- package/dist/server/{chunk-KBVKS4J5.js → chunk-H6ZCIKBS.js} +10 -0
- package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
- package/dist/server/{chunk-IXYK6ZOY.js → chunk-PY5HM5DW.js} +2 -2
- package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
- package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
- package/dist/server/cli.js +5 -5
- package/dist/server/create-dev-api-app.js +3 -3
- package/dist/server/dev-callback-redirect.d.ts +3 -0
- package/dist/server/dev-callback-redirect.d.ts.map +1 -0
- package/dist/server/dev-callback-redirect.js +18 -0
- package/dist/server/index.js +6 -6
- package/dist/server/middleware.js +6 -6
- package/dist/server/proxy/index.js +1 -1
- package/dist/server/proxy/mcp-proxy.d.ts +2 -0
- package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
- package/dist/server/proxy/mcp-proxy.js +3 -1
- package/dist/server/proxy-routes.js +2 -2
- package/dist/server/server.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.js +3 -3
- package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
- package/dist/web/assets/ChatTab-B_CvwC4L.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-OhY1ex8u.js +1 -0
- package/dist/web/assets/ElicitationTab-CwkUbGUo.js +1 -0
- package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
- package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
- package/dist/web/assets/MCPAppsDebugControls-SlpRw9KD.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-DCLbW-mz.js → ManufactOAuthCallback-DgIxvi85.js} +1 -1
- package/dist/web/assets/MarkdownRenderer-B_n2JuA3.js +47 -0
- package/dist/web/assets/McpAppsViewPanel-CR8zhRi4.js +1 -0
- package/dist/web/assets/{NotificationsTab-JevzvJTg.js → NotificationsTab-DeGCkKLB.js} +1 -1
- package/dist/web/assets/{OAuthCallback-BjcRxLh5.js → OAuthCallback-DhFgvjS_.js} +1 -1
- package/dist/web/assets/PromptsTab-DZVkm_vn.js +15 -0
- package/dist/web/assets/ResourcesTab-5mZflymU.js +2 -0
- package/dist/web/assets/SamplingTab-TWoyNn8-.js +1 -0
- package/dist/web/assets/ServerMetadataTab-DZZpijCY.js +1 -0
- package/dist/web/assets/ToolsTab-DEZiEf9V.js +8 -0
- package/dist/web/assets/ViewPreview-ymDMBa0M.js +1 -0
- package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
- package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
- package/dist/web/assets/button-C8Xa2k4x.js +1 -0
- package/dist/web/assets/checkbox-Wgm0SaKL.js +1 -0
- package/dist/web/assets/code-B14rVdNt.js +1 -0
- package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
- package/dist/web/assets/dist-Bl7zPiY1.js +21 -0
- package/dist/web/assets/index-CpswgjB5.js +499 -0
- package/dist/web/assets/index-bCIH1Sdx.css +1 -0
- package/dist/web/assets/input-C0OQCUZy.js +1 -0
- package/dist/web/assets/{label-B5Q_Zr8M.js → label-CI7JWQOo.js} +1 -1
- package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
- package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
- package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
- package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
- package/dist/web/assets/select-D6jzbLJn.js +1 -0
- package/dist/web/assets/shared-BtvKT_T4.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-C5J9sUzi.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/useConfig-CZkuy4Iy.js +1 -0
- package/dist/web/assets/useViewHostProps-nCaYmcbd.js +1 -0
- package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
- package/dist/web/index.html +10 -11
- package/package.json +5 -12
- package/dist/cdn/ChatTab-D8uwCHAf.js +0 -13218
- package/dist/cdn/ConnectionSettingsForm-BNS6bOMD.js +0 -873
- package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +0 -145
- package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
- package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
- package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
- package/dist/cdn/pdf-CxFT9FER.js +0 -16291
- package/dist/cdn/popover-C_SSrXT0.js +0 -2005
- package/dist/cdn/sheet-CerCdhxz.js +0 -78
- package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
- package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
- package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
- package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
- package/dist/web/assets/AnimatePresence-CthXziG2.js +0 -9
- package/dist/web/assets/ChatTab-Cy8eyFYI.js +0 -460
- package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +0 -1
- package/dist/web/assets/ElicitationTab-wDKgU1qL.js +0 -1
- package/dist/web/assets/FormContext-Cqc_A12u.js +0 -1
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
- package/dist/web/assets/PromptsTab-DsQVOjKH.js +0 -61
- package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +0 -2
- package/dist/web/assets/SamplingTab-BrcF1zJF.js +0 -1
- package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +0 -1
- package/dist/web/assets/ToolsTab-DJWF7Q_x.js +0 -8
- package/dist/web/assets/ViewPreview-jgeU7bY9.js +0 -1
- package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +0 -34
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
- package/dist/web/assets/checkbox-BA-XURSj.js +0 -1
- package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +0 -131
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/dist-BcAQZluc.js +0 -21
- package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +0 -1
- package/dist/web/assets/index-BjH-Qp85.css +0 -1
- package/dist/web/assets/index-D2UxaT9v.js +0 -475
- package/dist/web/assets/input-CjmxOFr6.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +0 -1
- package/dist/web/assets/pdf-CuwKm9zO.js +0 -54
- package/dist/web/assets/select-C0xlfLAa.js +0 -1
- package/dist/web/assets/shared-DQE60Op-.js +0 -1
- package/dist/web/assets/sheet-7TIkLdpr.js +0 -1
- package/dist/web/assets/tabs-subtle-AkJZvdxS.js +0 -1
- package/dist/web/assets/textarea-Ci09-en6.js +0 -1
- package/dist/web/assets/useConfig-Qglo4xs1.js +0 -1
- package/dist/web/assets/useMCPPrompts-USLYc1I4.js +0 -1
- package/dist/web/assets/useViewHostProps-DXAD1g7g.js +0 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { n } from "./createLucideIcon-BONxC1L5.js";
|
|
3
|
+
import { t as r } from "./button-CB4uOoUV.js";
|
|
4
|
+
import { t as i } from "./x-EilKPiCX.js";
|
|
5
|
+
import { d as a } from "./react-BtzXvzGh.js";
|
|
6
|
+
import { n as o, r as s } from "./servers-Dd0Vcp81.js";
|
|
7
|
+
import { i as c, r as l, s as u, t as d } from "./WidgetDebugContext-B6yoOVVV.js";
|
|
4
8
|
//#region src/client/console-log-bus.ts
|
|
5
|
-
var
|
|
9
|
+
var f = /* @__PURE__ */ e(t(), 1), p = new class {
|
|
6
10
|
listeners = /* @__PURE__ */ new Set();
|
|
7
11
|
publish(e) {
|
|
8
12
|
this.listeners.forEach((t) => {
|
|
@@ -19,7 +23,7 @@ var s = /* @__PURE__ */ e(t(), 1), c = new class {
|
|
|
19
23
|
}();
|
|
20
24
|
//#endregion
|
|
21
25
|
//#region src/client/mcp-apps/csp.ts
|
|
22
|
-
function
|
|
26
|
+
function m(e) {
|
|
23
27
|
let t = (e) => e.replace(/['"<>;]/g, "").trim(), n = (e.connectDomains || []).map(t).filter(Boolean), r = (e.resourceDomains || []).map(t).filter(Boolean), i = (e.frameDomains || []).map(t).filter(Boolean), a = (e.baseUriDomains || []).map(t).filter(Boolean), o = n.length > 0 ? n.join(" ") : "'none'", s = r.length > 0 ? [
|
|
24
28
|
"data:",
|
|
25
29
|
"blob:",
|
|
@@ -38,7 +42,7 @@ function l(e) {
|
|
|
38
42
|
`base-uri ${l}`
|
|
39
43
|
].join("; ");
|
|
40
44
|
}
|
|
41
|
-
function
|
|
45
|
+
function h(e) {
|
|
42
46
|
if (!e) return {};
|
|
43
47
|
let t = {};
|
|
44
48
|
for (let n of e.split(";")) {
|
|
@@ -47,13 +51,13 @@ function u(e) {
|
|
|
47
51
|
}
|
|
48
52
|
return t;
|
|
49
53
|
}
|
|
50
|
-
function
|
|
51
|
-
return e ?
|
|
54
|
+
function g(e) {
|
|
55
|
+
return e ? h(m(e)) : {};
|
|
52
56
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
57
|
+
function _(e) {
|
|
58
|
+
return h(e);
|
|
55
59
|
}
|
|
56
|
-
function
|
|
60
|
+
function v(e) {
|
|
57
61
|
let t = {};
|
|
58
62
|
for (let n of e) {
|
|
59
63
|
let e = (n.effectiveDirective || n.directive || "unknown").toLowerCase(), r = n.blockedUri || "(inline)";
|
|
@@ -61,7 +65,7 @@ function p(e) {
|
|
|
61
65
|
}
|
|
62
66
|
return t;
|
|
63
67
|
}
|
|
64
|
-
function
|
|
68
|
+
function y(e, t) {
|
|
65
69
|
return Array.from(new Set([...Object.keys(e), ...Object.keys(t)])).sort().map((n) => {
|
|
66
70
|
let r = e[n] ?? [], i = t[n] ?? [], a = Array.from(new Set(r)).sort(), o = Array.from(new Set(i)).sort();
|
|
67
71
|
return {
|
|
@@ -72,7 +76,7 @@ function m(e, t) {
|
|
|
72
76
|
};
|
|
73
77
|
});
|
|
74
78
|
}
|
|
75
|
-
function
|
|
79
|
+
function b(e) {
|
|
76
80
|
let t = [];
|
|
77
81
|
e.declared || t.push({
|
|
78
82
|
severity: "warning",
|
|
@@ -83,7 +87,7 @@ function h(e) {
|
|
|
83
87
|
title: "Permissive mode",
|
|
84
88
|
detail: "Observed violations are requests a declared policy would block."
|
|
85
89
|
});
|
|
86
|
-
let n =
|
|
90
|
+
let n = v(e.violations);
|
|
87
91
|
for (let [r, i] of Object.entries(n)) t.push({
|
|
88
92
|
severity: e.mode === "permissive" ? "warning" : "error",
|
|
89
93
|
title: `${i.length} blocked by ${r}`,
|
|
@@ -97,8 +101,8 @@ function h(e) {
|
|
|
97
101
|
}
|
|
98
102
|
//#endregion
|
|
99
103
|
//#region src/client/mcp-apps/logging-transport.ts
|
|
100
|
-
function
|
|
101
|
-
let
|
|
104
|
+
function x(e, t, n) {
|
|
105
|
+
let r = {
|
|
102
106
|
get sessionId() {
|
|
103
107
|
return e.sessionId;
|
|
104
108
|
},
|
|
@@ -109,15 +113,15 @@ function g(e, t, n) {
|
|
|
109
113
|
async start() {
|
|
110
114
|
return e.start();
|
|
111
115
|
},
|
|
112
|
-
async send(
|
|
113
|
-
return
|
|
116
|
+
async send(r, i) {
|
|
117
|
+
return c.publish({
|
|
114
118
|
source: "widget",
|
|
115
119
|
serverId: t,
|
|
116
120
|
widgetId: n,
|
|
117
121
|
direction: "send",
|
|
118
122
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
119
|
-
message:
|
|
120
|
-
}), e.send(
|
|
123
|
+
message: r
|
|
124
|
+
}), e.send(r, i);
|
|
121
125
|
},
|
|
122
126
|
async close() {
|
|
123
127
|
return e.close();
|
|
@@ -126,29 +130,29 @@ function g(e, t, n) {
|
|
|
126
130
|
onerror: void 0,
|
|
127
131
|
onmessage: void 0
|
|
128
132
|
};
|
|
129
|
-
return Object.defineProperty(
|
|
133
|
+
return Object.defineProperty(r, "onmessage", {
|
|
130
134
|
configurable: !0,
|
|
131
135
|
enumerable: !0,
|
|
132
136
|
get() {
|
|
133
137
|
return e.onmessage;
|
|
134
138
|
},
|
|
135
|
-
set(
|
|
136
|
-
if (!
|
|
139
|
+
set(r) {
|
|
140
|
+
if (!r) {
|
|
137
141
|
e.onmessage = void 0;
|
|
138
142
|
return;
|
|
139
143
|
}
|
|
140
|
-
e.onmessage = (e,
|
|
141
|
-
|
|
144
|
+
e.onmessage = (e, i) => {
|
|
145
|
+
c.publish({
|
|
142
146
|
source: "widget",
|
|
143
147
|
serverId: t,
|
|
144
148
|
widgetId: n,
|
|
145
149
|
direction: "receive",
|
|
146
150
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
147
151
|
message: e
|
|
148
|
-
}),
|
|
152
|
+
}), r(e, i);
|
|
149
153
|
};
|
|
150
154
|
}
|
|
151
|
-
}), Object.defineProperty(
|
|
155
|
+
}), Object.defineProperty(r, "onclose", {
|
|
152
156
|
configurable: !0,
|
|
153
157
|
enumerable: !0,
|
|
154
158
|
get() {
|
|
@@ -157,7 +161,7 @@ function g(e, t, n) {
|
|
|
157
161
|
set(t) {
|
|
158
162
|
e.onclose = t;
|
|
159
163
|
}
|
|
160
|
-
}), Object.defineProperty(
|
|
164
|
+
}), Object.defineProperty(r, "onerror", {
|
|
161
165
|
configurable: !0,
|
|
162
166
|
enumerable: !0,
|
|
163
167
|
get() {
|
|
@@ -166,33 +170,30 @@ function g(e, t, n) {
|
|
|
166
170
|
set(t) {
|
|
167
171
|
e.onerror = t;
|
|
168
172
|
}
|
|
169
|
-
}),
|
|
173
|
+
}), r;
|
|
170
174
|
}
|
|
171
175
|
//#endregion
|
|
172
176
|
//#region src/client/hooks/useDeviceViewport.ts
|
|
173
|
-
function
|
|
174
|
-
return (0,
|
|
175
|
-
maxWidth:
|
|
176
|
-
maxHeight:
|
|
177
|
-
}
|
|
178
|
-
maxWidth: o[e].width,
|
|
179
|
-
maxHeight: o[e].height
|
|
180
|
-
}, [e, t]);
|
|
177
|
+
function S(e) {
|
|
178
|
+
return (0, f.useMemo)(() => ({
|
|
179
|
+
maxWidth: d[e].width,
|
|
180
|
+
maxHeight: d[e].height
|
|
181
|
+
}), [e]);
|
|
181
182
|
}
|
|
182
183
|
//#endregion
|
|
183
184
|
//#region src/client/hooks/useMcpAppsHostContext.ts
|
|
184
|
-
function
|
|
185
|
+
function C(e, t) {
|
|
185
186
|
return e.getPropertyValue(t).trim();
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function w() {
|
|
188
189
|
if (typeof window > "u") return {};
|
|
189
190
|
let e = getComputedStyle(document.documentElement), t = {}, n = (e, n) => {
|
|
190
191
|
n && (t[e] = n);
|
|
191
|
-
}, r =
|
|
192
|
+
}, r = C(e, "--background"), i = C(e, "--foreground"), a = C(e, "--card"), o = C(e, "--muted"), s = C(e, "--muted-foreground"), c = C(e, "--primary"), l = C(e, "--primary-foreground"), u = C(e, "--secondary"), d = C(e, "--accent"), f = C(e, "--accent-foreground"), p = C(e, "--destructive"), m = C(e, "--border"), h = C(e, "--ring"), g = C(e, "--radius");
|
|
192
193
|
return n("--color-background-primary", r), n("--color-background-secondary", a || u), n("--color-background-tertiary", o || d), n("--color-background-inverse", c), n("--color-background-ghost", d || o), n("--color-background-danger", p), n("--color-text-primary", i), n("--color-text-secondary", s), n("--color-text-tertiary", s), n("--color-text-inverse", l), n("--color-text-ghost", f || s), n("--color-text-danger", p), n("--color-border-primary", m), n("--color-border-secondary", m), n("--color-border-tertiary", m), n("--color-ring-primary", h || m), n("--border-radius-sm", g), n("--border-radius-md", g), n("--border-radius-lg", g), n("--font-sans", "system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif"), t;
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
return (0,
|
|
195
|
+
function T({ theme: e, displayMode: t, maxWidth: n, maxHeight: r, playground: i, deviceType: a, toolCallId: o, toolName: s, toolInput: c, toolOutput: l, toolMetadata: u, tool: d }) {
|
|
196
|
+
return (0, f.useMemo)(() => ({
|
|
196
197
|
theme: e,
|
|
197
198
|
displayMode: t,
|
|
198
199
|
availableDisplayModes: [
|
|
@@ -210,10 +211,10 @@ function b({ theme: e, displayMode: t, maxWidth: n, maxHeight: r, playground: i,
|
|
|
210
211
|
userAgent: "mcp-use-inspector/0.16.2",
|
|
211
212
|
deviceCapabilities: i.capabilities,
|
|
212
213
|
safeAreaInsets: i.safeAreaInsets,
|
|
213
|
-
styles: { variables:
|
|
214
|
-
toolInfo:
|
|
214
|
+
styles: { variables: w() },
|
|
215
|
+
toolInfo: d ? {
|
|
215
216
|
id: o,
|
|
216
|
-
tool:
|
|
217
|
+
tool: d
|
|
217
218
|
} : void 0
|
|
218
219
|
}), [
|
|
219
220
|
e,
|
|
@@ -226,24 +227,24 @@ function b({ theme: e, displayMode: t, maxWidth: n, maxHeight: r, playground: i,
|
|
|
226
227
|
i.safeAreaInsets,
|
|
227
228
|
a,
|
|
228
229
|
o,
|
|
230
|
+
s,
|
|
229
231
|
c,
|
|
230
232
|
l,
|
|
231
233
|
u,
|
|
232
|
-
d
|
|
233
|
-
f
|
|
234
|
+
d
|
|
234
235
|
]);
|
|
235
236
|
}
|
|
236
237
|
//#endregion
|
|
237
|
-
//#region src/client/hooks/useViewHostProps.
|
|
238
|
-
var
|
|
238
|
+
//#region src/client/hooks/useViewHostProps.tsx
|
|
239
|
+
var E = n(), D = {
|
|
239
240
|
name: "mcp-use-inspector",
|
|
240
241
|
version: "11.0.0"
|
|
241
242
|
};
|
|
242
|
-
function
|
|
243
|
-
let n = (0,
|
|
243
|
+
function O(e, t) {
|
|
244
|
+
let n = (0, f.useRef)(e);
|
|
244
245
|
n.current = e;
|
|
245
|
-
let r = (0,
|
|
246
|
-
return r.current = t, (0,
|
|
246
|
+
let r = (0, f.useRef)(t);
|
|
247
|
+
return r.current = t, (0, f.useMemo)(() => e ? {
|
|
247
248
|
callTool: (e, t, r) => n.current.callTool(e, t ?? {}, r),
|
|
248
249
|
readResource: (e) => r.current(e),
|
|
249
250
|
get resources() {
|
|
@@ -251,34 +252,34 @@ function S(e, t) {
|
|
|
251
252
|
}
|
|
252
253
|
} : null, [e?.id]);
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
-
let { serverId: t, viewId:
|
|
256
|
-
theme:
|
|
257
|
-
displayMode:
|
|
258
|
-
maxWidth:
|
|
259
|
-
maxHeight:
|
|
260
|
-
playground:
|
|
261
|
-
deviceType:
|
|
262
|
-
toolCallId:
|
|
263
|
-
toolName:
|
|
264
|
-
toolInput:
|
|
265
|
-
toolOutput:
|
|
266
|
-
toolMetadata:
|
|
267
|
-
tool:
|
|
268
|
-
}),
|
|
269
|
-
|
|
270
|
-
let
|
|
255
|
+
function k(e) {
|
|
256
|
+
let { serverId: t, viewId: n, resourceUri: c, toolName: d, toolInput: h, toolOutput: g, toolMetadata: _, tool: v, readResource: y, displayMode: b, onDisplayModeChange: C, inlineMaxWidth: w, chromeless: k, onReady: A } = e, { resolvedTheme: j } = u(), { servers: M } = a(), N = M.find((e) => e.id === t), { playground: P, addWidget: F, removeWidget: I, addCspViolation: L, setWidgetModelContext: R, setWidgetDeclaredCsp: z } = l(), B = P.cspMode === "permissive" ? "permissive" : "widget-declared", { maxWidth: V, maxHeight: H } = S(P.deviceType), U = T({
|
|
257
|
+
theme: j,
|
|
258
|
+
displayMode: b ?? "inline",
|
|
259
|
+
maxWidth: V,
|
|
260
|
+
maxHeight: H,
|
|
261
|
+
playground: P,
|
|
262
|
+
deviceType: P.deviceType,
|
|
263
|
+
toolCallId: n,
|
|
264
|
+
toolName: d,
|
|
265
|
+
toolInput: h,
|
|
266
|
+
toolOutput: g,
|
|
267
|
+
toolMetadata: _,
|
|
268
|
+
tool: v
|
|
269
|
+
}), W = (0, f.useRef)(U);
|
|
270
|
+
W.current = U;
|
|
271
|
+
let G = O(N, y), K = (0, f.useMemo)(() => G ? {
|
|
271
272
|
kind: "live",
|
|
272
|
-
connection:
|
|
273
|
-
resourceUri:
|
|
274
|
-
} : null, [
|
|
275
|
-
|
|
276
|
-
toolName:
|
|
273
|
+
connection: G,
|
|
274
|
+
resourceUri: c
|
|
275
|
+
} : null, [G, c]), q = (0, f.useCallback)((e) => x(e, t, n), [t, n]), J = (0, f.useCallback)((e) => {
|
|
276
|
+
F(n, {
|
|
277
|
+
toolName: d,
|
|
277
278
|
protocol: "mcp-apps",
|
|
278
|
-
hostContext:
|
|
279
|
+
hostContext: W.current
|
|
279
280
|
});
|
|
280
|
-
let t = e.declaredCsp,
|
|
281
|
-
|
|
281
|
+
let t = e.declaredCsp, r;
|
|
282
|
+
B === "permissive" ? r = [
|
|
282
283
|
"default-src * 'unsafe-inline' 'unsafe-eval' data: blob: filesystem: about:",
|
|
283
284
|
"script-src * 'unsafe-inline' 'unsafe-eval' data: blob:",
|
|
284
285
|
"style-src * 'unsafe-inline' data: blob:",
|
|
@@ -290,17 +291,17 @@ function C(e) {
|
|
|
290
291
|
"object-src * data: blob:",
|
|
291
292
|
"base-uri *",
|
|
292
293
|
"form-action *"
|
|
293
|
-
].join("; ") : t && (
|
|
294
|
+
].join("; ") : t && (r = m(t)), z(n, t, r);
|
|
294
295
|
}, [
|
|
295
|
-
A,
|
|
296
|
-
r,
|
|
297
|
-
u,
|
|
298
296
|
F,
|
|
299
|
-
|
|
297
|
+
n,
|
|
298
|
+
d,
|
|
299
|
+
B,
|
|
300
|
+
z
|
|
300
301
|
]);
|
|
301
|
-
(0,
|
|
302
|
-
let
|
|
303
|
-
|
|
302
|
+
(0, f.useEffect)(() => () => I(n), [n, I]);
|
|
303
|
+
let Y = (0, f.useCallback)((e) => {
|
|
304
|
+
L(n, {
|
|
304
305
|
directive: e.directive,
|
|
305
306
|
effectiveDirective: e.effectiveDirective ?? e.directive,
|
|
306
307
|
blockedUri: e.blockedUri,
|
|
@@ -310,39 +311,54 @@ function C(e) {
|
|
|
310
311
|
originalPolicy: e.originalPolicy,
|
|
311
312
|
timestamp: e.timestamp
|
|
312
313
|
});
|
|
313
|
-
}, [
|
|
314
|
-
|
|
314
|
+
}, [L, n]), X = (0, f.useCallback)(({ content: e, structuredContent: t }) => {
|
|
315
|
+
R(n, {
|
|
315
316
|
content: e,
|
|
316
317
|
structuredContent: t
|
|
317
318
|
});
|
|
318
319
|
try {
|
|
319
|
-
localStorage.setItem(`mcp-use:widget-state:${
|
|
320
|
+
localStorage.setItem(`mcp-use:widget-state:${n}`, JSON.stringify(t));
|
|
320
321
|
} catch {}
|
|
321
|
-
}, [
|
|
322
|
+
}, [R, n]), Z = (0, f.useCallback)(({ level: e, data: t }) => {
|
|
322
323
|
let n = e === "warning" ? "warn" : e === "error" ? "error" : "log";
|
|
323
|
-
|
|
324
|
+
p.publish({
|
|
324
325
|
level: n,
|
|
325
326
|
args: Array.isArray(t) ? t : [t],
|
|
326
327
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
327
|
-
url:
|
|
328
|
+
url: c
|
|
328
329
|
});
|
|
329
|
-
}, [
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
330
|
+
}, [c]), Q = (0, f.useMemo)(() => ({
|
|
331
|
+
title: N ? o(N) : "MCP Server",
|
|
332
|
+
iconUrl: N ? s(N) : null
|
|
333
|
+
}), [N]), $ = (0, f.useCallback)(({ onClick: e, "data-testid": t, "aria-label": n }) => /* @__PURE__ */ (0, E.jsx)(r, {
|
|
334
|
+
type: "button",
|
|
335
|
+
variant: "tertiary",
|
|
336
|
+
size: "icon-sm",
|
|
337
|
+
className: "rounded-full shadow-sm",
|
|
338
|
+
"data-testid": t,
|
|
339
|
+
"aria-label": n,
|
|
340
|
+
onClick: e,
|
|
341
|
+
children: /* @__PURE__ */ (0, E.jsx)(i, {})
|
|
342
|
+
}), []);
|
|
343
|
+
return K ? {
|
|
344
|
+
source: K,
|
|
345
|
+
hostInfo: D,
|
|
346
|
+
hostContext: U,
|
|
347
|
+
cspMode: B,
|
|
348
|
+
wrapTransport: q,
|
|
349
|
+
onCspViolation: Y,
|
|
350
|
+
onModelContextUpdate: X,
|
|
351
|
+
onLog: Z,
|
|
352
|
+
onResourceResolved: J,
|
|
353
|
+
displayMode: b,
|
|
354
|
+
onDisplayModeChange: C,
|
|
355
|
+
inlineMaxWidth: w ?? (P.deviceType === "mobile" ? V : void 0),
|
|
356
|
+
chromeless: k,
|
|
357
|
+
onReady: A,
|
|
358
|
+
mockOpenAiFileApis: !0,
|
|
359
|
+
fullscreenHeader: Q,
|
|
360
|
+
renderFullscreenClose: $
|
|
345
361
|
} : null;
|
|
346
362
|
}
|
|
347
363
|
//#endregion
|
|
348
|
-
export {
|
|
364
|
+
export { g as a, _ as i, b as n, p as o, y as r, k as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-BONxC1L5.js";
|
|
2
2
|
var t = e("wrench", [["path", {
|
|
3
3
|
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
4
4
|
key: "1ngwbx"
|
package/dist/cli.js
CHANGED
|
@@ -13,6 +13,14 @@ var DEFAULT_REMOTE_ASSETS_URL = `https://cdn.jsdelivr.net/npm/@mcp-use/inspector
|
|
|
13
13
|
function inspectorStylesUrl(assetsUrl) {
|
|
14
14
|
return assetsUrl.replace(/\.js(?=$|[?#])/, ".css");
|
|
15
15
|
}
|
|
16
|
+
function isDefaultJsdelivrInspectorUrl(url) {
|
|
17
|
+
return url.startsWith("https://cdn.jsdelivr.net/npm/@mcp-use/inspector@");
|
|
18
|
+
}
|
|
19
|
+
function withInspectorCacheBust(assetsUrl) {
|
|
20
|
+
if (!isDefaultJsdelivrInspectorUrl(assetsUrl)) return assetsUrl;
|
|
21
|
+
const sep = assetsUrl.includes("?") ? "&" : "?";
|
|
22
|
+
return `${assetsUrl}${sep}cb=${crypto.randomUUID()}`;
|
|
23
|
+
}
|
|
16
24
|
function resolveInspectorAssetUrls(inspectorMode2, basePath) {
|
|
17
25
|
const envUrl = process.env.INSPECTOR_ASSETS_URL ?? process.env.MCP_USE_INSPECTOR_ASSETS_URL;
|
|
18
26
|
if (envUrl) {
|
|
@@ -174,7 +182,7 @@ function registerInspectorStaticAssets(app2, basePath = "") {
|
|
|
174
182
|
var package_default = {
|
|
175
183
|
name: "@mcp-use/inspector",
|
|
176
184
|
type: "module",
|
|
177
|
-
version: "20.0.0-beta.
|
|
185
|
+
version: "20.0.0-beta.10",
|
|
178
186
|
description: "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
179
187
|
author: "",
|
|
180
188
|
license: "MIT",
|
|
@@ -257,7 +265,7 @@ var package_default = {
|
|
|
257
265
|
"lint:pnpm": "pnpm lint:fix"
|
|
258
266
|
},
|
|
259
267
|
engines: {
|
|
260
|
-
node: "
|
|
268
|
+
node: ">=22.22.2"
|
|
261
269
|
},
|
|
262
270
|
peerDependencies: {
|
|
263
271
|
"@mcp-use/client": "^2.0.0-alpha.0",
|
|
@@ -276,22 +284,15 @@ var package_default = {
|
|
|
276
284
|
"@hono/node-server": "^1.19.13",
|
|
277
285
|
"@mcp-use/agent": "workspace:*",
|
|
278
286
|
"@mcp-use/client": "workspace:*",
|
|
279
|
-
"@paper-design/shaders-react": "^0.0.77",
|
|
280
|
-
"@shikijs/langs": "^3.23.0",
|
|
281
|
-
"@shikijs/themes": "^3.23.0",
|
|
282
287
|
"class-variance-authority": "^0.7.1",
|
|
283
288
|
clsx: "^2.1.1",
|
|
284
|
-
"framer-motion": "^12.42.2",
|
|
285
289
|
hono: "^4.12.12",
|
|
286
290
|
"lucide-react": "^0.562.0",
|
|
287
291
|
"markdown-to-jsx": "^9.7.4",
|
|
288
292
|
motion: "^12.34.2",
|
|
289
293
|
open: "^11.0.0",
|
|
290
|
-
"pdfjs-dist": "^6.1.200",
|
|
291
294
|
"react-resizable-panels": "^4.6.4",
|
|
292
295
|
sonner: "^2.0.7",
|
|
293
|
-
shiki: "^3.23.0",
|
|
294
|
-
streamdown: "^2.5.0",
|
|
295
296
|
"tailwind-merge": "^3.5.0"
|
|
296
297
|
},
|
|
297
298
|
publishConfig: {
|
|
@@ -384,6 +385,45 @@ function generateCdnShellHtml(config, basePath, assets) {
|
|
|
384
385
|
<link rel="stylesheet" href="${assets.cssUrl}" />
|
|
385
386
|
<title>Inspector | mcp-use</title>
|
|
386
387
|
<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." />
|
|
388
|
+
<style>
|
|
389
|
+
:root { color-scheme: light dark; }
|
|
390
|
+
html, body { height: 100%; margin: 0; background-color: #f3f3f3; }
|
|
391
|
+
#root { height: 100%; }
|
|
392
|
+
.mcp-boot {
|
|
393
|
+
display: flex;
|
|
394
|
+
height: 100%;
|
|
395
|
+
align-items: center;
|
|
396
|
+
justify-content: center;
|
|
397
|
+
background-color: #f3f3f3;
|
|
398
|
+
}
|
|
399
|
+
.mcp-boot-inner {
|
|
400
|
+
display: flex;
|
|
401
|
+
flex-direction: column;
|
|
402
|
+
align-items: center;
|
|
403
|
+
gap: 16px;
|
|
404
|
+
}
|
|
405
|
+
.mcp-boot-spinner {
|
|
406
|
+
width: 32px;
|
|
407
|
+
height: 32px;
|
|
408
|
+
color: #52525b;
|
|
409
|
+
animation: mcp-boot-spin 1s linear infinite;
|
|
410
|
+
}
|
|
411
|
+
.mcp-boot-label {
|
|
412
|
+
margin: 0;
|
|
413
|
+
font-family: Ubuntu, sans-serif;
|
|
414
|
+
font-size: 0.875rem;
|
|
415
|
+
line-height: 1.25rem;
|
|
416
|
+
color: #52525b;
|
|
417
|
+
}
|
|
418
|
+
@keyframes mcp-boot-spin {
|
|
419
|
+
to { transform: rotate(360deg); }
|
|
420
|
+
}
|
|
421
|
+
@media (prefers-color-scheme: dark) {
|
|
422
|
+
html, body { background-color: #000; }
|
|
423
|
+
.mcp-boot { background-color: #000; }
|
|
424
|
+
.mcp-boot-spinner, .mcp-boot-label { color: #a1a1aa; }
|
|
425
|
+
}
|
|
426
|
+
</style>
|
|
387
427
|
<script>window.__INSPECTOR_VERSION__ = ${JSON.stringify(INSPECTOR_VERSION)};</script>
|
|
388
428
|
${runtimeScripts}
|
|
389
429
|
</head>
|
|
@@ -401,7 +441,27 @@ function generateCdnShellHtml(config, basePath, assets) {
|
|
|
401
441
|
};
|
|
402
442
|
}
|
|
403
443
|
</script>
|
|
404
|
-
<div id="root"
|
|
444
|
+
<div id="root">
|
|
445
|
+
<div class="mcp-boot">
|
|
446
|
+
<div class="mcp-boot-inner">
|
|
447
|
+
<svg
|
|
448
|
+
class="mcp-boot-spinner"
|
|
449
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
450
|
+
viewBox="0 0 24 24"
|
|
451
|
+
fill="none"
|
|
452
|
+
stroke="currentColor"
|
|
453
|
+
stroke-width="2"
|
|
454
|
+
stroke-linecap="round"
|
|
455
|
+
stroke-linejoin="round"
|
|
456
|
+
role="status"
|
|
457
|
+
aria-label="Loading"
|
|
458
|
+
>
|
|
459
|
+
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
460
|
+
</svg>
|
|
461
|
+
<p class="mcp-boot-label">Connecting to MCP server...</p>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
405
465
|
<script type="module" src="${assets.jsUrl}"></script>
|
|
406
466
|
</body>
|
|
407
467
|
</html>`;
|
|
@@ -415,7 +475,16 @@ function registerInspectorCdnShell(app2, config, basePath = "") {
|
|
|
415
475
|
proxyUrl: config?.proxyUrl !== void 0 ? config.proxyUrl : p("/inspector/api/proxy"),
|
|
416
476
|
disableTelemetry: config?.disableTelemetry ?? process.env.MCP_USE_ANONYMIZED_TELEMETRY === "false"
|
|
417
477
|
};
|
|
418
|
-
const serveShell = (c) =>
|
|
478
|
+
const serveShell = (c) => {
|
|
479
|
+
const base = resolveInspectorAssetUrls(config?.inspectorMode, basePath);
|
|
480
|
+
const jsUrl = withInspectorCacheBust(base.jsUrl);
|
|
481
|
+
return c.html(
|
|
482
|
+
generateCdnShellHtml(effectiveConfig, basePath, {
|
|
483
|
+
jsUrl,
|
|
484
|
+
cssUrl: inspectorStylesUrl(jsUrl)
|
|
485
|
+
})
|
|
486
|
+
);
|
|
487
|
+
};
|
|
419
488
|
registerInspectorFaviconStatic(app2, basePath);
|
|
420
489
|
app2.get(
|
|
421
490
|
p("/inspector/oauth-popup-closed.html"),
|
|
@@ -1067,6 +1136,9 @@ var InvalidUpstreamError = class extends Error {
|
|
|
1067
1136
|
};
|
|
1068
1137
|
|
|
1069
1138
|
// src/server/proxy/mcp-proxy.ts
|
|
1139
|
+
function isOpenEndedSseResponse(contentType, contentLength) {
|
|
1140
|
+
return contentType.includes("text/event-stream") && !contentLength;
|
|
1141
|
+
}
|
|
1070
1142
|
function mountMcpProxy(app2, options = {}) {
|
|
1071
1143
|
const basePath = options.path || "/mcp/proxy";
|
|
1072
1144
|
const enableLogging = options.enableLogging !== false;
|
|
@@ -1203,10 +1275,11 @@ function mountMcpProxy(app2, options = {}) {
|
|
|
1203
1275
|
}
|
|
1204
1276
|
});
|
|
1205
1277
|
const contentType = response.headers.get("content-type") || "";
|
|
1206
|
-
const isSSE = contentType.includes("text/event-stream");
|
|
1207
|
-
const isGetRequest = c.req.method === "GET";
|
|
1208
1278
|
const upstreamContentLength = response.headers.get("content-length");
|
|
1209
|
-
const isTrueStream =
|
|
1279
|
+
const isTrueStream = isOpenEndedSseResponse(
|
|
1280
|
+
contentType,
|
|
1281
|
+
upstreamContentLength
|
|
1282
|
+
);
|
|
1210
1283
|
if (isTrueStream) {
|
|
1211
1284
|
return new Response(response.body, {
|
|
1212
1285
|
status: response.status,
|
|
@@ -13,7 +13,9 @@ interface ManufactAuthSnapshot {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function canShareManufactSession(inspectorUrl: string, cloudOrigin: string): boolean;
|
|
15
15
|
export declare function getSharedManufactSession(chatApiUrl: string): Promise<ManufactUser | null>;
|
|
16
|
-
export declare function authorizeManufact(chatApiUrl: string
|
|
16
|
+
export declare function authorizeManufact(chatApiUrl: string, options?: {
|
|
17
|
+
isRetry?: boolean;
|
|
18
|
+
}): Promise<void>;
|
|
17
19
|
export declare function completeManufactAuthorization(url?: URL): Promise<void>;
|
|
18
20
|
export declare function logoutManufact(chatApiUrl: string, mode: ManufactAuthSnapshot["mode"]): Promise<void>;
|
|
19
21
|
export declare function getManufactAccessToken(chatApiUrl: string): Promise<string | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manufact-auth.d.ts","sourceRoot":"","sources":["../../../src/client/auth/manufact-auth.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AA6BD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;CAClC;
|
|
1
|
+
{"version":3,"file":"manufact-auth.d.ts","sourceRoot":"","sources":["../../../src/client/auth/manufact-auth.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AA6BD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;CAClC;AAgDD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,GAClB,OAAO,CAeT;AAiUD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAE9B;AAgED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAC9B,OAAO,CAAC,IAAI,CAAC,CAsEf;AAED,wBAAsB,6BAA6B,CACjD,GAAG,MAAgC,GAClC,OAAO,CAAC,IAAI,CAAC,CAmCf;AA0FD,wBAAsB,cAAc,CAClC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,GACjC,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,wBAAsB,sBAAsB,CAC1C,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAIxB;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG;IACtE,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B,CAiDA"}
|
|
@@ -64,13 +64,6 @@ export interface ChatTabProps {
|
|
|
64
64
|
credentials?: RequestCredentials;
|
|
65
65
|
/** Extra headers to send with every streaming request. */
|
|
66
66
|
extraHeaders?: Record<string, string>;
|
|
67
|
-
/**
|
|
68
|
-
* True when the hosted inspector's managed key isn't usable because the
|
|
69
|
-
* selected server is on localhost (the managed backend can't reach it).
|
|
70
|
-
* Surfaces an explanatory notice on the configure-key empty state so the
|
|
71
|
-
* BYOK fallback is explained rather than silent. Default: false.
|
|
72
|
-
*/
|
|
73
|
-
managedKeyUnavailable?: boolean;
|
|
74
67
|
/**
|
|
75
68
|
* Custom body builder for the streaming request.
|
|
76
69
|
* Use to send only `{ messages }` to a server-managed backend.
|
|
@@ -100,6 +93,6 @@ export interface ChatTabProps {
|
|
|
100
93
|
/** Raise ChatHeader above host chrome (cloud embed). */
|
|
101
94
|
elevatedHeader?: boolean;
|
|
102
95
|
}
|
|
103
|
-
export declare function ChatTab({ connection, isConnected, useClientSide, enableKeyboardShortcuts, prompts, serverId, callPrompt, readResource, chatApiUrl, waitForChatApiUrl, initialMessages, managedLlmConfig, managedCloudModel, enableFreeTierUpgrade, clearButtonLabel, hideTitle, hideModelBadge, clearButtonHideIcon, clearButtonHideShortcut, clearButtonVariant, hideClearButton, hideToolSelector, chatQuickQuestions, chatFollowups, streamProtocol, credentials, extraHeaders, body,
|
|
96
|
+
export declare function ChatTab({ connection, isConnected, useClientSide, enableKeyboardShortcuts, prompts, serverId, callPrompt, readResource, chatApiUrl, waitForChatApiUrl, initialMessages, managedLlmConfig, managedCloudModel, enableFreeTierUpgrade, clearButtonLabel, hideTitle, hideModelBadge, clearButtonHideIcon, clearButtonHideShortcut, clearButtonVariant, hideClearButton, hideToolSelector, chatQuickQuestions, chatFollowups, streamProtocol, credentials, extraHeaders, body, chatStorageProvider, enableChatHistory, activeChatId: controlledActiveChatId, onActiveChatIdChange, titleGenerationReady, activeChatTitle, onChatTitleGenerated, defaultView, systemPromptProvider: externalSystemPromptProvider, elevatedHeader, }: ChatTabProps): import("react/jsx-runtime").JSX.Element;
|
|
104
97
|
export {};
|
|
105
98
|
//# sourceMappingURL=ChatTab.d.ts.map
|