@mcp-use/inspector 20.0.0-beta.1 → 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.
Files changed (276) hide show
  1. package/README.md +7 -18
  2. package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-D1bZ5_-l.js} +80 -79
  3. package/dist/cdn/ChatTab-DRn-AnBV.js +6811 -0
  4. package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-BjF73mGX.js} +74 -73
  5. package/dist/cdn/ConnectionSettingsForm-CsG61Iyd.js +929 -0
  6. package/dist/cdn/ConnectionSettingsTab-CTJJK4hj.js +151 -0
  7. package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-PEmEDvC5.js} +48 -47
  8. package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-NtUiZclE.js} +26 -26
  9. package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-BBKCdfmK.js} +2 -22
  10. package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BJqMz7Ny.js} +23 -23
  11. package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-DzmTtN1e.js} +21 -20
  12. package/dist/cdn/{WidgetWrapper-D29YDxIu.js → MCPAppsDebugControls-C5-knSKL.js} +583 -620
  13. package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-ChbbjFIT.js} +3 -3
  14. package/dist/cdn/MarkdownRenderer-uUvyteZT.js +3610 -0
  15. package/dist/cdn/McpAppsViewPanel-Bj-1E9_v.js +56 -0
  16. package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-B7uebqMV.js} +13 -13
  17. package/dist/cdn/{OAuthCallback-k3oeLtIC.js → OAuthCallback-Hdtybeu0.js} +3 -3
  18. package/dist/cdn/PromptsTab-b4UpzPPY.js +902 -0
  19. package/dist/cdn/{ResourcesTab-KfamsM6-.js → ResourcesTab-BCA0_b8c.js} +106 -124
  20. package/dist/cdn/{SamplingTab-vcufuK24.js → SamplingTab-CuPYqFyA.js} +43 -42
  21. package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-BM3VhSLf.js} +14 -14
  22. package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-Q3n3YRtE.js} +8 -9
  23. package/dist/cdn/{ToolsTab-DRjcZnpu.js → ToolsTab-4lvUZRQq.js} +671 -693
  24. package/dist/cdn/{ViewPreview-B_onhcUB.js → ViewPreview-BGClMNvo.js} +5 -4
  25. package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
  26. package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
  27. package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
  28. package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
  29. package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
  30. package/dist/cdn/button-CB4uOoUV.js +2509 -0
  31. package/dist/cdn/{card-DqjqAq0o.js → card-BA-DQk-G.js} +2 -2
  32. package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-kwVa4gRX.js} +4 -4
  33. package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
  34. package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
  35. package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
  36. package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-CJGnC5Ag.js} +165 -165
  37. package/dist/cdn/{dist-DjXr_YO3.js → dist-CTJnCYmk.js} +1 -1
  38. package/dist/cdn/{dist-mRDqCgKU.js → dist-dw0FdK5Y.js} +116 -114
  39. package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
  40. package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
  41. package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
  42. package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
  43. package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
  44. package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-B1xWyLr0.js} +113 -201
  45. package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
  46. package/dist/cdn/{input-BLxOA7V-.js → input-BCpgLXU1.js} +3039 -3600
  47. package/dist/cdn/inspector.css +1 -1
  48. package/dist/cdn/inspector.js +7797 -7857
  49. package/dist/cdn/{label-CBvG613A.js → label-A0UGV8FE.js} +8 -8
  50. package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
  51. package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
  52. package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
  53. package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
  54. package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
  55. package/dist/cdn/{not-found-BcNNsTjS.js → not-found-BajFyZpp.js} +4 -6
  56. package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
  57. package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
  58. package/dist/cdn/{react-BxO-uEDZ.js → react-BoOQpLwo.js} +838 -849
  59. package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
  60. package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
  61. package/dist/cdn/{select-BZ_IoKxg.js → select-CCFHjOGk.js} +843 -842
  62. package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
  63. package/dist/cdn/{shared-uMiV6Fx1.js → shared-CJVHJhag.js} +35 -35
  64. package/dist/cdn/sheet-oyq1mIyg.js +2078 -0
  65. package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
  66. package/dist/cdn/{spinner-CWcJhIY_.js → spinner-Be1GlSGX.js} +3 -3
  67. package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
  68. package/dist/cdn/{switch-DtQOLb9R.js → switch-DHXEA_N5.js} +211 -210
  69. package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-Dubd6Kj8.js} +259 -258
  70. package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-C7bt_ifQ.js} +38 -70
  71. package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-CwmI8_uI.js} +2 -2
  72. package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
  73. package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
  74. package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-Dhnm-7el.js} +3 -3
  75. package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-DiOY6evp.js} +73 -46
  76. package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
  77. package/dist/cdn/{useViewHostProps-Dr6W2ooF.js → useViewHostProps-D1emxC9m.js} +124 -108
  78. package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
  79. package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
  80. package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
  81. package/dist/cli.js +87 -14
  82. package/dist/client/auth/manufact-auth.d.ts +3 -1
  83. package/dist/client/auth/manufact-auth.d.ts.map +1 -1
  84. package/dist/client/components/ChatTab.d.ts +1 -8
  85. package/dist/client/components/ChatTab.d.ts.map +1 -1
  86. package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
  87. package/dist/client/components/ResourcesTab.d.ts.map +1 -1
  88. package/dist/client/components/ToolsTab.d.ts.map +1 -1
  89. package/dist/client/components/chat/ChatHeader.d.ts +7 -2
  90. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  91. package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
  92. package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
  93. package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
  94. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
  95. package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
  96. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
  97. package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
  98. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  99. package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
  100. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
  101. package/dist/client/components/chat/MessageList.d.ts +1 -0
  102. package/dist/client/components/chat/MessageList.d.ts.map +1 -1
  103. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
  104. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
  105. package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
  106. package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
  107. package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
  108. package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
  109. package/dist/client/components/chat/partialToolArgs.d.ts +10 -0
  110. package/dist/client/components/chat/partialToolArgs.d.ts.map +1 -0
  111. package/dist/client/components/chat/providerMeta.d.ts +11 -0
  112. package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
  113. package/dist/client/components/chat/types.d.ts +1 -0
  114. package/dist/client/components/chat/types.d.ts.map +1 -1
  115. package/dist/client/components/chat/useChatMessages.d.ts +7 -5
  116. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  117. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
  118. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  119. package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
  120. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
  121. package/dist/client/components/chat/useConfig.d.ts +1 -1
  122. package/dist/client/components/chat/useConfig.d.ts.map +1 -1
  123. package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
  124. package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
  125. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
  126. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
  127. package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
  128. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
  129. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
  130. package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
  131. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
  132. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
  133. package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
  134. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
  135. package/dist/client/components/ui/chat-message.d.ts +1 -1
  136. package/dist/client/components/ui/chat-message.d.ts.map +1 -1
  137. package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
  138. package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
  139. package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
  140. package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
  141. package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
  142. package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
  143. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
  144. package/dist/client/components/ui/not-found.d.ts.map +1 -1
  145. package/dist/client/context/InspectorContext.d.ts.map +1 -1
  146. package/dist/client/context/WidgetDebugContext.d.ts +1 -11
  147. package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
  148. package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
  149. package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
  150. package/dist/client/hooks/useViewHostProps.d.ts +1 -1
  151. package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
  152. package/dist/client/index.js +4202 -3491
  153. package/dist/client/telemetry/init.d.ts.map +1 -1
  154. package/dist/client/telemetry/utils.d.ts.map +1 -1
  155. package/dist/client/utils/servers.d.ts +5 -0
  156. package/dist/client/utils/servers.d.ts.map +1 -1
  157. package/dist/server/asset-urls.d.ts +4 -0
  158. package/dist/server/asset-urls.d.ts.map +1 -1
  159. package/dist/server/asset-urls.js +7 -3
  160. package/dist/server/cdn-shell.d.ts.map +1 -1
  161. package/dist/server/cdn-shell.js +3 -3
  162. package/dist/server/{chunk-IXYK6ZOY.js → chunk-5XMQ5UJR.js} +2 -2
  163. package/dist/server/{chunk-KBVKS4J5.js → chunk-H6ZCIKBS.js} +10 -0
  164. package/dist/server/{chunk-VDUV6LR6.js → chunk-KTPQKADO.js} +75 -5
  165. package/dist/server/{chunk-Y2GBQOQW.js → chunk-LMLZJR2K.js} +2 -9
  166. package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
  167. package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
  168. package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
  169. package/dist/server/cli.js +5 -5
  170. package/dist/server/create-dev-api-app.js +3 -3
  171. package/dist/server/dev-callback-redirect.d.ts +3 -0
  172. package/dist/server/dev-callback-redirect.d.ts.map +1 -0
  173. package/dist/server/dev-callback-redirect.js +18 -0
  174. package/dist/server/index.js +6 -6
  175. package/dist/server/middleware.js +6 -6
  176. package/dist/server/proxy/index.js +1 -1
  177. package/dist/server/proxy/mcp-proxy.d.ts +2 -0
  178. package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
  179. package/dist/server/proxy/mcp-proxy.js +3 -1
  180. package/dist/server/proxy-routes.js +2 -2
  181. package/dist/server/server.js +3 -3
  182. package/dist/server/version.js +1 -1
  183. package/dist/server/vite-dev-api-plugin.js +3 -3
  184. package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
  185. package/dist/web/assets/ChatTab-x6dg7xyx.js +18 -0
  186. package/dist/web/assets/ConnectionSettingsTab-DUwCNYXJ.js +1 -0
  187. package/dist/web/assets/ElicitationTab-Dk04sjRw.js +1 -0
  188. package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
  189. package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
  190. package/dist/web/assets/MCPAppsDebugControls-Kh10bYHm.js +34 -0
  191. package/dist/web/assets/{ManufactOAuthCallback-DCLbW-mz.js → ManufactOAuthCallback-Bq00h5wq.js} +1 -1
  192. package/dist/web/assets/MarkdownRenderer--ZbJc80m.js +47 -0
  193. package/dist/web/assets/McpAppsViewPanel-BM7S0O6E.js +1 -0
  194. package/dist/web/assets/{NotificationsTab-JevzvJTg.js → NotificationsTab-DTcas5xQ.js} +1 -1
  195. package/dist/web/assets/{OAuthCallback-BjcRxLh5.js → OAuthCallback-CZ5PbMLP.js} +1 -1
  196. package/dist/web/assets/PromptsTab-Ce9hFDPL.js +15 -0
  197. package/dist/web/assets/ResourcesTab-CfV_CTOT.js +2 -0
  198. package/dist/web/assets/SamplingTab-7FoVfzSl.js +1 -0
  199. package/dist/web/assets/ServerMetadataTab-DfOYnm2P.js +1 -0
  200. package/dist/web/assets/ToolsTab-CeDM6lbc.js +8 -0
  201. package/dist/web/assets/ViewPreview-DMpWAByN.js +1 -0
  202. package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
  203. package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
  204. package/dist/web/assets/button-C8Xa2k4x.js +1 -0
  205. package/dist/web/assets/checkbox-ocTkuPLe.js +1 -0
  206. package/dist/web/assets/code-B14rVdNt.js +1 -0
  207. package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
  208. package/dist/web/assets/dist-D6mojCV5.js +21 -0
  209. package/dist/web/assets/index-BfmL5fRO.js +499 -0
  210. package/dist/web/assets/index-bCIH1Sdx.css +1 -0
  211. package/dist/web/assets/input-C0OQCUZy.js +1 -0
  212. package/dist/web/assets/{label-B5Q_Zr8M.js → label-CI7JWQOo.js} +1 -1
  213. package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
  214. package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
  215. package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
  216. package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
  217. package/dist/web/assets/select-D6jzbLJn.js +1 -0
  218. package/dist/web/assets/shared-BaJnSpaR.js +1 -0
  219. package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
  220. package/dist/web/assets/tabs-subtle-C3U3Xswq.js +1 -0
  221. package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
  222. package/dist/web/assets/useConfig-tIq2w5rV.js +1 -0
  223. package/dist/web/assets/useViewHostProps--1CXsG5i.js +1 -0
  224. package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
  225. package/dist/web/index.html +10 -11
  226. package/package.json +5 -12
  227. package/dist/cdn/ChatTab-D8uwCHAf.js +0 -13218
  228. package/dist/cdn/ConnectionSettingsForm-BNS6bOMD.js +0 -873
  229. package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +0 -145
  230. package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
  231. package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
  232. package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
  233. package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
  234. package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
  235. package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
  236. package/dist/cdn/pdf-CxFT9FER.js +0 -16291
  237. package/dist/cdn/popover-C_SSrXT0.js +0 -2005
  238. package/dist/cdn/sheet-CerCdhxz.js +0 -78
  239. package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
  240. package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
  241. package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
  242. package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
  243. package/dist/web/assets/AnimatePresence-CthXziG2.js +0 -9
  244. package/dist/web/assets/ChatTab-Cy8eyFYI.js +0 -460
  245. package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +0 -1
  246. package/dist/web/assets/ElicitationTab-wDKgU1qL.js +0 -1
  247. package/dist/web/assets/FormContext-Cqc_A12u.js +0 -1
  248. package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
  249. package/dist/web/assets/PromptsTab-DsQVOjKH.js +0 -61
  250. package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +0 -2
  251. package/dist/web/assets/SamplingTab-BrcF1zJF.js +0 -1
  252. package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +0 -1
  253. package/dist/web/assets/ToolsTab-DJWF7Q_x.js +0 -8
  254. package/dist/web/assets/ViewPreview-jgeU7bY9.js +0 -1
  255. package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +0 -34
  256. package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
  257. package/dist/web/assets/checkbox-BA-XURSj.js +0 -1
  258. package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +0 -131
  259. package/dist/web/assets/code-tME-5H6D.js +0 -1
  260. package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
  261. package/dist/web/assets/dist-BcAQZluc.js +0 -21
  262. package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +0 -1
  263. package/dist/web/assets/index-BjH-Qp85.css +0 -1
  264. package/dist/web/assets/index-D2UxaT9v.js +0 -475
  265. package/dist/web/assets/input-CjmxOFr6.js +0 -1
  266. package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
  267. package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +0 -1
  268. package/dist/web/assets/pdf-CuwKm9zO.js +0 -54
  269. package/dist/web/assets/select-C0xlfLAa.js +0 -1
  270. package/dist/web/assets/shared-DQE60Op-.js +0 -1
  271. package/dist/web/assets/sheet-7TIkLdpr.js +0 -1
  272. package/dist/web/assets/tabs-subtle-AkJZvdxS.js +0 -1
  273. package/dist/web/assets/textarea-Ci09-en6.js +0 -1
  274. package/dist/web/assets/useConfig-Qglo4xs1.js +0 -1
  275. package/dist/web/assets/useMCPPrompts-USLYc1I4.js +0 -1
  276. 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 { d as n } from "./react-BxO-uEDZ.js";
