@mcp-use/inspector 20.0.0-beta.9 → 20.0.1

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 (592) hide show
  1. package/README.md +29 -60
  2. package/dist/app/inspector.css.gz +0 -0
  3. package/dist/app/inspector.js.gz +0 -0
  4. package/dist/app/providers/anthropic.png +0 -0
  5. package/dist/app/providers/google.png +0 -0
  6. package/dist/app/providers/openai.png +0 -0
  7. package/dist/cli.js +272 -1383
  8. package/dist/client/index.d.ts +1408 -50
  9. package/dist/client/index.js +165 -24317
  10. package/dist/server/index.d.ts +79 -7
  11. package/dist/server/index.js +370 -22
  12. package/package.json +81 -36
  13. package/dist/cdn/AnimatePresence-D1bZ5_-l.js +0 -394
  14. package/dist/cdn/ChatTab-CU-Gf-GY.js +0 -6811
  15. package/dist/cdn/CheckboxIndicator-BjF73mGX.js +0 -252
  16. package/dist/cdn/ConnectionSettingsForm-C4fEbp4v.js +0 -929
  17. package/dist/cdn/ConnectionSettingsTab-DXUrhGfL.js +0 -151
  18. package/dist/cdn/ElicitationTab-PEmEDvC5.js +0 -655
  19. package/dist/cdn/FormContext-NtUiZclE.js +0 -135
  20. package/dist/cdn/InspectorContext-BBKCdfmK.js +0 -123
  21. package/dist/cdn/JSONDisplay-BJqMz7Ny.js +0 -324
  22. package/dist/cdn/ListTabHeader-DzmTtN1e.js +0 -89
  23. package/dist/cdn/MCPAppsDebugControls-Dp_o3k-P.js +0 -2174
  24. package/dist/cdn/ManufactOAuthCallback-ChbbjFIT.js +0 -31
  25. package/dist/cdn/MarkdownRenderer-COhmp4fm.js +0 -3610
  26. package/dist/cdn/McpAppsViewPanel-CMQZ28xs.js +0 -56
  27. package/dist/cdn/NotificationsTab-B7uebqMV.js +0 -290
  28. package/dist/cdn/OAuthCallback-ClEnwZ9o.js +0 -58
  29. package/dist/cdn/PromptsTab-DPjWr6W0.js +0 -902
  30. package/dist/cdn/ResourcesTab-D8hOTjDs.js +0 -566
  31. package/dist/cdn/SamplingTab-e1G8Qx1k.js +0 -659
  32. package/dist/cdn/ServerMetadataTab-BM3VhSLf.js +0 -244
  33. package/dist/cdn/StatusIcon-Q3n3YRtE.js +0 -65
  34. package/dist/cdn/ToolsTab-jNn6Cz6A.js +0 -2045
  35. package/dist/cdn/ViewPreview-BpQYOKES.js +0 -238
  36. package/dist/cdn/WidgetDebugContext-B6yoOVVV.js +0 -314
  37. package/dist/cdn/WidgetWrapper-BlbQAh_X.js +0 -12
  38. package/dist/cdn/basePath-B8HuhIMu.js +0 -25
  39. package/dist/cdn/bell-GrTZcnD2.js +0 -10
  40. package/dist/cdn/browser-DG2Z8392.js +0 -42
  41. package/dist/cdn/brush-CelVvMGp.js +0 -17
  42. package/dist/cdn/button-CB4uOoUV.js +0 -2509
  43. package/dist/cdn/card-BA-DQk-G.js +0 -41
  44. package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
  45. package/dist/cdn/checkbox-kwVa4gRX.js +0 -20
  46. package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
  47. package/dist/cdn/clock-YMF8Gtw5.js +0 -12
  48. package/dist/cdn/code-C8sN2OGR.js +0 -10
  49. package/dist/cdn/createLucideIcon-BONxC1L5.js +0 -213
  50. package/dist/cdn/dialog-CJGnC5Ag.js +0 -1028
  51. package/dist/cdn/dist-8Z7HZAGn.js +0 -2307
  52. package/dist/cdn/dist-CTJnCYmk.js +0 -616
  53. package/dist/cdn/external-link-Bo4lQxr1.js +0 -17
  54. package/dist/cdn/eye-pSGG7nvf.js +0 -29
  55. package/dist/cdn/folder-open-aM8CPtBO.js +0 -7
  56. package/dist/cdn/hash-DDs2vE1k.js +0 -33
  57. package/dist/cdn/history-BfUFpL1d.js +0 -17
  58. package/dist/cdn/index-browser-nWAQnCTk.js +0 -1846
  59. package/dist/cdn/info-BMkB68mB.js +0 -19
  60. package/dist/cdn/input-BCpgLXU1.js +0 -9654
  61. package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
  62. package/dist/cdn/inspector.css +0 -2
  63. package/dist/cdn/inspector.js +0 -24489
  64. package/dist/cdn/label-A0UGV8FE.js +0 -60
  65. package/dist/cdn/loader-circle-BKRHJEB7.js +0 -7
  66. package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
  67. package/dist/cdn/maximize-2-DdrB_spi.js +0 -21
  68. package/dist/cdn/maximize-hSOCz133.js +0 -21
  69. package/dist/cdn/message-square-D3tKB3uJ.js +0 -7
  70. package/dist/cdn/not-found-BajFyZpp.js +0 -32
  71. package/dist/cdn/play-B1leulYf.js +0 -7
  72. package/dist/cdn/providerMeta-CjGU4rID.js +0 -436
  73. package/dist/cdn/providers/anthropic.png +0 -0
  74. package/dist/cdn/providers/google.png +0 -0
  75. package/dist/cdn/providers/openai.png +0 -0
  76. package/dist/cdn/react-8UPT_kVF.js +0 -5396
  77. package/dist/cdn/react-BIs9pQ3H.js +0 -926
  78. package/dist/cdn/refresh-cw-CyvXrS91.js +0 -21
  79. package/dist/cdn/save-CmdEPUAm.js +0 -34
  80. package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
  81. package/dist/cdn/select-CCFHjOGk.js +0 -2595
  82. package/dist/cdn/servers-Dd0Vcp81.js +0 -30
  83. package/dist/cdn/shared-CJVHJhag.js +0 -1700
  84. package/dist/cdn/sheet-oyq1mIyg.js +0 -2078
  85. package/dist/cdn/sparkles-CxeZpVtX.js +0 -23
  86. package/dist/cdn/spinner-Be1GlSGX.js +0 -15
  87. package/dist/cdn/square-check-big-C_4wbfwF.js +0 -10
  88. package/dist/cdn/switch-DHXEA_N5.js +0 -665
  89. package/dist/cdn/tabs-subtle-Dubd6Kj8.js +0 -788
  90. package/dist/cdn/telemetry-X2tRdL3U.js +0 -208
  91. package/dist/cdn/textarea-CwmI8_uI.js +0 -14
  92. package/dist/cdn/trash-2-BhumJAFE.js +0 -25
  93. package/dist/cdn/useAriaLabelledBy-Cra6w3YY.js +0 -30
  94. package/dist/cdn/useCompositeItem-Dhnm-7el.js +0 -26
  95. package/dist/cdn/useConfig-BMqxaGDa.js +0 -235
  96. package/dist/cdn/useSavedRequests-mSIsDd4c.js +0 -51
  97. package/dist/cdn/useViewHostProps-DMArgRGs.js +0 -364
  98. package/dist/cdn/wrench-DvK20LUT.js +0 -7
  99. package/dist/cdn/x-EilKPiCX.js +0 -10
  100. package/dist/cdn/zap-0Wr9QO7N.js +0 -10
  101. package/dist/client/auth/manufact-auth.d.ts +0 -32
  102. package/dist/client/auth/manufact-auth.d.ts.map +0 -1
  103. package/dist/client/chat-history/ChatHistoryHeader.d.ts +0 -4
  104. package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +0 -1
  105. package/dist/client/chat-history/ChatHistoryPanel.d.ts +0 -28
  106. package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +0 -1
  107. package/dist/client/chat-history/ChatHistoryRail.d.ts +0 -5
  108. package/dist/client/chat-history/ChatHistoryRail.d.ts.map +0 -1
  109. package/dist/client/chat-history/ChatList.d.ts +0 -18
  110. package/dist/client/chat-history/ChatList.d.ts.map +0 -1
  111. package/dist/client/chat-history/ChatTitleReveal.d.ts +0 -10
  112. package/dist/client/chat-history/ChatTitleReveal.d.ts.map +0 -1
  113. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +0 -13
  114. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +0 -1
  115. package/dist/client/chat-history/chat-title.d.ts +0 -10
  116. package/dist/client/chat-history/chat-title.d.ts.map +0 -1
  117. package/dist/client/chat-history/providers/local-storage.d.ts +0 -21
  118. package/dist/client/chat-history/providers/local-storage.d.ts.map +0 -1
  119. package/dist/client/chat-history/types.d.ts +0 -39
  120. package/dist/client/chat-history/types.d.ts.map +0 -1
  121. package/dist/client/chat-history/useChatHistory.d.ts +0 -20
  122. package/dist/client/chat-history/useChatHistory.d.ts.map +0 -1
  123. package/dist/client/chat-history/useChatTitleGeneration.d.ts +0 -17
  124. package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +0 -1
  125. package/dist/client/components/AddToClientDropdown.d.ts +0 -52
  126. package/dist/client/components/AddToClientDropdown.d.ts.map +0 -1
  127. package/dist/client/components/ChatTab.d.ts +0 -98
  128. package/dist/client/components/ChatTab.d.ts.map +0 -1
  129. package/dist/client/components/IframeConsole.d.ts +0 -7
  130. package/dist/client/components/IframeConsole.d.ts.map +0 -1
  131. package/dist/client/components/MCPAppsDebugControls.d.ts +0 -19
  132. package/dist/client/components/MCPAppsDebugControls.d.ts.map +0 -1
  133. package/dist/client/components/PromptsTab.d.ts +0 -34
  134. package/dist/client/components/PromptsTab.d.ts.map +0 -1
  135. package/dist/client/components/ResourcesTab.d.ts +0 -31
  136. package/dist/client/components/ResourcesTab.d.ts.map +0 -1
  137. package/dist/client/components/ToolsTab.d.ts +0 -39
  138. package/dist/client/components/ToolsTab.d.ts.map +0 -1
  139. package/dist/client/components/chat/AssistantMessage.d.ts +0 -10
  140. package/dist/client/components/chat/AssistantMessage.d.ts.map +0 -1
  141. package/dist/client/components/chat/ChatHeader.d.ts +0 -70
  142. package/dist/client/components/chat/ChatHeader.d.ts.map +0 -1
  143. package/dist/client/components/chat/ChatInput.d.ts +0 -29
  144. package/dist/client/components/chat/ChatInput.d.ts.map +0 -1
  145. package/dist/client/components/chat/ChatInputArea.d.ts +0 -65
  146. package/dist/client/components/chat/ChatInputArea.d.ts.map +0 -1
  147. package/dist/client/components/chat/ChatLandingForm.d.ts +0 -15
  148. package/dist/client/components/chat/ChatLandingForm.d.ts.map +0 -1
  149. package/dist/client/components/chat/ChatManagedNotice.d.ts +0 -10
  150. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +0 -1
  151. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +0 -7
  152. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +0 -1
  153. package/dist/client/components/chat/ChatScrollTopFade.d.ts +0 -7
  154. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +0 -1
  155. package/dist/client/components/chat/ChatTraceView.d.ts +0 -7
  156. package/dist/client/components/chat/ChatTraceView.d.ts.map +0 -1
  157. package/dist/client/components/chat/ConfigurationDialog.d.ts +0 -42
  158. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +0 -1
  159. package/dist/client/components/chat/ConfigureEmptyState.d.ts +0 -6
  160. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +0 -1
  161. package/dist/client/components/chat/CopyButton.d.ts +0 -10
  162. package/dist/client/components/chat/CopyButton.d.ts.map +0 -1
  163. package/dist/client/components/chat/FloatingChatElicitation.d.ts +0 -10
  164. package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +0 -1
  165. package/dist/client/components/chat/McpReconnectBanner.d.ts +0 -10
  166. package/dist/client/components/chat/McpReconnectBanner.d.ts.map +0 -1
  167. package/dist/client/components/chat/MessageList.d.ts +0 -48
  168. package/dist/client/components/chat/MessageList.d.ts.map +0 -1
  169. package/dist/client/components/chat/MessageMetaActions.d.ts +0 -7
  170. package/dist/client/components/chat/MessageMetaActions.d.ts.map +0 -1
  171. package/dist/client/components/chat/PromptResultsList.d.ts +0 -8
  172. package/dist/client/components/chat/PromptResultsList.d.ts.map +0 -1
  173. package/dist/client/components/chat/PromptsDropdown.d.ts +0 -11
  174. package/dist/client/components/chat/PromptsDropdown.d.ts.map +0 -1
  175. package/dist/client/components/chat/StreamingAssistantContent.d.ts +0 -7
  176. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +0 -1
  177. package/dist/client/components/chat/SystemPromptButton.d.ts +0 -11
  178. package/dist/client/components/chat/SystemPromptButton.d.ts.map +0 -1
  179. package/dist/client/components/chat/ToolCallDisplay.d.ts +0 -10
  180. package/dist/client/components/chat/ToolCallDisplay.d.ts.map +0 -1
  181. package/dist/client/components/chat/ToolResultRenderer.d.ts +0 -15
  182. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +0 -1
  183. package/dist/client/components/chat/ToolSelector.d.ts +0 -13
  184. package/dist/client/components/chat/ToolSelector.d.ts.map +0 -1
  185. package/dist/client/components/chat/UserMessage.d.ts +0 -10
  186. package/dist/client/components/chat/UserMessage.d.ts.map +0 -1
  187. package/dist/client/components/chat/chat-bar-styles.d.ts +0 -6
  188. package/dist/client/components/chat/chat-bar-styles.d.ts.map +0 -1
  189. package/dist/client/components/chat/chatModeStorage.d.ts +0 -11
  190. package/dist/client/components/chat/chatModeStorage.d.ts.map +0 -1
  191. package/dist/client/components/chat/conversion.d.ts +0 -19
  192. package/dist/client/components/chat/conversion.d.ts.map +0 -1
  193. package/dist/client/components/chat/freeTier.d.ts +0 -32
  194. package/dist/client/components/chat/freeTier.d.ts.map +0 -1
  195. package/dist/client/components/chat/managedChatNotice.d.ts +0 -16
  196. package/dist/client/components/chat/managedChatNotice.d.ts.map +0 -1
  197. package/dist/client/components/chat/partialToolArgs.d.ts +0 -10
  198. package/dist/client/components/chat/partialToolArgs.d.ts.map +0 -1
  199. package/dist/client/components/chat/providerMeta.d.ts +0 -27
  200. package/dist/client/components/chat/providerMeta.d.ts.map +0 -1
  201. package/dist/client/components/chat/system-prompt/local-storage.d.ts +0 -5
  202. package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +0 -1
  203. package/dist/client/components/chat/system-prompt/types.d.ts +0 -8
  204. package/dist/client/components/chat/system-prompt/types.d.ts.map +0 -1
  205. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +0 -3
  206. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +0 -1
  207. package/dist/client/components/chat/system-prompt-default.d.ts +0 -2
  208. package/dist/client/components/chat/system-prompt-default.d.ts.map +0 -1
  209. package/dist/client/components/chat/trace.d.ts +0 -84
  210. package/dist/client/components/chat/trace.d.ts.map +0 -1
  211. package/dist/client/components/chat/types.d.ts +0 -76
  212. package/dist/client/components/chat/types.d.ts.map +0 -1
  213. package/dist/client/components/chat/useChatMessages.d.ts +0 -76
  214. package/dist/client/components/chat/useChatMessages.d.ts.map +0 -1
  215. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +0 -43
  216. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +0 -1
  217. package/dist/client/components/chat/useChatScrollToBottom.d.ts +0 -14
  218. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +0 -1
  219. package/dist/client/components/chat/useConfig.d.ts +0 -24
  220. package/dist/client/components/chat/useConfig.d.ts.map +0 -1
  221. package/dist/client/components/chat/useHostedChatMode.d.ts +0 -14
  222. package/dist/client/components/chat/useHostedChatMode.d.ts.map +0 -1
  223. package/dist/client/components/chat/useManagedCloudModel.d.ts +0 -14
  224. package/dist/client/components/chat/useManagedCloudModel.d.ts.map +0 -1
  225. package/dist/client/components/chat/utils.d.ts +0 -11
  226. package/dist/client/components/chat/utils.d.ts.map +0 -1
  227. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +0 -12
  228. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +0 -1
  229. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +0 -9
  230. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +0 -1
  231. package/dist/client/components/elicitation/shared/schemaHelpers.d.ts +0 -8
  232. package/dist/client/components/elicitation/shared/schemaHelpers.d.ts.map +0 -1
  233. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +0 -29
  234. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +0 -1
  235. package/dist/client/components/prompts/PromptExecutionPanel.d.ts +0 -13
  236. package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +0 -1
  237. package/dist/client/components/prompts/PromptInputForm.d.ts +0 -9
  238. package/dist/client/components/prompts/PromptInputForm.d.ts.map +0 -1
  239. package/dist/client/components/prompts/PromptMessageCard.d.ts +0 -29
  240. package/dist/client/components/prompts/PromptMessageCard.d.ts.map +0 -1
  241. package/dist/client/components/prompts/PromptResultDisplay.d.ts +0 -34
  242. package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +0 -1
  243. package/dist/client/components/prompts/PromptsList.d.ts +0 -10
  244. package/dist/client/components/prompts/PromptsList.d.ts.map +0 -1
  245. package/dist/client/components/prompts/SavedPromptsList.d.ts +0 -19
  246. package/dist/client/components/prompts/SavedPromptsList.d.ts.map +0 -1
  247. package/dist/client/components/resources/PropsConfigDialog.d.ts +0 -16
  248. package/dist/client/components/resources/PropsConfigDialog.d.ts.map +0 -1
  249. package/dist/client/components/resources/ResourceResultDisplay.d.ts +0 -30
  250. package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +0 -1
  251. package/dist/client/components/resources/ResourcesList.d.ts +0 -10
  252. package/dist/client/components/resources/ResourcesList.d.ts.map +0 -1
  253. package/dist/client/components/shared/CollapsibleJSON.d.ts +0 -6
  254. package/dist/client/components/shared/CollapsibleJSON.d.ts.map +0 -1
  255. package/dist/client/components/shared/InspectorScrollArea.d.ts +0 -9
  256. package/dist/client/components/shared/InspectorScrollArea.d.ts.map +0 -1
  257. package/dist/client/components/shared/JSONDisplay.d.ts +0 -12
  258. package/dist/client/components/shared/JSONDisplay.d.ts.map +0 -1
  259. package/dist/client/components/shared/ListItem.d.ts +0 -24
  260. package/dist/client/components/shared/ListItem.d.ts.map +0 -1
  261. package/dist/client/components/shared/ListTabHeader.d.ts +0 -47
  262. package/dist/client/components/shared/ListTabHeader.d.ts.map +0 -1
  263. package/dist/client/components/shared/MarkdownRenderer.d.ts +0 -15
  264. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +0 -1
  265. package/dist/client/components/shared/SchemaFormField.d.ts +0 -12
  266. package/dist/client/components/shared/SchemaFormField.d.ts.map +0 -1
  267. package/dist/client/components/shared/SearchTabHeader.d.ts +0 -28
  268. package/dist/client/components/shared/SearchTabHeader.d.ts.map +0 -1
  269. package/dist/client/components/shared/StatusIcon.d.ts +0 -12
  270. package/dist/client/components/shared/StatusIcon.d.ts.map +0 -1
  271. package/dist/client/components/shared/index.d.ts +0 -7
  272. package/dist/client/components/shared/index.d.ts.map +0 -1
  273. package/dist/client/components/tools/SaveRequestDialog.d.ts +0 -11
  274. package/dist/client/components/tools/SaveRequestDialog.d.ts.map +0 -1
  275. package/dist/client/components/tools/SavedRequestsList.d.ts +0 -19
  276. package/dist/client/components/tools/SavedRequestsList.d.ts.map +0 -1
  277. package/dist/client/components/tools/ToolExecutionPanel.d.ts +0 -20
  278. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +0 -1
  279. package/dist/client/components/tools/ToolInputForm.d.ts +0 -14
  280. package/dist/client/components/tools/ToolInputForm.d.ts.map +0 -1
  281. package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -25
  282. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +0 -1
  283. package/dist/client/components/tools/ToolsList.d.ts +0 -10
  284. package/dist/client/components/tools/ToolsList.d.ts.map +0 -1
  285. package/dist/client/components/tools/schema-utils.d.ts +0 -13
  286. package/dist/client/components/tools/schema-utils.d.ts.map +0 -1
  287. package/dist/client/components/tools/useToolExecution.d.ts +0 -26
  288. package/dist/client/components/tools/useToolExecution.d.ts.map +0 -1
  289. package/dist/client/components/tools/useToolsTabNavigation.d.ts +0 -35
  290. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +0 -1
  291. package/dist/client/components/ui/MeshGradientCanvas.d.ts +0 -13
  292. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +0 -1
  293. package/dist/client/components/ui/WidgetWrapper.d.ts +0 -12
  294. package/dist/client/components/ui/WidgetWrapper.d.ts.map +0 -1
  295. package/dist/client/components/ui/alert-dialog.d.ts +0 -15
  296. package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
  297. package/dist/client/components/ui/ask-user-questions.d.ts +0 -80
  298. package/dist/client/components/ui/ask-user-questions.d.ts.map +0 -1
  299. package/dist/client/components/ui/badge.d.ts +0 -34
  300. package/dist/client/components/ui/badge.d.ts.map +0 -1
  301. package/dist/client/components/ui/blur-fade.d.ts +0 -25
  302. package/dist/client/components/ui/blur-fade.d.ts.map +0 -1
  303. package/dist/client/components/ui/button.d.ts +0 -34
  304. package/dist/client/components/ui/button.d.ts.map +0 -1
  305. package/dist/client/components/ui/chat-message.d.ts +0 -23
  306. package/dist/client/components/ui/chat-message.d.ts.map +0 -1
  307. package/dist/client/components/ui/checkbox.d.ts +0 -4
  308. package/dist/client/components/ui/checkbox.d.ts.map +0 -1
  309. package/dist/client/components/ui/client-icons.d.ts +0 -20
  310. package/dist/client/components/ui/client-icons.d.ts.map +0 -1
  311. package/dist/client/components/ui/command.d.ts +0 -17
  312. package/dist/client/components/ui/command.d.ts.map +0 -1
  313. package/dist/client/components/ui/dialog.d.ts +0 -37
  314. package/dist/client/components/ui/dialog.d.ts.map +0 -1
  315. package/dist/client/components/ui/dropdown-menu.d.ts +0 -25
  316. package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
  317. package/dist/client/components/ui/dropdown.d.ts +0 -30
  318. package/dist/client/components/ui/dropdown.d.ts.map +0 -1
  319. package/dist/client/components/ui/file-thumbnail.d.ts +0 -9
  320. package/dist/client/components/ui/file-thumbnail.d.ts.map +0 -1
  321. package/dist/client/components/ui/input.d.ts +0 -4
  322. package/dist/client/components/ui/input.d.ts.map +0 -1
  323. package/dist/client/components/ui/kbd.d.ts +0 -3
  324. package/dist/client/components/ui/kbd.d.ts.map +0 -1
  325. package/dist/client/components/ui/label.d.ts +0 -4
  326. package/dist/client/components/ui/label.d.ts.map +0 -1
  327. package/dist/client/components/ui/menu-item.d.ts +0 -52
  328. package/dist/client/components/ui/menu-item.d.ts.map +0 -1
  329. package/dist/client/components/ui/mesh-animation-pause.d.ts +0 -14
  330. package/dist/client/components/ui/mesh-animation-pause.d.ts.map +0 -1
  331. package/dist/client/components/ui/mesh-gradient-colors.d.ts +0 -6
  332. package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +0 -1
  333. package/dist/client/components/ui/mesh-tab-background.d.ts +0 -12
  334. package/dist/client/components/ui/mesh-tab-background.d.ts.map +0 -1
  335. package/dist/client/components/ui/not-found.d.ts +0 -9
  336. package/dist/client/components/ui/not-found.d.ts.map +0 -1
  337. package/dist/client/components/ui/popover.d.ts +0 -6
  338. package/dist/client/components/ui/popover.d.ts.map +0 -1
  339. package/dist/client/components/ui/resizable.d.ts +0 -10
  340. package/dist/client/components/ui/resizable.d.ts.map +0 -1
  341. package/dist/client/components/ui/scroll-area.d.ts +0 -4
  342. package/dist/client/components/ui/scroll-area.d.ts.map +0 -1
  343. package/dist/client/components/ui/select.d.ts +0 -52
  344. package/dist/client/components/ui/select.d.ts.map +0 -1
  345. package/dist/client/components/ui/sheet.d.ts +0 -14
  346. package/dist/client/components/ui/sheet.d.ts.map +0 -1
  347. package/dist/client/components/ui/skeleton.d.ts +0 -4
  348. package/dist/client/components/ui/skeleton.d.ts.map +0 -1
  349. package/dist/client/components/ui/spinner.d.ts +0 -3
  350. package/dist/client/components/ui/spinner.d.ts.map +0 -1
  351. package/dist/client/components/ui/switch.d.ts +0 -22
  352. package/dist/client/components/ui/switch.d.ts.map +0 -1
  353. package/dist/client/components/ui/table.d.ts +0 -9
  354. package/dist/client/components/ui/table.d.ts.map +0 -1
  355. package/dist/client/components/ui/tabs-subtle.d.ts +0 -25
  356. package/dist/client/components/ui/tabs-subtle.d.ts.map +0 -1
  357. package/dist/client/components/ui/text-shimmer.d.ts +0 -11
  358. package/dist/client/components/ui/text-shimmer.d.ts.map +0 -1
  359. package/dist/client/components/ui/textarea.d.ts +0 -4
  360. package/dist/client/components/ui/textarea.d.ts.map +0 -1
  361. package/dist/client/components/ui/tooltip.d.ts +0 -43
  362. package/dist/client/components/ui/tooltip.d.ts.map +0 -1
  363. package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts +0 -19
  364. package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts.map +0 -1
  365. package/dist/client/console-log-bus.d.ts +0 -24
  366. package/dist/client/console-log-bus.d.ts.map +0 -1
  367. package/dist/client/constants/debug-options.d.ts +0 -16
  368. package/dist/client/constants/debug-options.d.ts.map +0 -1
  369. package/dist/client/context/InspectorContext.d.ts +0 -134
  370. package/dist/client/context/InspectorContext.d.ts.map +0 -1
  371. package/dist/client/context/ThemeContext.d.ts +0 -17
  372. package/dist/client/context/ThemeContext.d.ts.map +0 -1
  373. package/dist/client/context/WidgetDebugContext.d.ts +0 -111
  374. package/dist/client/context/WidgetDebugContext.d.ts.map +0 -1
  375. package/dist/client/hooks/use-merge-split.d.ts +0 -36
  376. package/dist/client/hooks/use-merge-split.d.ts.map +0 -1
  377. package/dist/client/hooks/use-proximity-hover-index.d.ts +0 -27
  378. package/dist/client/hooks/use-proximity-hover-index.d.ts.map +0 -1
  379. package/dist/client/hooks/use-proximity-hover.d.ts +0 -26
  380. package/dist/client/hooks/use-proximity-hover.d.ts.map +0 -1
  381. package/dist/client/hooks/use-touch-primary.d.ts +0 -2
  382. package/dist/client/hooks/use-touch-primary.d.ts.map +0 -1
  383. package/dist/client/hooks/useDeviceViewport.d.ts +0 -14
  384. package/dist/client/hooks/useDeviceViewport.d.ts.map +0 -1
  385. package/dist/client/hooks/useHostedSession.d.ts +0 -9
  386. package/dist/client/hooks/useHostedSession.d.ts.map +0 -1
  387. package/dist/client/hooks/useIframeConsole.d.ts +0 -24
  388. package/dist/client/hooks/useIframeConsole.d.ts.map +0 -1
  389. package/dist/client/hooks/useKeyboardShortcuts.d.ts +0 -28
  390. package/dist/client/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  391. package/dist/client/hooks/useMCPPrompts.d.ts +0 -94
  392. package/dist/client/hooks/useMCPPrompts.d.ts.map +0 -1
  393. package/dist/client/hooks/useMcpAppsHostContext.d.ts +0 -27
  394. package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +0 -1
  395. package/dist/client/hooks/usePropsLLM.d.ts +0 -20
  396. package/dist/client/hooks/usePropsLLM.d.ts.map +0 -1
  397. package/dist/client/hooks/useResourceProps.d.ts +0 -14
  398. package/dist/client/hooks/useResourceProps.d.ts.map +0 -1
  399. package/dist/client/hooks/useSavedRequests.d.ts +0 -6
  400. package/dist/client/hooks/useSavedRequests.d.ts.map +0 -1
  401. package/dist/client/hooks/useViewHostProps.d.ts +0 -19
  402. package/dist/client/hooks/useViewHostProps.d.ts.map +0 -1
  403. package/dist/client/index.d.ts.map +0 -1
  404. package/dist/client/lib/elevated.d.ts +0 -28
  405. package/dist/client/lib/elevated.d.ts.map +0 -1
  406. package/dist/client/lib/font-weight.d.ts +0 -10
  407. package/dist/client/lib/font-weight.d.ts.map +0 -1
  408. package/dist/client/lib/icon-context.d.ts +0 -15
  409. package/dist/client/lib/icon-context.d.ts.map +0 -1
  410. package/dist/client/lib/shape-context.d.ts +0 -21
  411. package/dist/client/lib/shape-context.d.ts.map +0 -1
  412. package/dist/client/lib/springs.d.ts +0 -32
  413. package/dist/client/lib/springs.d.ts.map +0 -1
  414. package/dist/client/lib/surface-classes.d.ts +0 -2
  415. package/dist/client/lib/surface-classes.d.ts.map +0 -1
  416. package/dist/client/lib/surface-context.d.ts +0 -7
  417. package/dist/client/lib/surface-context.d.ts.map +0 -1
  418. package/dist/client/lib/utils.d.ts +0 -3
  419. package/dist/client/lib/utils.d.ts.map +0 -1
  420. package/dist/client/mcp-apps/csp.d.ts +0 -26
  421. package/dist/client/mcp-apps/csp.d.ts.map +0 -1
  422. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +0 -17
  423. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +0 -1
  424. package/dist/client/mcp-apps/logging-transport.d.ts +0 -13
  425. package/dist/client/mcp-apps/logging-transport.d.ts.map +0 -1
  426. package/dist/client/rpc-traffic-coalesce.d.ts +0 -7
  427. package/dist/client/rpc-traffic-coalesce.d.ts.map +0 -1
  428. package/dist/client/rpc-traffic-store.d.ts +0 -37
  429. package/dist/client/rpc-traffic-store.d.ts.map +0 -1
  430. package/dist/client/telemetry/capture.d.ts +0 -7
  431. package/dist/client/telemetry/capture.d.ts.map +0 -1
  432. package/dist/client/telemetry/events.d.ts +0 -168
  433. package/dist/client/telemetry/events.d.ts.map +0 -1
  434. package/dist/client/telemetry/index.d.ts +0 -5
  435. package/dist/client/telemetry/index.d.ts.map +0 -1
  436. package/dist/client/telemetry/init.d.ts +0 -2
  437. package/dist/client/telemetry/init.d.ts.map +0 -1
  438. package/dist/client/telemetry/utils.d.ts +0 -7
  439. package/dist/client/telemetry/utils.d.ts.map +0 -1
  440. package/dist/client/types/message-content-block.d.ts +0 -19
  441. package/dist/client/types/message-content-block.d.ts.map +0 -1
  442. package/dist/client/types/pending-requests.d.ts +0 -17
  443. package/dist/client/types/pending-requests.d.ts.map +0 -1
  444. package/dist/client/utils/basePath.d.ts +0 -34
  445. package/dist/client/utils/basePath.d.ts.map +0 -1
  446. package/dist/client/utils/browser.d.ts +0 -5
  447. package/dist/client/utils/browser.d.ts.map +0 -1
  448. package/dist/client/utils/format.d.ts +0 -4
  449. package/dist/client/utils/format.d.ts.map +0 -1
  450. package/dist/client/utils/highlightJson.d.ts +0 -11
  451. package/dist/client/utils/highlightJson.d.ts.map +0 -1
  452. package/dist/client/utils/jsonUtils.d.ts +0 -24
  453. package/dist/client/utils/jsonUtils.d.ts.map +0 -1
  454. package/dist/client/utils/mcpClientUtils.d.ts +0 -131
  455. package/dist/client/utils/mcpClientUtils.d.ts.map +0 -1
  456. package/dist/client/utils/servers.d.ts +0 -19
  457. package/dist/client/utils/servers.d.ts.map +0 -1
  458. package/dist/server/asset-urls.d.ts +0 -18
  459. package/dist/server/asset-urls.d.ts.map +0 -1
  460. package/dist/server/asset-urls.js +0 -17
  461. package/dist/server/cdn-shell.d.ts +0 -18
  462. package/dist/server/cdn-shell.d.ts.map +0 -1
  463. package/dist/server/cdn-shell.js +0 -12
  464. package/dist/server/chunk-3WVGQOQX.js +0 -156
  465. package/dist/server/chunk-BIKA6WIX.js +0 -207
  466. package/dist/server/chunk-H6ZCIKBS.js +0 -63
  467. package/dist/server/chunk-IKTZUWSX.js +0 -0
  468. package/dist/server/chunk-J4FNYLBF.js +0 -54
  469. package/dist/server/chunk-K2F2AJOI.js +0 -619
  470. package/dist/server/chunk-KB6CHWZ4.js +0 -72
  471. package/dist/server/chunk-KD7K27XK.js +0 -77
  472. package/dist/server/chunk-M5TZA42I.js +0 -54
  473. package/dist/server/chunk-OWR2BIBW.js +0 -40
  474. package/dist/server/chunk-PKBMQBKP.js +0 -7
  475. package/dist/server/chunk-UJLXHNQP.js +0 -43
  476. package/dist/server/chunk-WFT4JHYI.js +0 -24
  477. package/dist/server/chunk-XCNS5CIW.js +0 -199
  478. package/dist/server/cli.d.ts +0 -3
  479. package/dist/server/cli.d.ts.map +0 -1
  480. package/dist/server/cli.js +0 -141
  481. package/dist/server/create-dev-api-app.d.ts +0 -4
  482. package/dist/server/create-dev-api-app.d.ts.map +0 -1
  483. package/dist/server/create-dev-api-app.js +0 -11
  484. package/dist/server/dev-callback-redirect.d.ts +0 -3
  485. package/dist/server/dev-callback-redirect.d.ts.map +0 -1
  486. package/dist/server/dev-callback-redirect.js +0 -18
  487. package/dist/server/favicon-links.d.ts +0 -12
  488. package/dist/server/favicon-links.d.ts.map +0 -1
  489. package/dist/server/favicon-links.js +0 -11
  490. package/dist/server/favicon-static.d.ts +0 -4
  491. package/dist/server/favicon-static.d.ts.map +0 -1
  492. package/dist/server/favicon-static.js +0 -8
  493. package/dist/server/index.d.ts.map +0 -1
  494. package/dist/server/middleware.d.ts +0 -40
  495. package/dist/server/middleware.d.ts.map +0 -1
  496. package/dist/server/middleware.js +0 -17
  497. package/dist/server/proxy/index.d.ts +0 -3
  498. package/dist/server/proxy/index.d.ts.map +0 -1
  499. package/dist/server/proxy/index.js +0 -12
  500. package/dist/server/proxy/mcp-proxy.d.ts +0 -101
  501. package/dist/server/proxy/mcp-proxy.d.ts.map +0 -1
  502. package/dist/server/proxy/mcp-proxy.js +0 -10
  503. package/dist/server/proxy/oauth-proxy.d.ts +0 -26
  504. package/dist/server/proxy/oauth-proxy.d.ts.map +0 -1
  505. package/dist/server/proxy/oauth-proxy.js +0 -9
  506. package/dist/server/proxy-routes.d.ts +0 -16
  507. package/dist/server/proxy-routes.d.ts.map +0 -1
  508. package/dist/server/proxy-routes.js +0 -10
  509. package/dist/server/rpc-log-bus.d.ts +0 -17
  510. package/dist/server/rpc-log-bus.d.ts.map +0 -1
  511. package/dist/server/rpc-log-bus.js +0 -77
  512. package/dist/server/server.d.ts +0 -15
  513. package/dist/server/server.d.ts.map +0 -1
  514. package/dist/server/server.js +0 -66
  515. package/dist/server/static-assets.d.ts +0 -5
  516. package/dist/server/static-assets.d.ts.map +0 -1
  517. package/dist/server/static-assets.js +0 -9
  518. package/dist/server/utils.d.ts +0 -33
  519. package/dist/server/utils.d.ts.map +0 -1
  520. package/dist/server/utils.js +0 -17
  521. package/dist/server/version.d.ts +0 -7
  522. package/dist/server/version.d.ts.map +0 -1
  523. package/dist/server/version.js +0 -9
  524. package/dist/server/vite-dev-api-plugin.d.ts +0 -4
  525. package/dist/server/vite-dev-api-plugin.d.ts.map +0 -1
  526. package/dist/server/vite-dev-api-plugin.js +0 -30
  527. package/dist/web/apple-touch-icon.png +0 -0
  528. package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +0 -9
  529. package/dist/web/assets/ChatTab-fclW7HPg.js +0 -18
  530. package/dist/web/assets/ConnectionSettingsTab-DNl63AkH.js +0 -1
  531. package/dist/web/assets/ElicitationTab-B73XazTU.js +0 -1
  532. package/dist/web/assets/FormContext-sV-yByKz.js +0 -1
  533. package/dist/web/assets/ListTabHeader-CrGae306.js +0 -1
  534. package/dist/web/assets/MCPAppsDebugControls-BYLu5GRy.js +0 -34
  535. package/dist/web/assets/ManufactOAuthCallback-Dp3icsBc.js +0 -1
  536. package/dist/web/assets/MarkdownRenderer-CcvZ7qUS.js +0 -47
  537. package/dist/web/assets/McpAppsViewPanel-KD_ZnjfO.js +0 -1
  538. package/dist/web/assets/NotificationsTab-CV9kw9j-.js +0 -1
  539. package/dist/web/assets/OAuthCallback-C9J2xEkV.js +0 -1
  540. package/dist/web/assets/PromptsTab-irNacYfj.js +0 -15
  541. package/dist/web/assets/ResourcesTab-C-4Fd-HY.js +0 -2
  542. package/dist/web/assets/SamplingTab-B7bM9cnF.js +0 -1
  543. package/dist/web/assets/ServerMetadataTab-CnGUw9uD.js +0 -1
  544. package/dist/web/assets/ToolsTab-DBHJRY9V.js +0 -8
  545. package/dist/web/assets/ViewPreview-D7NNsxbe.js +0 -1
  546. package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +0 -1
  547. package/dist/web/assets/brush-DX0UZ_pI.js +0 -1
  548. package/dist/web/assets/button-C8Xa2k4x.js +0 -1
  549. package/dist/web/assets/checkbox-C9WZqT8k.js +0 -1
  550. package/dist/web/assets/code-B14rVdNt.js +0 -1
  551. package/dist/web/assets/createLucideIcon-BEHeJH0M.js +0 -1
  552. package/dist/web/assets/dist-ChWdPMRV.js +0 -21
  553. package/dist/web/assets/index-B5OxiZlj.js +0 -499
  554. package/dist/web/assets/index-bCIH1Sdx.css +0 -1
  555. package/dist/web/assets/input-C0OQCUZy.js +0 -1
  556. package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
  557. package/dist/web/assets/label-CI7JWQOo.js +0 -1
  558. package/dist/web/assets/maximize-2-Br1WQzT2.js +0 -1
  559. package/dist/web/assets/maximize-CJNgRe6S.js +0 -1
  560. package/dist/web/assets/react-CU_d2d5K.js +0 -1
  561. package/dist/web/assets/refresh-cw-B5iaAZKn.js +0 -1
  562. package/dist/web/assets/save-TM6fvNrt.js +0 -1
  563. package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
  564. package/dist/web/assets/select-D6jzbLJn.js +0 -1
  565. package/dist/web/assets/shared-BWLzd0mh.js +0 -1
  566. package/dist/web/assets/sparkles-BGYTDThM.js +0 -1
  567. package/dist/web/assets/tabs-subtle-DkVoZG5s.js +0 -1
  568. package/dist/web/assets/textarea-CRTXuRmE.js +0 -1
  569. package/dist/web/assets/useConfig-CTtYs2lN.js +0 -1
  570. package/dist/web/assets/useViewHostProps-DOJOoXbY.js +0 -1
  571. package/dist/web/assets/zap-BDWHCVHU.js +0 -1
  572. package/dist/web/favicon-96x96.png +0 -0
  573. package/dist/web/favicon-black.svg +0 -5
  574. package/dist/web/favicon-white.svg +0 -5
  575. package/dist/web/favicon.ico +0 -0
  576. package/dist/web/favicon.svg +0 -5
  577. package/dist/web/index.html +0 -89
  578. package/dist/web/providers/anthropic.png +0 -0
  579. package/dist/web/providers/google.png +0 -0
  580. package/dist/web/providers/openai.png +0 -0
  581. package/dist/web/site.webmanifest +0 -21
  582. package/dist/web/web-app-manifest-192x192.png +0 -0
  583. package/dist/web/web-app-manifest-512x512.png +0 -0
  584. /package/dist/{cdn → app}/apple-touch-icon.png +0 -0
  585. /package/dist/{cdn → app}/favicon-96x96.png +0 -0
  586. /package/dist/{cdn → app}/favicon-black.svg +0 -0
  587. /package/dist/{cdn → app}/favicon-white.svg +0 -0
  588. /package/dist/{cdn → app}/favicon.ico +0 -0
  589. /package/dist/{cdn → app}/favicon.svg +0 -0
  590. /package/dist/{cdn → app}/site.webmanifest +0 -0
  591. /package/dist/{cdn → app}/web-app-manifest-192x192.png +0 -0
  592. /package/dist/{cdn → app}/web-app-manifest-512x512.png +0 -0
