@mcp-use/inspector 20.0.0-beta.0 → 20.0.0-beta.10
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-DRn-AnBV.js +6811 -0
- package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-BjF73mGX.js} +74 -73
- package/dist/cdn/ConnectionSettingsForm-CsG61Iyd.js +929 -0
- package/dist/cdn/ConnectionSettingsTab-CTJJK4hj.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-BJJtLqMb.js → MCPAppsDebugControls-C5-knSKL.js} +583 -620
- package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-ChbbjFIT.js} +3 -3
- package/dist/cdn/MarkdownRenderer-uUvyteZT.js +3610 -0
- package/dist/cdn/McpAppsViewPanel-Bj-1E9_v.js +56 -0
- package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-B7uebqMV.js} +13 -13
- package/dist/cdn/{OAuthCallback-BxuOVgdb.js → OAuthCallback-Hdtybeu0.js} +3 -3
- package/dist/cdn/PromptsTab-b4UpzPPY.js +902 -0
- package/dist/cdn/{ResourcesTab-BczUMFil.js → ResourcesTab-BCA0_b8c.js} +106 -124
- package/dist/cdn/{SamplingTab-6u5s845G.js → SamplingTab-CuPYqFyA.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-CUhwP4rZ.js → ToolsTab-4lvUZRQq.js} +671 -693
- package/dist/cdn/{ViewPreview-CxJc1Kht.js → ViewPreview-BGClMNvo.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-DjXr_YO3.js → dist-CTJnCYmk.js} +1 -1
- package/dist/cdn/{dist-mRDqCgKU.js → dist-dw0FdK5Y.js} +116 -114
- 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-B1xWyLr0.js} +113 -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 +7800 -7853
- 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-yUi9mVK4.js → react-BoOQpLwo.js} +868 -873
- 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-C7bt_ifQ.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-DiOY6evp.js} +73 -46
- package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
- package/dist/cdn/{useViewHostProps-C7vjco2m.js → useViewHostProps-D1emxC9m.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 +202 -27
- 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 +18 -0
- package/dist/server/asset-urls.d.ts.map +1 -0
- package/dist/server/asset-urls.js +17 -0
- package/dist/server/cdn-shell.d.ts +3 -3
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +5 -3
- package/dist/server/{chunk-J67FVPHF.js → chunk-5XMQ5UJR.js} +2 -2
- package/dist/server/chunk-H6ZCIKBS.js +63 -0
- package/dist/server/{chunk-ESODOPDD.js → chunk-J4FNYLBF.js} +4 -0
- package/dist/server/{chunk-TPHRVELX.js → chunk-KTPQKADO.js} +87 -10
- package/dist/server/{chunk-THQ67TSE.js → chunk-LMLZJR2K.js} +3 -10
- package/dist/server/chunk-M5TZA42I.js +54 -0
- package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
- 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 +8 -6
- 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/favicon-static.d.ts.map +1 -1
- package/dist/server/favicon-static.js +1 -1
- package/dist/server/index.js +9 -7
- package/dist/server/middleware.js +9 -7
- 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/static-assets.d.ts +5 -0
- package/dist/server/static-assets.d.ts.map +1 -0
- package/dist/server/static-assets.js +9 -0
- 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-x6dg7xyx.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-DUwCNYXJ.js +1 -0
- package/dist/web/assets/ElicitationTab-Dk04sjRw.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-Kh10bYHm.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-B-tdkUA2.js → ManufactOAuthCallback-Bq00h5wq.js} +1 -1
- package/dist/web/assets/MarkdownRenderer--ZbJc80m.js +47 -0
- package/dist/web/assets/McpAppsViewPanel-BM7S0O6E.js +1 -0
- package/dist/web/assets/{NotificationsTab-BgLjxuos.js → NotificationsTab-DTcas5xQ.js} +1 -1
- package/dist/web/assets/{OAuthCallback-Bp-jLoQs.js → OAuthCallback-CZ5PbMLP.js} +1 -1
- package/dist/web/assets/PromptsTab-Ce9hFDPL.js +15 -0
- package/dist/web/assets/ResourcesTab-CfV_CTOT.js +2 -0
- package/dist/web/assets/SamplingTab-7FoVfzSl.js +1 -0
- package/dist/web/assets/ServerMetadataTab-DfOYnm2P.js +1 -0
- package/dist/web/assets/ToolsTab-CeDM6lbc.js +8 -0
- package/dist/web/assets/ViewPreview-DMpWAByN.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-ocTkuPLe.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-D6mojCV5.js +21 -0
- package/dist/web/assets/index-BfmL5fRO.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-BaJnSpaR.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-C3U3Xswq.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/useConfig-tIq2w5rV.js +1 -0
- package/dist/web/assets/useViewHostProps--1CXsG5i.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 +6 -13
- package/dist/cdn/ChatTab-5ya_YTFV.js +0 -13218
- package/dist/cdn/ConnectionSettingsForm-iwNW86ZU.js +0 -873
- package/dist/cdn/ConnectionSettingsTab-CeK83dxn.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-CiAqtqhj.js +0 -460
- package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +0 -1
- package/dist/web/assets/ElicitationTab-B3Eg0_Jm.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-CA-SZs43.js +0 -61
- package/dist/web/assets/ResourcesTab-DdMIW_af.js +0 -2
- package/dist/web/assets/SamplingTab-DjyDG01W.js +0 -1
- package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +0 -1
- package/dist/web/assets/ToolsTab-BHk8GCmd.js +0 -8
- package/dist/web/assets/ViewPreview-DWtmwzCb.js +0 -1
- package/dist/web/assets/WidgetWrapper-B43lqbld.js +0 -34
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
- package/dist/web/assets/checkbox-_GzEPQic.js +0 -1
- package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.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-DQjEDTKs.js +0 -21
- package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +0 -1
- package/dist/web/assets/index-Bbn-6QR2.js +0 -475
- package/dist/web/assets/index-BjH-Qp85.css +0 -1
- 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-yq1lkD3x.js +0 -1
- package/dist/web/assets/pdf-C3cfS_Ha.js +0 -54
- package/dist/web/assets/select-C0xlfLAa.js +0 -1
- package/dist/web/assets/shared-Dfwy7nyg.js +0 -1
- package/dist/web/assets/sheet-CRPrEqAa.js +0 -1
- package/dist/web/assets/tabs-subtle-Dxgism9f.js +0 -1
- package/dist/web/assets/textarea-Ci09-en6.js +0 -1
- package/dist/web/assets/useConfig-b1f_iVFH.js +0 -1
- package/dist/web/assets/useMCPPrompts-CPskz9af.js +0 -1
- package/dist/web/assets/useViewHostProps-BgsQ2yYl.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/client/telemetry/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/client/telemetry/init.ts"],"names":[],"mappings":"AAmCA,wBAAgB,sBAAsB,IAAI,IAAI,CAI7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/client/telemetry/utils.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC;CACF;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/client/telemetry/utils.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC;CACF;AAID,wBAAgB,iBAAiB,IAAI,MAAM,CAkB1C"}
|
|
@@ -6,9 +6,14 @@ interface ServerNameLike {
|
|
|
6
6
|
serverInfo?: {
|
|
7
7
|
title?: string;
|
|
8
8
|
name?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
icons?: Array<{
|
|
11
|
+
src: string;
|
|
12
|
+
}>;
|
|
9
13
|
} | null;
|
|
10
14
|
}
|
|
11
15
|
export declare function getConfiguredServerAlias(server: ServerNameLike): string;
|
|
12
16
|
export declare function getServerDisplayName(server: ServerNameLike): string;
|
|
17
|
+
export declare function getServerIconUrl(server: ServerNameLike): string | null;
|
|
13
18
|
export {};
|
|
14
19
|
//# sourceMappingURL=servers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../../src/client/utils/servers.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAa/D;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAM5D;AAED,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../../src/client/utils/servers.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAa/D;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAM5D;AAED,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,KAAK,CAAC;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAChC,GAAG,IAAI,CAAC;CACV;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CASvE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CASnE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,GAAG,IAAI,CAKtE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** How the inspector is being served (telemetry + hosted UI behavior). */
|
|
2
|
+
export type InspectorMode = "standalone" | "embedded" | "cloud";
|
|
3
|
+
/** npm dist-tag for remote inspector bundles (matches mcp-use server). */
|
|
4
|
+
export declare const JSDELIVR_INSPECTOR_TAG = "beta";
|
|
5
|
+
export declare const DEFAULT_REMOTE_ASSETS_URL = "https://cdn.jsdelivr.net/npm/@mcp-use/inspector@beta/dist/cdn/inspector.js";
|
|
6
|
+
/** Derive the stylesheet URL from a bundle script URL. */
|
|
7
|
+
export declare function inspectorStylesUrl(assetsUrl: string): string;
|
|
8
|
+
/** True for the default jsDelivr `@mcp-use/inspector@*` CDN bundle URL. */
|
|
9
|
+
export declare function isDefaultJsdelivrInspectorUrl(url: string): boolean;
|
|
10
|
+
/** Append a per-request cache-bust query param for the default jsDelivr CDN URL. */
|
|
11
|
+
export declare function withInspectorCacheBust(assetsUrl: string): string;
|
|
12
|
+
export type InspectorAssetUrls = {
|
|
13
|
+
jsUrl: string;
|
|
14
|
+
cssUrl: string;
|
|
15
|
+
useLocal: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare function resolveInspectorAssetUrls(inspectorMode: InspectorMode | undefined, basePath: string): InspectorAssetUrls;
|
|
18
|
+
//# sourceMappingURL=asset-urls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-urls.d.ts","sourceRoot":"","sources":["../../src/server/asset-urls.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC;AAEhE,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C,eAAO,MAAM,yBAAyB,+EAAoG,CAAC;AAE3I,0DAA0D;AAC1D,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,2EAA2E;AAC3E,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAElE;AAED,oFAAoF;AACpF,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAIhE;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,aAAa,GAAG,SAAS,EACxC,QAAQ,EAAE,MAAM,GACf,kBAAkB,CA6CpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_REMOTE_ASSETS_URL,
|
|
3
|
+
JSDELIVR_INSPECTOR_TAG,
|
|
4
|
+
inspectorStylesUrl,
|
|
5
|
+
isDefaultJsdelivrInspectorUrl,
|
|
6
|
+
resolveInspectorAssetUrls,
|
|
7
|
+
withInspectorCacheBust
|
|
8
|
+
} from "./chunk-H6ZCIKBS.js";
|
|
9
|
+
import "./chunk-PKBMQBKP.js";
|
|
10
|
+
export {
|
|
11
|
+
DEFAULT_REMOTE_ASSETS_URL,
|
|
12
|
+
JSDELIVR_INSPECTOR_TAG,
|
|
13
|
+
inspectorStylesUrl,
|
|
14
|
+
isDefaultJsdelivrInspectorUrl,
|
|
15
|
+
resolveInspectorAssetUrls,
|
|
16
|
+
withInspectorCacheBust
|
|
17
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hono } from "hono";
|
|
2
|
-
|
|
3
|
-
export type InspectorMode
|
|
2
|
+
import { type InspectorMode } from "./asset-urls.js";
|
|
3
|
+
export type { InspectorMode } from "./asset-urls.js";
|
|
4
4
|
export type CdnShellConfig = {
|
|
5
5
|
basePath?: string;
|
|
6
6
|
devMode?: boolean;
|
|
@@ -12,7 +12,7 @@ export type CdnShellConfig = {
|
|
|
12
12
|
disableTelemetry?: boolean;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
* Serve the inspector UI
|
|
15
|
+
* Serve the inspector UI at `${basePath}/inspector`.
|
|
16
16
|
*/
|
|
17
17
|
export declare function registerInspectorCdnShell(app: Hono, config?: CdnShellConfig, basePath?: string): void;
|
|
18
18
|
//# sourceMappingURL=cdn-shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn-shell.d.ts","sourceRoot":"","sources":["../../src/server/cdn-shell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"cdn-shell.d.ts","sourceRoot":"","sources":["../../src/server/cdn-shell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAQzB,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AA+IF;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,IAAI,EACT,MAAM,CAAC,EAAE,cAAc,EACvB,QAAQ,GAAE,MAAW,QA2DtB"}
|
package/dist/server/cdn-shell.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerInspectorCdnShell
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KTPQKADO.js";
|
|
4
|
+
import "./chunk-M5TZA42I.js";
|
|
5
|
+
import "./chunk-LMLZJR2K.js";
|
|
6
|
+
import "./chunk-H6ZCIKBS.js";
|
|
7
|
+
import "./chunk-J4FNYLBF.js";
|
|
6
8
|
import "./chunk-WFT4JHYI.js";
|
|
7
9
|
import "./chunk-PKBMQBKP.js";
|
|
8
10
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerInspectorCdnShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KTPQKADO.js";
|
|
4
4
|
import {
|
|
5
5
|
registerInspectorProxyRoutes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UJLXHNQP.js";
|
|
7
7
|
|
|
8
8
|
// src/server/middleware.ts
|
|
9
9
|
import { Hono } from "hono";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// src/server/asset-urls.ts
|
|
2
|
+
var JSDELIVR_INSPECTOR_TAG = "beta";
|
|
3
|
+
var DEFAULT_REMOTE_ASSETS_URL = `https://cdn.jsdelivr.net/npm/@mcp-use/inspector@${JSDELIVR_INSPECTOR_TAG}/dist/cdn/inspector.js`;
|
|
4
|
+
function inspectorStylesUrl(assetsUrl) {
|
|
5
|
+
return assetsUrl.replace(/\.js(?=$|[?#])/, ".css");
|
|
6
|
+
}
|
|
7
|
+
function isDefaultJsdelivrInspectorUrl(url) {
|
|
8
|
+
return url.startsWith("https://cdn.jsdelivr.net/npm/@mcp-use/inspector@");
|
|
9
|
+
}
|
|
10
|
+
function withInspectorCacheBust(assetsUrl) {
|
|
11
|
+
if (!isDefaultJsdelivrInspectorUrl(assetsUrl)) return assetsUrl;
|
|
12
|
+
const sep = assetsUrl.includes("?") ? "&" : "?";
|
|
13
|
+
return `${assetsUrl}${sep}cb=${crypto.randomUUID()}`;
|
|
14
|
+
}
|
|
15
|
+
function resolveInspectorAssetUrls(inspectorMode, basePath) {
|
|
16
|
+
const envUrl = process.env.INSPECTOR_ASSETS_URL ?? process.env.MCP_USE_INSPECTOR_ASSETS_URL;
|
|
17
|
+
if (envUrl) {
|
|
18
|
+
return {
|
|
19
|
+
jsUrl: envUrl,
|
|
20
|
+
cssUrl: inspectorStylesUrl(envUrl),
|
|
21
|
+
useLocal: false
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const legacyBase = process.env.INSPECTOR_CDN_BASE;
|
|
25
|
+
if (legacyBase) {
|
|
26
|
+
const base = legacyBase.replace(/\/$/, "");
|
|
27
|
+
if (/\.js(?:$|[?#])/.test(base)) {
|
|
28
|
+
return {
|
|
29
|
+
jsUrl: base,
|
|
30
|
+
cssUrl: inspectorStylesUrl(base),
|
|
31
|
+
useLocal: false
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
jsUrl: `${base}/inspector.js`,
|
|
36
|
+
cssUrl: `${base}/inspector.css`,
|
|
37
|
+
useLocal: false
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
if (inspectorMode === "standalone") {
|
|
41
|
+
const prefix = basePath;
|
|
42
|
+
return {
|
|
43
|
+
jsUrl: `${prefix}/dist/cdn/inspector.js`,
|
|
44
|
+
cssUrl: `${prefix}/dist/cdn/inspector.css`,
|
|
45
|
+
useLocal: true
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const jsUrl = DEFAULT_REMOTE_ASSETS_URL;
|
|
49
|
+
return {
|
|
50
|
+
jsUrl,
|
|
51
|
+
cssUrl: inspectorStylesUrl(jsUrl),
|
|
52
|
+
useLocal: false
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
JSDELIVR_INSPECTOR_TAG,
|
|
58
|
+
DEFAULT_REMOTE_ASSETS_URL,
|
|
59
|
+
inspectorStylesUrl,
|
|
60
|
+
isDefaultJsdelivrInspectorUrl,
|
|
61
|
+
withInspectorCacheBust,
|
|
62
|
+
resolveInspectorAssetUrls
|
|
63
|
+
};
|
|
@@ -15,8 +15,12 @@ var CONTENT_TYPES = {
|
|
|
15
15
|
function resolveFaviconDir() {
|
|
16
16
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
17
17
|
for (const dir of [
|
|
18
|
+
path.resolve(here, "cdn"),
|
|
19
|
+
// dist/cli.js (bundled)
|
|
18
20
|
path.resolve(here, "../cdn"),
|
|
21
|
+
// dist/server/*.js
|
|
19
22
|
path.resolve(here, "../../public")
|
|
23
|
+
// src/server/*.ts (dev)
|
|
20
24
|
]) {
|
|
21
25
|
if (existsSync(path.join(dir, "favicon-black.svg"))) {
|
|
22
26
|
return dir;
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
registerInspectorStaticAssets
|
|
3
|
+
} from "./chunk-M5TZA42I.js";
|
|
1
4
|
import {
|
|
2
5
|
getInspectorVersion
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LMLZJR2K.js";
|
|
7
|
+
import {
|
|
8
|
+
inspectorStylesUrl,
|
|
9
|
+
resolveInspectorAssetUrls,
|
|
10
|
+
withInspectorCacheBust
|
|
11
|
+
} from "./chunk-H6ZCIKBS.js";
|
|
4
12
|
import {
|
|
5
13
|
registerInspectorFaviconStatic
|
|
6
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J4FNYLBF.js";
|
|
7
15
|
import {
|
|
8
16
|
renderInspectorFaviconLinks
|
|
9
17
|
} from "./chunk-WFT4JHYI.js";
|
|
10
18
|
|
|
11
19
|
// src/server/cdn-shell.ts
|
|
12
20
|
var INSPECTOR_VERSION = getInspectorVersion();
|
|
13
|
-
var CDN_BASE = process.env.INSPECTOR_CDN_BASE ?? "https://inspector-cdn.mcp-use.com";
|
|
14
|
-
var CDN_JS_URL = `${CDN_BASE}/inspector@${INSPECTOR_VERSION}.js`;
|
|
15
|
-
var CDN_CSS_URL = `${CDN_BASE}/inspector@${INSPECTOR_VERSION}.css`;
|
|
16
21
|
var OAUTH_POPUP_CLOSED_HTML = `<!doctype html>
|
|
17
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>
|
|
18
23
|
<body><div>Signed in. You can close this window.</div>
|
|
19
24
|
<script>try{if(window.opener&&!window.opener.closed)window.opener.postMessage({type:"manufact:oauth-complete"},"*")}catch(e){}try{window.close()}catch(e){}</script>
|
|
20
25
|
</body></html>`;
|
|
21
|
-
function generateCdnShellHtml(config, basePath
|
|
26
|
+
function generateCdnShellHtml(config, basePath, assets) {
|
|
22
27
|
const scripts = [];
|
|
23
28
|
if (config?.basePath !== void 0) {
|
|
24
29
|
scripts.push(
|
|
@@ -63,9 +68,48 @@ function generateCdnShellHtml(config, basePath = "") {
|
|
|
63
68
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
64
69
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
65
70
|
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
66
|
-
<link rel="stylesheet" href="${
|
|
71
|
+
<link rel="stylesheet" href="${assets.cssUrl}" />
|
|
67
72
|
<title>Inspector | mcp-use</title>
|
|
68
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>
|
|
69
113
|
<script>window.__INSPECTOR_VERSION__ = ${JSON.stringify(INSPECTOR_VERSION)};</script>
|
|
70
114
|
${runtimeScripts}
|
|
71
115
|
</head>
|
|
@@ -83,12 +127,33 @@ function generateCdnShellHtml(config, basePath = "") {
|
|
|
83
127
|
};
|
|
84
128
|
}
|
|
85
129
|
</script>
|
|
86
|
-
<div id="root"
|
|
87
|
-
|
|
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>
|
|
88
152
|
</body>
|
|
89
153
|
</html>`;
|
|
90
154
|
}
|
|
91
155
|
function registerInspectorCdnShell(app, config, basePath = "") {
|
|
156
|
+
const assets = resolveInspectorAssetUrls(config?.inspectorMode, basePath);
|
|
92
157
|
const p = (suffix) => `${basePath}${suffix}`;
|
|
93
158
|
const effectiveConfig = {
|
|
94
159
|
...config,
|
|
@@ -96,7 +161,16 @@ function registerInspectorCdnShell(app, config, basePath = "") {
|
|
|
96
161
|
proxyUrl: config?.proxyUrl !== void 0 ? config.proxyUrl : p("/inspector/api/proxy"),
|
|
97
162
|
disableTelemetry: config?.disableTelemetry ?? process.env.MCP_USE_ANONYMIZED_TELEMETRY === "false"
|
|
98
163
|
};
|
|
99
|
-
const serveShell = (c) =>
|
|
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
|
+
};
|
|
100
174
|
registerInspectorFaviconStatic(app, basePath);
|
|
101
175
|
app.get(
|
|
102
176
|
p("/inspector/oauth-popup-closed.html"),
|
|
@@ -123,6 +197,9 @@ function registerInspectorCdnShell(app, config, basePath = "") {
|
|
|
123
197
|
return c.redirect(`${p("/inspector")}${url.search}`);
|
|
124
198
|
});
|
|
125
199
|
}
|
|
200
|
+
if (assets.useLocal) {
|
|
201
|
+
registerInspectorStaticAssets(app, basePath);
|
|
202
|
+
}
|
|
126
203
|
}
|
|
127
204
|
|
|
128
205
|
export {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@mcp-use/inspector",
|
|
4
4
|
type: "module",
|
|
5
|
-
version: "20.0.0-beta.
|
|
5
|
+
version: "20.0.0-beta.9",
|
|
6
6
|
description: "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
7
7
|
author: "",
|
|
8
8
|
license: "MIT",
|
|
@@ -59,7 +59,7 @@ var package_default = {
|
|
|
59
59
|
"build:server": "tsup 'src/server/**/*.ts' --format esm --out-dir dist/server && tsc -p tsconfig.server.json --emitDeclarationOnly --declaration",
|
|
60
60
|
"build:cli": "tsup src/server/cli.ts --format esm --out-dir dist/",
|
|
61
61
|
prepublishOnly: "pnpm --filter @mcp-use/client build && pnpm build",
|
|
62
|
-
start: "node dist/
|
|
62
|
+
start: "node dist/cli.js --port 3000",
|
|
63
63
|
preview: "vite preview",
|
|
64
64
|
"type-check": "tsc --noEmit",
|
|
65
65
|
lint: "eslint .",
|
|
@@ -85,7 +85,7 @@ var package_default = {
|
|
|
85
85
|
"lint:pnpm": "pnpm lint:fix"
|
|
86
86
|
},
|
|
87
87
|
engines: {
|
|
88
|
-
node: "
|
|
88
|
+
node: ">=22.22.2"
|
|
89
89
|
},
|
|
90
90
|
peerDependencies: {
|
|
91
91
|
"@mcp-use/client": "^2.0.0-alpha.0",
|
|
@@ -104,22 +104,15 @@ var package_default = {
|
|
|
104
104
|
"@hono/node-server": "^1.19.13",
|
|
105
105
|
"@mcp-use/agent": "workspace:*",
|
|
106
106
|
"@mcp-use/client": "workspace:*",
|
|
107
|
-
"@paper-design/shaders-react": "^0.0.77",
|
|
108
|
-
"@shikijs/langs": "^3.23.0",
|
|
109
|
-
"@shikijs/themes": "^3.23.0",
|
|
110
107
|
"class-variance-authority": "^0.7.1",
|
|
111
108
|
clsx: "^2.1.1",
|
|
112
|
-
"framer-motion": "^12.42.2",
|
|
113
109
|
hono: "^4.12.12",
|
|
114
110
|
"lucide-react": "^0.562.0",
|
|
115
111
|
"markdown-to-jsx": "^9.7.4",
|
|
116
112
|
motion: "^12.34.2",
|
|
117
113
|
open: "^11.0.0",
|
|
118
|
-
"pdfjs-dist": "^6.1.200",
|
|
119
114
|
"react-resizable-panels": "^4.6.4",
|
|
120
115
|
sonner: "^2.0.7",
|
|
121
|
-
shiki: "^3.23.0",
|
|
122
|
-
streamdown: "^2.5.0",
|
|
123
116
|
"tailwind-merge": "^3.5.0"
|
|
124
117
|
},
|
|
125
118
|
publishConfig: {
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
};
|
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
// src/server/proxy/mcp-proxy.ts
|
|
6
6
|
import { cors } from "hono/cors";
|
|
7
7
|
import { logger } from "hono/logger";
|
|
8
|
+
function isOpenEndedSseResponse(contentType, contentLength) {
|
|
9
|
+
return contentType.includes("text/event-stream") && !contentLength;
|
|
10
|
+
}
|
|
8
11
|
function mountMcpProxy(app, options = {}) {
|
|
9
12
|
const basePath = options.path || "/mcp/proxy";
|
|
10
13
|
const enableLogging = options.enableLogging !== false;
|
|
@@ -141,10 +144,11 @@ function mountMcpProxy(app, options = {}) {
|
|
|
141
144
|
}
|
|
142
145
|
});
|
|
143
146
|
const contentType = response.headers.get("content-type") || "";
|
|
144
|
-
const isSSE = contentType.includes("text/event-stream");
|
|
145
|
-
const isGetRequest = c.req.method === "GET";
|
|
146
147
|
const upstreamContentLength = response.headers.get("content-length");
|
|
147
|
-
const isTrueStream =
|
|
148
|
+
const isTrueStream = isOpenEndedSseResponse(
|
|
149
|
+
contentType,
|
|
150
|
+
upstreamContentLength
|
|
151
|
+
);
|
|
148
152
|
if (isTrueStream) {
|
|
149
153
|
return new Response(response.body, {
|
|
150
154
|
status: response.status,
|
|
@@ -190,5 +194,6 @@ function mountMcpProxy(app, options = {}) {
|
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
export {
|
|
197
|
+
isOpenEndedSseResponse,
|
|
193
198
|
mountMcpProxy
|
|
194
199
|
};
|
package/dist/server/cli.js
CHANGED
|
@@ -5,18 +5,20 @@ import {
|
|
|
5
5
|
} from "./chunk-KD7K27XK.js";
|
|
6
6
|
import {
|
|
7
7
|
registerInspectorCdnShell
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KTPQKADO.js";
|
|
9
|
+
import "./chunk-M5TZA42I.js";
|
|
9
10
|
import {
|
|
10
11
|
getInspectorVersion
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-WFT4JHYI.js";
|
|
12
|
+
} from "./chunk-LMLZJR2K.js";
|
|
13
|
+
import "./chunk-H6ZCIKBS.js";
|
|
14
14
|
import {
|
|
15
15
|
registerInspectorProxyRoutes
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UJLXHNQP.js";
|
|
17
17
|
import "./chunk-IKTZUWSX.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XCNS5CIW.js";
|
|
19
19
|
import "./chunk-K2F2AJOI.js";
|
|
20
|
+
import "./chunk-J4FNYLBF.js";
|
|
21
|
+
import "./chunk-WFT4JHYI.js";
|
|
20
22
|
import "./chunk-PKBMQBKP.js";
|
|
21
23
|
|
|
22
24
|
// src/server/cli.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDevApiApp
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-OWR2BIBW.js";
|
|
4
|
+
import "./chunk-UJLXHNQP.js";
|
|
5
5
|
import "./chunk-IKTZUWSX.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-XCNS5CIW.js";
|
|
7
7
|
import "./chunk-K2F2AJOI.js";
|
|
8
8
|
import "./chunk-PKBMQBKP.js";
|
|
9
9
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-callback-redirect.d.ts","sourceRoot":"","sources":["../../src/server/dev-callback-redirect.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAYpE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./chunk-PKBMQBKP.js";
|
|
2
|
+
|
|
3
|
+
// src/server/dev-callback-redirect.ts
|
|
4
|
+
function getDevCallbackRedirect(rawUrl) {
|
|
5
|
+
const queryIndex = rawUrl.indexOf("?");
|
|
6
|
+
const path = queryIndex === -1 ? rawUrl : rawUrl.slice(0, queryIndex);
|
|
7
|
+
const queryString = queryIndex === -1 ? "" : rawUrl.slice(queryIndex);
|
|
8
|
+
if (path === "/oauth/callback") {
|
|
9
|
+
return `/inspector/oauth/callback${queryString}`;
|
|
10
|
+
}
|
|
11
|
+
if (path === "/auth/callback") {
|
|
12
|
+
return `/inspector/auth/callback${queryString}`;
|
|
13
|
+
}
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
getDevCallbackRedirect
|
|
18
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favicon-static.d.ts","sourceRoot":"","sources":["../../src/server/favicon-static.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"favicon-static.d.ts","sourceRoot":"","sources":["../../src/server/favicon-static.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AA0BjC,uEAAuE;AACvE,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,IAAI,EACT,QAAQ,GAAE,MAAW,QAmBtB"}
|
package/dist/server/index.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5XMQ5UJR.js";
|
|
4
4
|
import {
|
|
5
5
|
registerInspectorCdnShell
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KTPQKADO.js";
|
|
7
|
+
import "./chunk-M5TZA42I.js";
|
|
8
|
+
import "./chunk-LMLZJR2K.js";
|
|
9
|
+
import "./chunk-H6ZCIKBS.js";
|
|
10
10
|
import {
|
|
11
11
|
registerInspectorProxyRoutes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UJLXHNQP.js";
|
|
13
13
|
import "./chunk-IKTZUWSX.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XCNS5CIW.js";
|
|
15
15
|
import "./chunk-K2F2AJOI.js";
|
|
16
|
+
import "./chunk-J4FNYLBF.js";
|
|
17
|
+
import "./chunk-WFT4JHYI.js";
|
|
16
18
|
import "./chunk-PKBMQBKP.js";
|
|
17
19
|
export {
|
|
18
20
|
mountInspector,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5XMQ5UJR.js";
|
|
4
|
+
import "./chunk-KTPQKADO.js";
|
|
5
|
+
import "./chunk-M5TZA42I.js";
|
|
6
|
+
import "./chunk-LMLZJR2K.js";
|
|
7
|
+
import "./chunk-H6ZCIKBS.js";
|
|
8
|
+
import "./chunk-UJLXHNQP.js";
|
|
9
9
|
import "./chunk-IKTZUWSX.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-XCNS5CIW.js";
|
|
11
11
|
import "./chunk-K2F2AJOI.js";
|
|
12
|
+
import "./chunk-J4FNYLBF.js";
|
|
13
|
+
import "./chunk-WFT4JHYI.js";
|
|
12
14
|
import "./chunk-PKBMQBKP.js";
|
|
13
15
|
export {
|
|
14
16
|
mountInspector
|