3
- import { i as r, r as i, s as a, t as o } from "./WidgetDebugContext-D4usL_MA.js";
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-BoOQpLwo.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 s = /* @__PURE__ */ e(t(), 1), c = new class {
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 l(e) {
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 u(e) {
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 d(e) {
51
- return e ? u(l(e)) : {};
54
+ function g(e) {
55
+ return e ? h(m(e)) : {};
52
56
  }
53
- function f(e) {
54
- return u(e);
57
+ function _(e) {
58
+ return h(e);
55
59
  }
56
- function p(e) {
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 m(e, t) {
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 h(e) {
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 = p(e.violations);
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 g(e, t, n) {
101
- let i = {
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(i, a) {
113
- return r.publish({
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: i
120
- }), e.send(i, a);
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(i, "onmessage", {
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(i) {
136
- if (!i) {
139
+ set(r) {
140
+ if (!r) {
137
141
  e.onmessage = void 0;
138
142
  return;
139
143
  }
140
- e.onmessage = (e, a) => {
141
- r.publish({
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
- }), i(e, a);
152
+ }), r(e, i);
149
153
  };
150
154
  }
151
- }), Object.defineProperty(i, "onclose", {
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(i, "onerror", {
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
- }), i;
173
+ }), r;
170
174
  }
171
175
  //#endregion
172
176
  //#region src/client/hooks/useDeviceViewport.ts
173
- function _(e, t) {
174
- return (0, s.useMemo)(() => e === "custom" ? {
175
- maxWidth: t.width,
176
- maxHeight: t.height
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 v(e, t) {
185
+ function C(e, t) {
185
186
  return e.getPropertyValue(t).trim();
186
187
  }
187
- function y() {
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 = v(e, "--background"), i = v(e, "--foreground"), a = v(e, "--card"), o = v(e, "--muted"), s = v(e, "--muted-foreground"), c = v(e, "--primary"), l = v(e, "--primary-foreground"), u = v(e, "--secondary"), d = v(e, "--accent"), f = v(e, "--accent-foreground"), p = v(e, "--destructive"), m = v(e, "--border"), h = v(e, "--ring"), g = v(e, "--radius");
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 b({ theme: e, displayMode: t, maxWidth: n, maxHeight: r, playground: i, deviceType: a, toolCallId: o, toolName: c, toolInput: l, toolOutput: u, toolMetadata: d, tool: f }) {
195
- return (0, s.useMemo)(() => ({
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: y() },
214
- toolInfo: f ? {
214
+ styles: { variables: w() },
215
+ toolInfo: d ? {
215
216
  id: o,
216
- tool: f
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.ts
238
- var x = {
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 S(e, t) {
243
- let n = (0, s.useRef)(e);
243
+ function O(e, t) {
244
+ let n = (0, f.useRef)(e);
244
245
  n.current = e;
245
- let r = (0, s.useRef)(t);
246
- return r.current = t, (0, s.useMemo)(() => e ? {
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 C(e) {
255
- let { serverId: t, viewId: r, resourceUri: o, toolName: u, toolInput: d, toolOutput: f, toolMetadata: p, tool: m, readResource: h, displayMode: v, onDisplayModeChange: y, inlineMaxWidth: C, chromeless: w, onReady: T } = e, { resolvedTheme: E } = a(), { servers: D } = n(), O = D.find((e) => e.id === t), { playground: k, addWidget: A, removeWidget: j, addCspViolation: M, setWidgetModelContext: N, setWidgetDeclaredCsp: P } = i(), F = k.cspMode === "permissive" ? "permissive" : "widget-declared", { maxWidth: I, maxHeight: L } = _(k.deviceType, k.customViewport), R = b({
256
- theme: E,
257
- displayMode: v ?? "inline",
258
- maxWidth: I,
259
- maxHeight: L,
260
- playground: k,
261
- deviceType: k.deviceType,
262
- toolCallId: r,
263
- toolName: u,
264
- toolInput: d,
265
- toolOutput: f,
266
- toolMetadata: p,
267
- tool: m
268
- }), z = (0, s.useRef)(R);
269
- z.current = R;
270
- let B = S(O, h), V = (0, s.useMemo)(() => B ? {
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: B,
273
- resourceUri: o
274
- } : null, [B, o]), H = (0, s.useCallback)((e) => g(e, t, r), [t, r]), U = (0, s.useCallback)((e) => {
275
- A(r, {
276
- toolName: u,
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: z.current
279
+ hostContext: W.current
279
280
  });
280
- let t = e.declaredCsp, n;
281
- F === "permissive" ? n = [
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 && (n = l(t)), P(r, t, n);
294
+ ].join("; ") : t && (r = m(t)), z(n, t, r);
294
295
  }, [
295
- A,
296
- r,
297
- u,
298
296
  F,
299
- P
297
+ n,
298
+ d,
299
+ B,
300
+ z
300
301
  ]);
301
- (0, s.useEffect)(() => () => j(r), [r, j]);
302
- let W = (0, s.useCallback)((e) => {
303
- M(r, {
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
- }, [M, r]), G = (0, s.useCallback)(({ content: e, structuredContent: t }) => {
314
- N(r, {
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:${r}`, JSON.stringify(t));
320
+ localStorage.setItem(`mcp-use:widget-state:${n}`, JSON.stringify(t));
320
321
  } catch {}
321
- }, [N, r]), K = (0, s.useCallback)(({ level: e, data: t }) => {
322
+ }, [R, n]), Z = (0, f.useCallback)(({ level: e, data: t }) => {
322
323
  let n = e === "warning" ? "warn" : e === "error" ? "error" : "log";
323
- c.publish({
324
+ p.publish({
324
325
  level: n,
325
326
  args: Array.isArray(t) ? t : [t],
326
327
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
327
- url: o
328
+ url: c
328
329
  });
329
- }, [o]);
330
- return V ? {
331
- source: V,
332
- hostInfo: x,
333
- hostContext: R,
334
- cspMode: F,
335
- wrapTransport: H,
336
- onCspViolation: W,
337
- onModelContextUpdate: G,
338
- onLog: K,
339
- onResourceResolved: U,
340
- displayMode: v,
341
- onDisplayModeChange: y,
342
- inlineMaxWidth: C,
343
- chromeless: w,
344
- onReady: T
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 { d as a, f as i, h as n, c as o, m as r, C as t };
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-C5fZZ6oB.js";
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"
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("x", [["path", {
3
3
  d: "M18 6 6 18",
4
4
  key: "1bl5f8"
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("chevron-left", [["path", {
3
3
  d: "m15 18-6-6 6-6",
4
4
  key: "1wnfg3"
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.0",
185
+ version: "20.0.0-beta.9",
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: "^20.19.0 || >=22.12.0"
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"></div>
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) => c.html(generateCdnShellHtml(effectiveConfig, basePath, assets));
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 = isSSE && isGetRequest && !upstreamContentLength;
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): Promise<void>;
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;AA+BD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,GAClB,OAAO,CAeT;AA0PD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAE9B;AAgED,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqEzE;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"}
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, managedKeyUnavailable, chatStorageProvider, enableChatHistory, activeChatId: controlledActiveChatId, onActiveChatIdChange, titleGenerationReady, activeChatTitle, onChatTitleGenerated, defaultView, systemPromptProvider: externalSystemPromptProvider, elevatedHeader, }: ChatTabProps): import("react/jsx-runtime").JSX.Element;
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