@@ -1,77 +0,0 @@
1
- // src/server/utils.ts
2
- function isValidUrl(urlString) {
3
- try {
4
- const url = new URL(urlString);
5
- return url.protocol === "http:" || url.protocol === "https:";
6
- } catch {
7
- return false;
8
- }
9
- }
10
- async function findAvailablePort(startPort = 8080, maxAttempts = 100) {
11
- const net = await import("net");
12
- for (let port = startPort; port < startPort + maxAttempts; port++) {
13
- try {
14
- await new Promise((resolve, reject) => {
15
- const server = net.createServer();
16
- server.listen(port, () => {
17
- server.close(() => resolve());
18
- });
19
- server.on("error", (err) => reject(err));
20
- });
21
- return port;
22
- } catch {
23
- continue;
24
- }
25
- }
26
- throw new Error(
27
- `No available port found after trying ${maxAttempts} ports starting from ${startPort}`
28
- );
29
- }
30
- async function isPortAvailable(port) {
31
- const net = await import("net");
32
- return new Promise((resolve) => {
33
- const server = net.createServer();
34
- server.listen(port, () => {
35
- server.close(() => resolve(true));
36
- });
37
- server.on("error", () => resolve(false));
38
- });
39
- }
40
- function parsePortFromArgs() {
41
- const portArgIndex = process.argv.indexOf("--port");
42
- if (portArgIndex !== -1 && portArgIndex + 1 < process.argv.length) {
43
- const portValue = Number.parseInt(process.argv[portArgIndex + 1], 10);
44
- if (!Number.isNaN(portValue) && portValue >= 1 && portValue <= 65535) {
45
- return portValue;
46
- }
47
- }
48
- return null;
49
- }
50
- function hasNoOpenFlag() {
51
- return process.argv.includes("--no-open");
52
- }
53
- function formatErrorResponse(error, context) {
54
- const timestamp = (/* @__PURE__ */ new Date()).toISOString();
55
- const errorMessage = error instanceof Error ? error.message : "Unknown error";
56
- const errorStack = error instanceof Error ? error.stack : void 0;
57
- console.error(`[${timestamp}] Error in ${context}:`, {
58
- message: errorMessage,
59
- stack: errorStack
60
- });
61
- return {
62
- error: errorMessage,
63
- context,
64
- timestamp,
65
- // Only include stack in development mode
66
- ...process.env.NODE_ENV === "development" && errorStack ? { stack: errorStack } : {}
67
- };
68
- }
69
-
70
- export {
71
- isValidUrl,
72
- findAvailablePort,
73
- isPortAvailable,
74
- parsePortFromArgs,
75
- hasNoOpenFlag,
76
- formatErrorResponse
77
- };
@@ -1,54 +0,0 @@
1
- // src/server/static-assets.ts
2
- import { existsSync, readFileSync } from "fs";
3
- import path from "path";
4
- import { fileURLToPath } from "url";
5
- var CONTENT_TYPES = {
6
- ".js": "application/javascript",
7
- ".css": "text/css",
8
- ".svg": "image/svg+xml",
9
- ".png": "image/png",
10
- ".ico": "image/x-icon",
11
- ".webmanifest": "application/manifest+json"
12
- };
13
- function resolveDistCdnDir() {
14
- const here = path.dirname(fileURLToPath(import.meta.url));
15
- for (const dir of [
16
- path.resolve(here, "cdn"),
17
- // dist/cli.js (bundled)
18
- path.resolve(here, "../cdn")
19
- // dist/server/*.js
20
- ]) {
21
- if (existsSync(path.join(dir, "inspector.js"))) {
22
- return dir;
23
- }
24
- }
25
- throw new Error(
26
- "Inspector bundle not found (expected dist/cdn/inspector.js)"
27
- );
28
- }
29
- function registerInspectorStaticAssets(app, basePath = "") {
30
- const cdnDir = resolveDistCdnDir();
31
- const mountPath = `${basePath}/dist/cdn`;
32
- app.get(`${mountPath}/*`, (c) => {
33
- const subPath = c.req.path.slice(mountPath.length);
34
- const relative = subPath.startsWith("/") ? subPath.slice(1) : subPath;
35
- if (!relative || relative.includes("..")) {
36
- return c.notFound();
37
- }
38
- const file = path.resolve(cdnDir, relative);
39
- const root = cdnDir.endsWith(path.sep) ? cdnDir : `${cdnDir}${path.sep}`;
40
- if (!file.startsWith(root) || !existsSync(file)) {
41
- return c.notFound();
42
- }
43
- const ext = path.extname(file);
44
- return c.body(readFileSync(file), 200, {
45
- "Content-Type": CONTENT_TYPES[ext] ?? "application/octet-stream",
46
- "Cache-Control": "public, max-age=3600"
47
- });
48
- });
49
- }
50
-
51
- export {
52
- resolveDistCdnDir,
53
- registerInspectorStaticAssets
54
- };
@@ -1,40 +0,0 @@
1
- import {
2
- registerInspectorProxyRoutes
3
- } from "./chunk-UJLXHNQP.js";
4
-
5
- // src/server/create-dev-api-app.ts
6
- import { Hono } from "hono";
7
- import { cors } from "hono/cors";
8
- import { logger } from "hono/logger";
9
- function createDevApiApp() {
10
- const app = new Hono();
11
- app.use(
12
- "*",
13
- cors({
14
- origin: "*",
15
- allowHeaders: [
16
- "Authorization",
17
- "Content-Type",
18
- "Accept",
19
- "X-Target-URL",
20
- "X-MCP-Target",
21
- "Mcp-Session-Id",
22
- "mcp-session-id",
23
- "mcp-protocol-version",
24
- "X-Server-Id",
25
- "X-Requested-With"
26
- ],
27
- exposeHeaders: ["*"]
28
- })
29
- );
30
- app.use("/inspector/api/*", logger());
31
- registerInspectorProxyRoutes(app, {
32
- oauthProxyAllowedOrigins: [],
33
- oauthProxyAllowLoopback: true
34
- });
35
- return app;
36
- }
37
-
38
- export {
39
- createDevApiApp
40
- };
@@ -1,7 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
-
5
- export {
6
- __publicField
7
- };
@@ -1,43 +0,0 @@
1
- import {
2
- mountMcpProxy
3
- } from "./chunk-XCNS5CIW.js";
4
- import {
5
- mountOAuthProxy
6
- } from "./chunk-K2F2AJOI.js";
7
-
8
- // src/server/proxy-routes.ts
9
- function registerInspectorProxyRoutes(app, config, basePath = "") {
10
- const p = (suffix) => `${basePath}${suffix}`;
11
- const allowLoopback = config?.oauthProxyAllowLoopback ?? false;
12
- const mountOAuth = config?.oauth !== false;
13
- app.get(p("/inspector/health"), (c) => {
14
- return c.json({
15
- status: "ok",
16
- protocol: "mcp-use-inspector-preview",
17
- version: 1,
18
- capabilities: ["view-preview"]
19
- });
20
- });
21
- mountMcpProxy(app, {
22
- path: p("/inspector/api/proxy"),
23
- allowLoopback
24
- });
25
- if (mountOAuth) {
26
- mountOAuthProxy(app, {
27
- basePath: p("/inspector/api/oauth"),
28
- enableLogging: true,
29
- allowedOrigins: config?.oauthProxyAllowedOrigins ?? [],
30
- allowLoopback
31
- });
32
- }
33
- if (config?.autoConnectUrl !== void 0) {
34
- const autoConnectUrl = config.autoConnectUrl;
35
- app.get(p("/inspector/config.json"), (c) => {
36
- return c.json({ autoConnectUrl: autoConnectUrl ?? null });
37
- });
38
- }
39
- }
40
-
41
- export {
42
- registerInspectorProxyRoutes
43
- };
@@ -1,24 +0,0 @@
1
- // src/server/favicon-links.ts
2
- var FAVICON_CACHE_VERSION = "4";
3
- var INSPECTOR_FAVICON_ASSETS = [
4
- "favicon.svg",
5
- "favicon-96x96.png",
6
- "favicon.ico",
7
- "apple-touch-icon.png",
8
- "site.webmanifest",
9
- "web-app-manifest-192x192.png",
10
- "web-app-manifest-512x512.png",
11
- "favicon-black.svg",
12
- "favicon-white.svg"
13
- ];
14
- function renderInspectorFaviconLinks(basePath = "") {
15
- const prefix = basePath.replace(/\/$/, "");
16
- const href = `${prefix}/favicon-black.svg?v=${FAVICON_CACHE_VERSION}`;
17
- return `<link rel="icon" type="image/svg+xml" href="${href}" />`;
18
- }
19
-
20
- export {
21
- FAVICON_CACHE_VERSION,
22
- INSPECTOR_FAVICON_ASSETS,
23
- renderInspectorFaviconLinks
24
- };
@@ -1,199 +0,0 @@
1
- import {
2
- isSafeProxyTarget
3
- } from "./chunk-K2F2AJOI.js";
4
-
5
- // src/server/proxy/mcp-proxy.ts
6
- import { cors } from "hono/cors";
7
- import { logger } from "hono/logger";
8
- function isOpenEndedSseResponse(contentType, contentLength) {
9
- return contentType.includes("text/event-stream") && !contentLength;
10
- }
11
- function mountMcpProxy(app, options = {}) {
12
- const basePath = options.path || "/mcp/proxy";
13
- const enableLogging = options.enableLogging !== false;
14
- app.use(
15
- `${basePath}/*`,
16
- cors({
17
- origin: "*",
18
- allowHeaders: [
19
- "Authorization",
20
- "Content-Type",
21
- "Accept",
22
- "X-Target-URL",
23
- "X-MCP-Target",
24
- "Mcp-Session-Id",
25
- "mcp-session-id",
26
- "mcp-protocol-version",
27
- "X-Server-Id",
28
- "X-Requested-With"
29
- ],
30
- exposeHeaders: ["*"]
31
- })
32
- );
33
- if (enableLogging) {
34
- app.use(`${basePath}/*`, logger());
35
- }
36
- app.all(`${basePath}/*`, async (c) => {
37
- try {
38
- if (options.authenticate) {
39
- const isAuthenticated = await options.authenticate(c);
40
- if (!isAuthenticated) {
41
- return c.json({ error: "Unauthorized" }, 401);
42
- }
43
- }
44
- const targetUrl = c.req.header("X-Target-URL");
45
- if (!targetUrl) {
46
- return c.json(
47
- {
48
- error: "X-Target-URL header is required",
49
- usage: "Set X-Target-URL header to the MCP server URL you want to proxy to"
50
- },
51
- 400
52
- );
53
- }
54
- if (!await isSafeProxyTarget(targetUrl, options.allowLoopback ?? false)) {
55
- return c.json(
56
- {
57
- error: "Invalid target URL",
58
- details: "Target is not allowed by the proxy network policy"
59
- },
60
- 403
61
- );
62
- }
63
- if (options.validateRequest) {
64
- const isValid = await options.validateRequest(targetUrl, c);
65
- if (!isValid) {
66
- return c.json(
67
- {
68
- error: "Invalid target URL",
69
- details: "The requested target URL is not allowed"
70
- },
71
- 403
72
- );
73
- }
74
- }
75
- try {
76
- new URL(targetUrl);
77
- } catch {
78
- return c.json(
79
- {
80
- error: "Invalid target URL format",
81
- details: "The X-Target-URL must be a valid HTTP/HTTPS URL"
82
- },
83
- 400
84
- );
85
- }
86
- const method = c.req.method;
87
- const headers = {};
88
- const requestHeaders = c.req.header();
89
- for (const [key, value] of Object.entries(requestHeaders)) {
90
- const lowerKey = key.toLowerCase();
91
- if (!lowerKey.startsWith("x-proxy-") && !lowerKey.startsWith("x-target-") && !lowerKey.startsWith("x-mcp-") && !lowerKey.startsWith("x-forwarded-") && !lowerKey.startsWith("cf-") && lowerKey !== "x-original-host" && lowerKey !== "host" && lowerKey !== "accept-encoding" && lowerKey !== "cdn-loop") {
92
- headers[key] = value;
93
- }
94
- }
95
- headers["Accept-Encoding"] = "identity";
96
- try {
97
- const targetUrlObj = new URL(targetUrl);
98
- headers.Host = targetUrlObj.host;
99
- } catch {
100
- return c.json({ error: "Invalid target URL" }, 400);
101
- }
102
- const body = method !== "GET" && method !== "HEAD" ? new Uint8Array(await c.req.arrayBuffer()).slice() : void 0;
103
- const response = await fetch(targetUrl, {
104
- method,
105
- headers,
106
- body,
107
- redirect: "manual"
108
- });
109
- if (response.status >= 300 && response.status < 400) {
110
- const location = response.headers.get("location");
111
- if (location) {
112
- const redirectUrl = new URL(location, targetUrl).toString();
113
- if (!await isSafeProxyTarget(
114
- redirectUrl,
115
- options.allowLoopback ?? false
116
- ) || options.validateRequest && !await options.validateRequest(redirectUrl, c)) {
117
- return c.json({ error: "Redirect target is not allowed" }, 403);
118
- }
119
- const redirectResponse = await fetch(redirectUrl, {
120
- method,
121
- headers,
122
- body,
123
- redirect: "manual"
124
- });
125
- const redirectHeaders = {};
126
- redirectResponse.headers.forEach((value, key) => {
127
- const lowerKey = key.toLowerCase();
128
- if (lowerKey !== "content-encoding" && lowerKey !== "transfer-encoding" && lowerKey !== "content-length") {
129
- redirectHeaders[key] = value;
130
- }
131
- });
132
- return new Response(redirectResponse.body, {
133
- status: redirectResponse.status,
134
- statusText: redirectResponse.statusText,
135
- headers: redirectHeaders
136
- });
137
- }
138
- }
139
- const responseHeaders = {};
140
- response.headers.forEach((value, key) => {
141
- const lowerKey = key.toLowerCase();
142
- if (lowerKey !== "content-encoding" && lowerKey !== "transfer-encoding" && lowerKey !== "content-length") {
143
- responseHeaders[key] = value;
144
- }
145
- });
146
- const contentType = response.headers.get("content-type") || "";
147
- const upstreamContentLength = response.headers.get("content-length");
148
- const isTrueStream = isOpenEndedSseResponse(
149
- contentType,
150
- upstreamContentLength
151
- );
152
- if (isTrueStream) {
153
- return new Response(response.body, {
154
- status: response.status,
155
- statusText: response.statusText,
156
- headers: responseHeaders
157
- });
158
- }
159
- const bodyBuffer = await response.arrayBuffer();
160
- responseHeaders["Content-Length"] = String(bodyBuffer.byteLength);
161
- return new Response(bodyBuffer, {
162
- status: response.status,
163
- statusText: response.statusText,
164
- headers: responseHeaders
165
- });
166
- } catch (error) {
167
- const message = error instanceof Error ? error.message : "Unknown error";
168
- const targetUrl = c.req.header("X-Target-URL");
169
- const isConnectionRefused = error instanceof Error && (error.message.includes("ECONNREFUSED") || error.message.includes("fetch failed"));
170
- if (isConnectionRefused) {
171
- console.warn(
172
- `[MCP Proxy] Connection refused to ${targetUrl || "unknown target"} - server may not be running`
173
- );
174
- } else {
175
- console.error(
176
- "[MCP Proxy] Request failed:",
177
- message,
178
- "\nTarget URL:",
179
- targetUrl || "unknown",
180
- "\nError:",
181
- error
182
- );
183
- }
184
- return c.json(
185
- {
186
- error: "Proxy request failed",
187
- details: message,
188
- targetUrl: targetUrl || "unknown"
189
- },
190
- 500
191
- );
192
- }
193
- });
194
- }
195
-
196
- export {
197
- isOpenEndedSseResponse,
198
- mountMcpProxy
199
- };
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=cli.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/server/cli.ts"],"names":[],"mappings":""}
@@ -1,141 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- findAvailablePort,
4
- isValidUrl
5
- } from "./chunk-KD7K27XK.js";
6
- import {
7
- registerInspectorCdnShell
8
- } from "./chunk-BIKA6WIX.js";
9
- import "./chunk-M5TZA42I.js";
10
- import {
11
- getInspectorVersion
12
- } from "./chunk-3WVGQOQX.js";
13
- import "./chunk-H6ZCIKBS.js";
14
- import {
15
- registerInspectorProxyRoutes
16
- } from "./chunk-UJLXHNQP.js";
17
- import "./chunk-IKTZUWSX.js";
18
- import "./chunk-XCNS5CIW.js";
19
- import "./chunk-K2F2AJOI.js";
20
- import "./chunk-J4FNYLBF.js";
21
- import "./chunk-WFT4JHYI.js";
22
- import "./chunk-PKBMQBKP.js";
23
-
24
- // src/server/cli.ts
25
- import { serve } from "@hono/node-server";
26
- import { Hono } from "hono";
27
- import { cors } from "hono/cors";
28
- import { logger } from "hono/logger";
29
- import open from "open";
30
- var args = process.argv.slice(2);
31
- var mcpUrl;
32
- var startPort = 8080;
33
- var noOpen = false;
34
- for (let i = 0; i < args.length; i++) {
35
- if (args[i] === "--url") {
36
- if (i + 1 >= args.length || args[i + 1].startsWith("-")) {
37
- console.error("Error: --url requires a value");
38
- process.exit(1);
39
- }
40
- const url = args[i + 1];
41
- if (!isValidUrl(url)) {
42
- console.error(`Error: Invalid URL format: ${url}`);
43
- console.error("URL must start with http://, https://, ws://, or wss://");
44
- process.exit(1);
45
- }
46
- mcpUrl = url;
47
- i++;
48
- } else if (args[i] === "--port") {
49
- if (i + 1 >= args.length || args[i + 1].startsWith("-")) {
50
- console.error("Error: --port requires a value");
51
- process.exit(1);
52
- }
53
- const parsedPort = Number.parseInt(args[i + 1], 10);
54
- if (Number.isNaN(parsedPort) || parsedPort < 1 || parsedPort > 65535) {
55
- console.error(
56
- `Error: Port must be a number between 1 and 65535, got: ${args[i + 1]}`
57
- );
58
- process.exit(1);
59
- }
60
- startPort = parsedPort;
61
- i++;
62
- } else if (args[i] === "--no-open") {
63
- noOpen = true;
64
- } else if (args[i] === "--version" || args[i] === "-v") {
65
- console.log(getInspectorVersion());
66
- process.exit(0);
67
- } else if (args[i] === "--help" || args[i] === "-h") {
68
- console.log(`
69
- MCP Inspector - Inspect and debug MCP servers
70
-
71
- Usage:
72
- npx @mcp-use/inspector [options]
73
-
74
- Options:
75
- --url <url> MCP server URL to auto-connect to (e.g., http://localhost:3000/mcp)
76
- --port <port> Starting port to try (default: 8080, will find next available)
77
- --no-open Do not auto-open inspector in browser
78
- --version, -v Show the inspector version
79
- --help, -h Show this help message
80
-
81
- Examples:
82
- npx @mcp-use/inspector --url http://localhost:3000/mcp
83
- npx @mcp-use/inspector --url http://localhost:3000/mcp --port 9000
84
- npx @mcp-use/inspector
85
- `);
86
- process.exit(0);
87
- } else {
88
- console.error(`Error: Unknown option: ${args[i]}`);
89
- console.error("Run with --help to see available options.");
90
- process.exit(1);
91
- }
92
- }
93
- var app = new Hono();
94
- app.use(
95
- "*",
96
- cors({
97
- origin: "*",
98
- exposeHeaders: ["*"]
99
- })
100
- );
101
- app.use("/inspector/api/proxy/*", logger());
102
- var inspectorMode = process.env.MCP_INSPECTOR_MODE ?? (process.env.RAILWAY_ENVIRONMENT_NAME ? "cloud" : "standalone");
103
- registerInspectorProxyRoutes(app, {
104
- autoConnectUrl: mcpUrl,
105
- oauthProxyAllowedOrigins: [],
106
- oauthProxyAllowLoopback: inspectorMode === "standalone"
107
- });
108
- registerInspectorCdnShell(app, {
109
- inspectorMode,
110
- manufactChatUrl: process.env.MANUFACT_CHAT_URL
111
- });
112
- async function startServer() {
113
- try {
114
- const port = await findAvailablePort(startPort);
115
- serve({
116
- fetch: app.fetch,
117
- port
118
- });
119
- console.log(`\u{1F680} MCP Inspector running on http://localhost:${port}`);
120
- if (mcpUrl) {
121
- console.log(`\u{1F4E1} Auto-connecting to: ${mcpUrl}`);
122
- }
123
- if (!noOpen) {
124
- const openUrl = new URL(`http://localhost:${port}/inspector`);
125
- if (mcpUrl) {
126
- openUrl.searchParams.set("autoConnect", mcpUrl);
127
- }
128
- try {
129
- await open(openUrl.toString());
130
- console.log(`\u{1F310} Browser opened`);
131
- } catch {
132
- console.log(`\u{1F310} Please open ${openUrl} in your browser`);
133
- }
134
- }
135
- return { port, fetch: app.fetch };
136
- } catch (error) {
137
- console.error("Failed to start server:", error);
138
- process.exit(1);
139
- }
140
- }
141
- startServer();
@@ -1,4 +0,0 @@
1
- import { Hono } from "hono";
2
- /** Hono app for inspector dev API routes (MCP proxy + OAuth BFF). */
3
- export declare function createDevApiApp(): Hono;
4
- //# sourceMappingURL=create-dev-api-app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-dev-api-app.d.ts","sourceRoot":"","sources":["../../src/server/create-dev-api-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAK5B,qEAAqE;AACrE,wBAAgB,eAAe,IAAI,IAAI,CA+BtC"}
@@ -1,11 +0,0 @@
1
- import {
2
- createDevApiApp
3
- } from "./chunk-OWR2BIBW.js";
4
- import "./chunk-UJLXHNQP.js";
5
- import "./chunk-IKTZUWSX.js";
6
- import "./chunk-XCNS5CIW.js";
7
- import "./chunk-K2F2AJOI.js";
8
- import "./chunk-PKBMQBKP.js";
9
- export {
10
- createDevApiApp
11
- };
@@ -1,3 +0,0 @@
1
- /** Resolve legacy root callback aliases without redirecting canonical inspector routes. */
2
- export declare function getDevCallbackRedirect(rawUrl: string): string | null;
3
- //# sourceMappingURL=dev-callback-redirect.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,18 +0,0 @@
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,12 +0,0 @@
1
- /** Bust Chrome's aggressive favicon cache when the asset changes. */
2
- export declare const FAVICON_CACHE_VERSION = "4";
3
- /** Static favicon assets copied to CDN / public alongside the inspector bundle. */
4
- export declare const INSPECTOR_FAVICON_ASSETS: readonly ["favicon.svg", "favicon-96x96.png", "favicon.ico", "apple-touch-icon.png", "site.webmanifest", "web-app-manifest-192x192.png", "web-app-manifest-512x512.png", "favicon-black.svg", "favicon-white.svg"];
5
- /**
6
- * Render `<link>` tags for inspector favicons.
7
- *
8
- * Uses same-origin `favicon-black.svg` (light icon in all color schemes).
9
- * Do not point at inspector-cdn — production CDN still ships a dark-mode SVG.
10
- */
11
- export declare function renderInspectorFaviconLinks(basePath?: string): string;
12
- //# sourceMappingURL=favicon-links.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"favicon-links.d.ts","sourceRoot":"","sources":["../../src/server/favicon-links.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,oNAU3B,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,SAAK,GAAG,MAAM,CAIjE"}
@@ -1,11 +0,0 @@
1
- import {
2
- FAVICON_CACHE_VERSION,
3
- INSPECTOR_FAVICON_ASSETS,
4
- renderInspectorFaviconLinks
5
- } from "./chunk-WFT4JHYI.js";
6
- import "./chunk-PKBMQBKP.js";
7
- export {
8
- FAVICON_CACHE_VERSION,
9
- INSPECTOR_FAVICON_ASSETS,
10
- renderInspectorFaviconLinks
11
- };
@@ -1,4 +0,0 @@
1
- import type { Hono } from "hono";
2
- /** Serve favicon assets from the local package (not inspector-cdn). */
3
- export declare function registerInspectorFaviconStatic(app: Hono, basePath?: string): void;
4
- //# sourceMappingURL=favicon-static.d.ts.map