@mcp-use/inspector 20.0.0-beta.5 → 20.0.0-beta.50

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 (580) hide show
  1. package/README.md +31 -78
  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 +332 -1384
  8. package/dist/client/index.d.ts +1405 -50
  9. package/dist/client/index.js +165 -24019
  10. package/dist/server/index.d.ts +79 -7
  11. package/dist/server/index.js +370 -22
  12. package/package.json +77 -35
  13. package/dist/cdn/AnimatePresence-Dcw-FOy8.js +0 -393
  14. package/dist/cdn/ChatTab-B255lH5i.js +0 -6744
  15. package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
  16. package/dist/cdn/ConnectionSettingsForm-DF-NS58d.js +0 -929
  17. package/dist/cdn/ConnectionSettingsTab-dI-Cqe79.js +0 -150
  18. package/dist/cdn/ElicitationTab-CL1KJ0bz.js +0 -654
  19. package/dist/cdn/FormContext-tmgN_Vdr.js +0 -135
  20. package/dist/cdn/InspectorContext-UjtEbNod.js +0 -123
  21. package/dist/cdn/JSONDisplay-BFxf5oEu.js +0 -324
  22. package/dist/cdn/ListTabHeader-Cv-GmtGF.js +0 -88
  23. package/dist/cdn/ManufactOAuthCallback-B98kSYCj.js +0 -31
  24. package/dist/cdn/MarkdownRenderer-Ba7nA4Ie.js +0 -3610
  25. package/dist/cdn/NotificationsTab-CeImSrhx.js +0 -290
  26. package/dist/cdn/OAuthCallback-Blc2Asxc.js +0 -58
  27. package/dist/cdn/PromptsTab-BYKnY7Rp.js +0 -901
  28. package/dist/cdn/ResourcesTab-BGualKW-.js +0 -564
  29. package/dist/cdn/SamplingTab-BeZBUeni.js +0 -658
  30. package/dist/cdn/ServerMetadataTab-CvrKX8fz.js +0 -244
  31. package/dist/cdn/StatusIcon-D0-ARyOh.js +0 -66
  32. package/dist/cdn/ToolsTab-j6n4O_3s.js +0 -2033
  33. package/dist/cdn/ViewPreview-DihyG6Qd.js +0 -238
  34. package/dist/cdn/WidgetDebugContext-D4usL_MA.js +0 -324
  35. package/dist/cdn/WidgetWrapper-B4H3Fek7.js +0 -2210
  36. package/dist/cdn/basePath-B8HuhIMu.js +0 -25
  37. package/dist/cdn/bell-CGjAO_0s.js +0 -10
  38. package/dist/cdn/browser-CbQIH4w2.js +0 -42
  39. package/dist/cdn/brush-B_mKhyxG.js +0 -17
  40. package/dist/cdn/card-DgiYnSg-.js +0 -41
  41. package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
  42. package/dist/cdn/checkbox-By0FklhG.js +0 -20
  43. package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
  44. package/dist/cdn/clock-CmUbSx_B.js +0 -12
  45. package/dist/cdn/code-V_0nf5rg.js +0 -10
  46. package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
  47. package/dist/cdn/dialog-BsDpuJd3.js +0 -1028
  48. package/dist/cdn/dist-DaMB0Su9.js +0 -616
  49. package/dist/cdn/dist-DbX5yidW.js +0 -2306
  50. package/dist/cdn/external-link-CjmfT6rW.js +0 -17
  51. package/dist/cdn/eye-B7H96av8.js +0 -29
  52. package/dist/cdn/folder-open-B3lu2rG_.js +0 -7
  53. package/dist/cdn/hash-BVQnWi7q.js +0 -33
  54. package/dist/cdn/history-Csw4rb44.js +0 -17
  55. package/dist/cdn/index-browser-DkQOzkvX.js +0 -1934
  56. package/dist/cdn/info-CNiOwqkf.js +0 -19
  57. package/dist/cdn/input-C2OBd4PJ.js +0 -12160
  58. package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
  59. package/dist/cdn/inspector.css +0 -2
  60. package/dist/cdn/inspector.js +0 -24523
  61. package/dist/cdn/jsx-runtime-CIxvMpEo.js +0 -180
  62. package/dist/cdn/label-B9Jmm9be.js +0 -60
  63. package/dist/cdn/loader-circle-BLy9A_pp.js +0 -7
  64. package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
  65. package/dist/cdn/maximize-2-CH5Lq90B.js +0 -21
  66. package/dist/cdn/maximize-BALCV_ep.js +0 -21
  67. package/dist/cdn/message-square-BnxdpJxZ.js +0 -7
  68. package/dist/cdn/not-found-DEtSM_Wd.js +0 -34
  69. package/dist/cdn/play-vuZ5PLnI.js +0 -7
  70. package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
  71. package/dist/cdn/providers/anthropic.png +0 -0
  72. package/dist/cdn/providers/google.png +0 -0
  73. package/dist/cdn/providers/openai.png +0 -0
  74. package/dist/cdn/react-BIs9pQ3H.js +0 -926
  75. package/dist/cdn/react-BajV-X4P.js +0 -5425
  76. package/dist/cdn/refresh-cw-BXY-Pa0U.js +0 -21
  77. package/dist/cdn/save-Tgil_AJZ.js +0 -34
  78. package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
  79. package/dist/cdn/select-DDdiIPR2.js +0 -2594
  80. package/dist/cdn/servers-Dm72iTpY.js +0 -26
  81. package/dist/cdn/shared-DaILIQPP.js +0 -1700
  82. package/dist/cdn/sheet-Br_l2kry.js +0 -2077
  83. package/dist/cdn/sparkles-BntO2rDR.js +0 -23
  84. package/dist/cdn/spinner-jQtC7EBj.js +0 -15
  85. package/dist/cdn/square-check-big-BvwQ17Bl.js +0 -10
  86. package/dist/cdn/switch-C3IyQuid.js +0 -664
  87. package/dist/cdn/tabs-subtle-CkdI6Mac.js +0 -787
  88. package/dist/cdn/telemetry-DabTAQ8x.js +0 -240
  89. package/dist/cdn/textarea-DSbwcFVt.js +0 -14
  90. package/dist/cdn/trash-2-RwpJY5SL.js +0 -25
  91. package/dist/cdn/useAriaLabelledBy-DqAdnppm.js +0 -29
  92. package/dist/cdn/useCompositeItem-BRqEzYh-.js +0 -26
  93. package/dist/cdn/useConfig-Btmh8wjJ.js +0 -235
  94. package/dist/cdn/useSavedRequests-Ci2I919u.js +0 -51
  95. package/dist/cdn/useViewHostProps-B6SKeeH9.js +0 -349
  96. package/dist/cdn/wrench-DzGmCfnb.js +0 -7
  97. package/dist/cdn/x-C3vRQIYu.js +0 -10
  98. package/dist/cdn/zap-Mb-pbw2X.js +0 -10
  99. package/dist/client/auth/manufact-auth.d.ts +0 -32
  100. package/dist/client/auth/manufact-auth.d.ts.map +0 -1
  101. package/dist/client/chat-history/ChatHistoryHeader.d.ts +0 -4
  102. package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +0 -1
  103. package/dist/client/chat-history/ChatHistoryPanel.d.ts +0 -28
  104. package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +0 -1
  105. package/dist/client/chat-history/ChatHistoryRail.d.ts +0 -5
  106. package/dist/client/chat-history/ChatHistoryRail.d.ts.map +0 -1
  107. package/dist/client/chat-history/ChatList.d.ts +0 -18
  108. package/dist/client/chat-history/ChatList.d.ts.map +0 -1
  109. package/dist/client/chat-history/ChatTitleReveal.d.ts +0 -10
  110. package/dist/client/chat-history/ChatTitleReveal.d.ts.map +0 -1
  111. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +0 -13
  112. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +0 -1
  113. package/dist/client/chat-history/chat-title.d.ts +0 -10
  114. package/dist/client/chat-history/chat-title.d.ts.map +0 -1
  115. package/dist/client/chat-history/providers/local-storage.d.ts +0 -21
  116. package/dist/client/chat-history/providers/local-storage.d.ts.map +0 -1
  117. package/dist/client/chat-history/types.d.ts +0 -39
  118. package/dist/client/chat-history/types.d.ts.map +0 -1
  119. package/dist/client/chat-history/useChatHistory.d.ts +0 -20
  120. package/dist/client/chat-history/useChatHistory.d.ts.map +0 -1
  121. package/dist/client/chat-history/useChatTitleGeneration.d.ts +0 -17
  122. package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +0 -1
  123. package/dist/client/components/AddToClientDropdown.d.ts +0 -52
  124. package/dist/client/components/AddToClientDropdown.d.ts.map +0 -1
  125. package/dist/client/components/ChatTab.d.ts +0 -98
  126. package/dist/client/components/ChatTab.d.ts.map +0 -1
  127. package/dist/client/components/IframeConsole.d.ts +0 -7
  128. package/dist/client/components/IframeConsole.d.ts.map +0 -1
  129. package/dist/client/components/MCPAppsDebugControls.d.ts +0 -19
  130. package/dist/client/components/MCPAppsDebugControls.d.ts.map +0 -1
  131. package/dist/client/components/PromptsTab.d.ts +0 -34
  132. package/dist/client/components/PromptsTab.d.ts.map +0 -1
  133. package/dist/client/components/ResourcesTab.d.ts +0 -31
  134. package/dist/client/components/ResourcesTab.d.ts.map +0 -1
  135. package/dist/client/components/ToolsTab.d.ts +0 -39
  136. package/dist/client/components/ToolsTab.d.ts.map +0 -1
  137. package/dist/client/components/chat/AssistantMessage.d.ts +0 -10
  138. package/dist/client/components/chat/AssistantMessage.d.ts.map +0 -1
  139. package/dist/client/components/chat/ChatHeader.d.ts +0 -70
  140. package/dist/client/components/chat/ChatHeader.d.ts.map +0 -1
  141. package/dist/client/components/chat/ChatInput.d.ts +0 -29
  142. package/dist/client/components/chat/ChatInput.d.ts.map +0 -1
  143. package/dist/client/components/chat/ChatInputArea.d.ts +0 -65
  144. package/dist/client/components/chat/ChatInputArea.d.ts.map +0 -1
  145. package/dist/client/components/chat/ChatLandingForm.d.ts +0 -15
  146. package/dist/client/components/chat/ChatLandingForm.d.ts.map +0 -1
  147. package/dist/client/components/chat/ChatManagedNotice.d.ts +0 -10
  148. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +0 -1
  149. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +0 -7
  150. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +0 -1
  151. package/dist/client/components/chat/ChatScrollTopFade.d.ts +0 -7
  152. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +0 -1
  153. package/dist/client/components/chat/ChatTraceView.d.ts +0 -7
  154. package/dist/client/components/chat/ChatTraceView.d.ts.map +0 -1
  155. package/dist/client/components/chat/ConfigurationDialog.d.ts +0 -42
  156. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +0 -1
  157. package/dist/client/components/chat/ConfigureEmptyState.d.ts +0 -6
  158. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +0 -1
  159. package/dist/client/components/chat/CopyButton.d.ts +0 -10
  160. package/dist/client/components/chat/CopyButton.d.ts.map +0 -1
  161. package/dist/client/components/chat/FloatingChatElicitation.d.ts +0 -10
  162. package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +0 -1
  163. package/dist/client/components/chat/McpReconnectBanner.d.ts +0 -10
  164. package/dist/client/components/chat/McpReconnectBanner.d.ts.map +0 -1
  165. package/dist/client/components/chat/MessageList.d.ts +0 -47
  166. package/dist/client/components/chat/MessageList.d.ts.map +0 -1
  167. package/dist/client/components/chat/MessageMetaActions.d.ts +0 -7
  168. package/dist/client/components/chat/MessageMetaActions.d.ts.map +0 -1
  169. package/dist/client/components/chat/PromptResultsList.d.ts +0 -8
  170. package/dist/client/components/chat/PromptResultsList.d.ts.map +0 -1
  171. package/dist/client/components/chat/PromptsDropdown.d.ts +0 -11
  172. package/dist/client/components/chat/PromptsDropdown.d.ts.map +0 -1
  173. package/dist/client/components/chat/StreamingAssistantContent.d.ts +0 -7
  174. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +0 -1
  175. package/dist/client/components/chat/SystemPromptButton.d.ts +0 -11
  176. package/dist/client/components/chat/SystemPromptButton.d.ts.map +0 -1
  177. package/dist/client/components/chat/ToolCallDisplay.d.ts +0 -10
  178. package/dist/client/components/chat/ToolCallDisplay.d.ts.map +0 -1
  179. package/dist/client/components/chat/ToolResultRenderer.d.ts +0 -15
  180. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +0 -1
  181. package/dist/client/components/chat/ToolSelector.d.ts +0 -13
  182. package/dist/client/components/chat/ToolSelector.d.ts.map +0 -1
  183. package/dist/client/components/chat/UserMessage.d.ts +0 -10
  184. package/dist/client/components/chat/UserMessage.d.ts.map +0 -1
  185. package/dist/client/components/chat/chat-bar-styles.d.ts +0 -6
  186. package/dist/client/components/chat/chat-bar-styles.d.ts.map +0 -1
  187. package/dist/client/components/chat/chatModeStorage.d.ts +0 -11
  188. package/dist/client/components/chat/chatModeStorage.d.ts.map +0 -1
  189. package/dist/client/components/chat/conversion.d.ts +0 -19
  190. package/dist/client/components/chat/conversion.d.ts.map +0 -1
  191. package/dist/client/components/chat/freeTier.d.ts +0 -32
  192. package/dist/client/components/chat/freeTier.d.ts.map +0 -1
  193. package/dist/client/components/chat/managedChatNotice.d.ts +0 -16
  194. package/dist/client/components/chat/managedChatNotice.d.ts.map +0 -1
  195. package/dist/client/components/chat/providerMeta.d.ts +0 -27
  196. package/dist/client/components/chat/providerMeta.d.ts.map +0 -1
  197. package/dist/client/components/chat/system-prompt/local-storage.d.ts +0 -5
  198. package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +0 -1
  199. package/dist/client/components/chat/system-prompt/types.d.ts +0 -8
  200. package/dist/client/components/chat/system-prompt/types.d.ts.map +0 -1
  201. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +0 -3
  202. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +0 -1
  203. package/dist/client/components/chat/system-prompt-default.d.ts +0 -2
  204. package/dist/client/components/chat/system-prompt-default.d.ts.map +0 -1
  205. package/dist/client/components/chat/trace.d.ts +0 -84
  206. package/dist/client/components/chat/trace.d.ts.map +0 -1
  207. package/dist/client/components/chat/types.d.ts +0 -75
  208. package/dist/client/components/chat/types.d.ts.map +0 -1
  209. package/dist/client/components/chat/useChatMessages.d.ts +0 -76
  210. package/dist/client/components/chat/useChatMessages.d.ts.map +0 -1
  211. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +0 -43
  212. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +0 -1
  213. package/dist/client/components/chat/useChatScrollToBottom.d.ts +0 -14
  214. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +0 -1
  215. package/dist/client/components/chat/useConfig.d.ts +0 -24
  216. package/dist/client/components/chat/useConfig.d.ts.map +0 -1
  217. package/dist/client/components/chat/useHostedChatMode.d.ts +0 -14
  218. package/dist/client/components/chat/useHostedChatMode.d.ts.map +0 -1
  219. package/dist/client/components/chat/useManagedCloudModel.d.ts +0 -14
  220. package/dist/client/components/chat/useManagedCloudModel.d.ts.map +0 -1
  221. package/dist/client/components/chat/utils.d.ts +0 -11
  222. package/dist/client/components/chat/utils.d.ts.map +0 -1
  223. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +0 -12
  224. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +0 -1
  225. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +0 -9
  226. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +0 -1
  227. package/dist/client/components/elicitation/shared/schemaHelpers.d.ts +0 -8
  228. package/dist/client/components/elicitation/shared/schemaHelpers.d.ts.map +0 -1
  229. package/dist/client/components/prompts/PromptExecutionPanel.d.ts +0 -13
  230. package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +0 -1
  231. package/dist/client/components/prompts/PromptInputForm.d.ts +0 -9
  232. package/dist/client/components/prompts/PromptInputForm.d.ts.map +0 -1
  233. package/dist/client/components/prompts/PromptMessageCard.d.ts +0 -29
  234. package/dist/client/components/prompts/PromptMessageCard.d.ts.map +0 -1
  235. package/dist/client/components/prompts/PromptResultDisplay.d.ts +0 -34
  236. package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +0 -1
  237. package/dist/client/components/prompts/PromptsList.d.ts +0 -10
  238. package/dist/client/components/prompts/PromptsList.d.ts.map +0 -1
  239. package/dist/client/components/prompts/SavedPromptsList.d.ts +0 -19
  240. package/dist/client/components/prompts/SavedPromptsList.d.ts.map +0 -1
  241. package/dist/client/components/resources/PropsConfigDialog.d.ts +0 -16
  242. package/dist/client/components/resources/PropsConfigDialog.d.ts.map +0 -1
  243. package/dist/client/components/resources/ResourceResultDisplay.d.ts +0 -30
  244. package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +0 -1
  245. package/dist/client/components/resources/ResourcesList.d.ts +0 -10
  246. package/dist/client/components/resources/ResourcesList.d.ts.map +0 -1
  247. package/dist/client/components/shared/CollapsibleJSON.d.ts +0 -6
  248. package/dist/client/components/shared/CollapsibleJSON.d.ts.map +0 -1
  249. package/dist/client/components/shared/InspectorScrollArea.d.ts +0 -9
  250. package/dist/client/components/shared/InspectorScrollArea.d.ts.map +0 -1
  251. package/dist/client/components/shared/JSONDisplay.d.ts +0 -12
  252. package/dist/client/components/shared/JSONDisplay.d.ts.map +0 -1
  253. package/dist/client/components/shared/ListItem.d.ts +0 -24
  254. package/dist/client/components/shared/ListItem.d.ts.map +0 -1
  255. package/dist/client/components/shared/ListTabHeader.d.ts +0 -47
  256. package/dist/client/components/shared/ListTabHeader.d.ts.map +0 -1
  257. package/dist/client/components/shared/MarkdownRenderer.d.ts +0 -15
  258. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +0 -1
  259. package/dist/client/components/shared/SchemaFormField.d.ts +0 -12
  260. package/dist/client/components/shared/SchemaFormField.d.ts.map +0 -1
  261. package/dist/client/components/shared/SearchTabHeader.d.ts +0 -28
  262. package/dist/client/components/shared/SearchTabHeader.d.ts.map +0 -1
  263. package/dist/client/components/shared/StatusIcon.d.ts +0 -12
  264. package/dist/client/components/shared/StatusIcon.d.ts.map +0 -1
  265. package/dist/client/components/shared/index.d.ts +0 -7
  266. package/dist/client/components/shared/index.d.ts.map +0 -1
  267. package/dist/client/components/tools/SaveRequestDialog.d.ts +0 -11
  268. package/dist/client/components/tools/SaveRequestDialog.d.ts.map +0 -1
  269. package/dist/client/components/tools/SavedRequestsList.d.ts +0 -19
  270. package/dist/client/components/tools/SavedRequestsList.d.ts.map +0 -1
  271. package/dist/client/components/tools/ToolExecutionPanel.d.ts +0 -20
  272. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +0 -1
  273. package/dist/client/components/tools/ToolInputForm.d.ts +0 -14
  274. package/dist/client/components/tools/ToolInputForm.d.ts.map +0 -1
  275. package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -24
  276. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +0 -1
  277. package/dist/client/components/tools/ToolsList.d.ts +0 -10
  278. package/dist/client/components/tools/ToolsList.d.ts.map +0 -1
  279. package/dist/client/components/tools/schema-utils.d.ts +0 -13
  280. package/dist/client/components/tools/schema-utils.d.ts.map +0 -1
  281. package/dist/client/components/tools/useToolExecution.d.ts +0 -26
  282. package/dist/client/components/tools/useToolExecution.d.ts.map +0 -1
  283. package/dist/client/components/tools/useToolsTabNavigation.d.ts +0 -35
  284. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +0 -1
  285. package/dist/client/components/ui/MeshGradientCanvas.d.ts +0 -13
  286. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +0 -1
  287. package/dist/client/components/ui/WidgetWrapper.d.ts +0 -12
  288. package/dist/client/components/ui/WidgetWrapper.d.ts.map +0 -1
  289. package/dist/client/components/ui/alert-dialog.d.ts +0 -15
  290. package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
  291. package/dist/client/components/ui/ask-user-questions.d.ts +0 -80
  292. package/dist/client/components/ui/ask-user-questions.d.ts.map +0 -1
  293. package/dist/client/components/ui/badge.d.ts +0 -34
  294. package/dist/client/components/ui/badge.d.ts.map +0 -1
  295. package/dist/client/components/ui/blur-fade.d.ts +0 -25
  296. package/dist/client/components/ui/blur-fade.d.ts.map +0 -1
  297. package/dist/client/components/ui/button.d.ts +0 -34
  298. package/dist/client/components/ui/button.d.ts.map +0 -1
  299. package/dist/client/components/ui/chat-message.d.ts +0 -23
  300. package/dist/client/components/ui/chat-message.d.ts.map +0 -1
  301. package/dist/client/components/ui/checkbox.d.ts +0 -4
  302. package/dist/client/components/ui/checkbox.d.ts.map +0 -1
  303. package/dist/client/components/ui/client-icons.d.ts +0 -20
  304. package/dist/client/components/ui/client-icons.d.ts.map +0 -1
  305. package/dist/client/components/ui/command.d.ts +0 -17
  306. package/dist/client/components/ui/command.d.ts.map +0 -1
  307. package/dist/client/components/ui/dialog.d.ts +0 -37
  308. package/dist/client/components/ui/dialog.d.ts.map +0 -1
  309. package/dist/client/components/ui/dropdown-menu.d.ts +0 -25
  310. package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
  311. package/dist/client/components/ui/dropdown.d.ts +0 -30
  312. package/dist/client/components/ui/dropdown.d.ts.map +0 -1
  313. package/dist/client/components/ui/file-thumbnail.d.ts +0 -9
  314. package/dist/client/components/ui/file-thumbnail.d.ts.map +0 -1
  315. package/dist/client/components/ui/input.d.ts +0 -4
  316. package/dist/client/components/ui/input.d.ts.map +0 -1
  317. package/dist/client/components/ui/kbd.d.ts +0 -3
  318. package/dist/client/components/ui/kbd.d.ts.map +0 -1
  319. package/dist/client/components/ui/label.d.ts +0 -4
  320. package/dist/client/components/ui/label.d.ts.map +0 -1
  321. package/dist/client/components/ui/menu-item.d.ts +0 -52
  322. package/dist/client/components/ui/menu-item.d.ts.map +0 -1
  323. package/dist/client/components/ui/mesh-tab-background.d.ts +0 -12
  324. package/dist/client/components/ui/mesh-tab-background.d.ts.map +0 -1
  325. package/dist/client/components/ui/not-found.d.ts +0 -9
  326. package/dist/client/components/ui/not-found.d.ts.map +0 -1
  327. package/dist/client/components/ui/popover.d.ts +0 -6
  328. package/dist/client/components/ui/popover.d.ts.map +0 -1
  329. package/dist/client/components/ui/resizable.d.ts +0 -10
  330. package/dist/client/components/ui/resizable.d.ts.map +0 -1
  331. package/dist/client/components/ui/scroll-area.d.ts +0 -4
  332. package/dist/client/components/ui/scroll-area.d.ts.map +0 -1
  333. package/dist/client/components/ui/select.d.ts +0 -52
  334. package/dist/client/components/ui/select.d.ts.map +0 -1
  335. package/dist/client/components/ui/sheet.d.ts +0 -14
  336. package/dist/client/components/ui/sheet.d.ts.map +0 -1
  337. package/dist/client/components/ui/skeleton.d.ts +0 -4
  338. package/dist/client/components/ui/skeleton.d.ts.map +0 -1
  339. package/dist/client/components/ui/spinner.d.ts +0 -3
  340. package/dist/client/components/ui/spinner.d.ts.map +0 -1
  341. package/dist/client/components/ui/switch.d.ts +0 -22
  342. package/dist/client/components/ui/switch.d.ts.map +0 -1
  343. package/dist/client/components/ui/table.d.ts +0 -9
  344. package/dist/client/components/ui/table.d.ts.map +0 -1
  345. package/dist/client/components/ui/tabs-subtle.d.ts +0 -25
  346. package/dist/client/components/ui/tabs-subtle.d.ts.map +0 -1
  347. package/dist/client/components/ui/text-shimmer.d.ts +0 -11
  348. package/dist/client/components/ui/text-shimmer.d.ts.map +0 -1
  349. package/dist/client/components/ui/textarea.d.ts +0 -4
  350. package/dist/client/components/ui/textarea.d.ts.map +0 -1
  351. package/dist/client/components/ui/tooltip.d.ts +0 -43
  352. package/dist/client/components/ui/tooltip.d.ts.map +0 -1
  353. package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts +0 -19
  354. package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts.map +0 -1
  355. package/dist/client/console-log-bus.d.ts +0 -24
  356. package/dist/client/console-log-bus.d.ts.map +0 -1
  357. package/dist/client/constants/debug-options.d.ts +0 -16
  358. package/dist/client/constants/debug-options.d.ts.map +0 -1
  359. package/dist/client/context/InspectorContext.d.ts +0 -134
  360. package/dist/client/context/InspectorContext.d.ts.map +0 -1
  361. package/dist/client/context/ThemeContext.d.ts +0 -17
  362. package/dist/client/context/ThemeContext.d.ts.map +0 -1
  363. package/dist/client/context/WidgetDebugContext.d.ts +0 -121
  364. package/dist/client/context/WidgetDebugContext.d.ts.map +0 -1
  365. package/dist/client/hooks/use-merge-split.d.ts +0 -36
  366. package/dist/client/hooks/use-merge-split.d.ts.map +0 -1
  367. package/dist/client/hooks/use-proximity-hover-index.d.ts +0 -27
  368. package/dist/client/hooks/use-proximity-hover-index.d.ts.map +0 -1
  369. package/dist/client/hooks/use-proximity-hover.d.ts +0 -26
  370. package/dist/client/hooks/use-proximity-hover.d.ts.map +0 -1
  371. package/dist/client/hooks/use-touch-primary.d.ts +0 -2
  372. package/dist/client/hooks/use-touch-primary.d.ts.map +0 -1
  373. package/dist/client/hooks/useDeviceViewport.d.ts +0 -18
  374. package/dist/client/hooks/useDeviceViewport.d.ts.map +0 -1
  375. package/dist/client/hooks/useHostedSession.d.ts +0 -9
  376. package/dist/client/hooks/useHostedSession.d.ts.map +0 -1
  377. package/dist/client/hooks/useIframeConsole.d.ts +0 -24
  378. package/dist/client/hooks/useIframeConsole.d.ts.map +0 -1
  379. package/dist/client/hooks/useKeyboardShortcuts.d.ts +0 -28
  380. package/dist/client/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  381. package/dist/client/hooks/useMCPPrompts.d.ts +0 -94
  382. package/dist/client/hooks/useMCPPrompts.d.ts.map +0 -1
  383. package/dist/client/hooks/useMcpAppsHostContext.d.ts +0 -27
  384. package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +0 -1
  385. package/dist/client/hooks/usePropsLLM.d.ts +0 -20
  386. package/dist/client/hooks/usePropsLLM.d.ts.map +0 -1
  387. package/dist/client/hooks/useResourceProps.d.ts +0 -14
  388. package/dist/client/hooks/useResourceProps.d.ts.map +0 -1
  389. package/dist/client/hooks/useSavedRequests.d.ts +0 -6
  390. package/dist/client/hooks/useSavedRequests.d.ts.map +0 -1
  391. package/dist/client/hooks/useViewHostProps.d.ts +0 -19
  392. package/dist/client/hooks/useViewHostProps.d.ts.map +0 -1
  393. package/dist/client/index.d.ts.map +0 -1
  394. package/dist/client/lib/elevated.d.ts +0 -28
  395. package/dist/client/lib/elevated.d.ts.map +0 -1
  396. package/dist/client/lib/font-weight.d.ts +0 -10
  397. package/dist/client/lib/font-weight.d.ts.map +0 -1
  398. package/dist/client/lib/icon-context.d.ts +0 -15
  399. package/dist/client/lib/icon-context.d.ts.map +0 -1
  400. package/dist/client/lib/shape-context.d.ts +0 -21
  401. package/dist/client/lib/shape-context.d.ts.map +0 -1
  402. package/dist/client/lib/springs.d.ts +0 -32
  403. package/dist/client/lib/springs.d.ts.map +0 -1
  404. package/dist/client/lib/surface-classes.d.ts +0 -2
  405. package/dist/client/lib/surface-classes.d.ts.map +0 -1
  406. package/dist/client/lib/surface-context.d.ts +0 -7
  407. package/dist/client/lib/surface-context.d.ts.map +0 -1
  408. package/dist/client/lib/utils.d.ts +0 -3
  409. package/dist/client/lib/utils.d.ts.map +0 -1
  410. package/dist/client/mcp-apps/csp.d.ts +0 -26
  411. package/dist/client/mcp-apps/csp.d.ts.map +0 -1
  412. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +0 -17
  413. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +0 -1
  414. package/dist/client/mcp-apps/logging-transport.d.ts +0 -13
  415. package/dist/client/mcp-apps/logging-transport.d.ts.map +0 -1
  416. package/dist/client/rpc-traffic-coalesce.d.ts +0 -7
  417. package/dist/client/rpc-traffic-coalesce.d.ts.map +0 -1
  418. package/dist/client/rpc-traffic-store.d.ts +0 -37
  419. package/dist/client/rpc-traffic-store.d.ts.map +0 -1
  420. package/dist/client/telemetry/capture.d.ts +0 -7
  421. package/dist/client/telemetry/capture.d.ts.map +0 -1
  422. package/dist/client/telemetry/events.d.ts +0 -168
  423. package/dist/client/telemetry/events.d.ts.map +0 -1
  424. package/dist/client/telemetry/index.d.ts +0 -5
  425. package/dist/client/telemetry/index.d.ts.map +0 -1
  426. package/dist/client/telemetry/init.d.ts +0 -2
  427. package/dist/client/telemetry/init.d.ts.map +0 -1
  428. package/dist/client/telemetry/utils.d.ts +0 -7
  429. package/dist/client/telemetry/utils.d.ts.map +0 -1
  430. package/dist/client/types/message-content-block.d.ts +0 -19
  431. package/dist/client/types/message-content-block.d.ts.map +0 -1
  432. package/dist/client/types/pending-requests.d.ts +0 -17
  433. package/dist/client/types/pending-requests.d.ts.map +0 -1
  434. package/dist/client/utils/basePath.d.ts +0 -34
  435. package/dist/client/utils/basePath.d.ts.map +0 -1
  436. package/dist/client/utils/browser.d.ts +0 -5
  437. package/dist/client/utils/browser.d.ts.map +0 -1
  438. package/dist/client/utils/format.d.ts +0 -4
  439. package/dist/client/utils/format.d.ts.map +0 -1
  440. package/dist/client/utils/highlightJson.d.ts +0 -11
  441. package/dist/client/utils/highlightJson.d.ts.map +0 -1
  442. package/dist/client/utils/jsonUtils.d.ts +0 -24
  443. package/dist/client/utils/jsonUtils.d.ts.map +0 -1
  444. package/dist/client/utils/mcpClientUtils.d.ts +0 -131
  445. package/dist/client/utils/mcpClientUtils.d.ts.map +0 -1
  446. package/dist/client/utils/servers.d.ts +0 -14
  447. package/dist/client/utils/servers.d.ts.map +0 -1
  448. package/dist/server/asset-urls.d.ts +0 -18
  449. package/dist/server/asset-urls.d.ts.map +0 -1
  450. package/dist/server/asset-urls.js +0 -17
  451. package/dist/server/cdn-shell.d.ts +0 -18
  452. package/dist/server/cdn-shell.d.ts.map +0 -1
  453. package/dist/server/cdn-shell.js +0 -12
  454. package/dist/server/chunk-DSTNUYWX.js +0 -148
  455. package/dist/server/chunk-H6ZCIKBS.js +0 -63
  456. package/dist/server/chunk-IKTZUWSX.js +0 -0
  457. package/dist/server/chunk-J4FNYLBF.js +0 -54
  458. package/dist/server/chunk-K2F2AJOI.js +0 -619
  459. package/dist/server/chunk-KD7K27XK.js +0 -77
  460. package/dist/server/chunk-M5TZA42I.js +0 -54
  461. package/dist/server/chunk-OWR2BIBW.js +0 -40
  462. package/dist/server/chunk-PKBMQBKP.js +0 -7
  463. package/dist/server/chunk-SQ4XNMLT.js +0 -72
  464. package/dist/server/chunk-UJLXHNQP.js +0 -43
  465. package/dist/server/chunk-WFT4JHYI.js +0 -24
  466. package/dist/server/chunk-XCNS5CIW.js +0 -199
  467. package/dist/server/chunk-ZCGLU5T7.js +0 -156
  468. package/dist/server/cli.d.ts +0 -3
  469. package/dist/server/cli.d.ts.map +0 -1
  470. package/dist/server/cli.js +0 -141
  471. package/dist/server/create-dev-api-app.d.ts +0 -4
  472. package/dist/server/create-dev-api-app.d.ts.map +0 -1
  473. package/dist/server/create-dev-api-app.js +0 -11
  474. package/dist/server/dev-callback-redirect.d.ts +0 -3
  475. package/dist/server/dev-callback-redirect.d.ts.map +0 -1
  476. package/dist/server/dev-callback-redirect.js +0 -18
  477. package/dist/server/favicon-links.d.ts +0 -12
  478. package/dist/server/favicon-links.d.ts.map +0 -1
  479. package/dist/server/favicon-links.js +0 -11
  480. package/dist/server/favicon-static.d.ts +0 -4
  481. package/dist/server/favicon-static.d.ts.map +0 -1
  482. package/dist/server/favicon-static.js +0 -8
  483. package/dist/server/index.d.ts.map +0 -1
  484. package/dist/server/middleware.d.ts +0 -40
  485. package/dist/server/middleware.d.ts.map +0 -1
  486. package/dist/server/middleware.js +0 -17
  487. package/dist/server/proxy/index.d.ts +0 -3
  488. package/dist/server/proxy/index.d.ts.map +0 -1
  489. package/dist/server/proxy/index.js +0 -12
  490. package/dist/server/proxy/mcp-proxy.d.ts +0 -101
  491. package/dist/server/proxy/mcp-proxy.d.ts.map +0 -1
  492. package/dist/server/proxy/mcp-proxy.js +0 -10
  493. package/dist/server/proxy/oauth-proxy.d.ts +0 -26
  494. package/dist/server/proxy/oauth-proxy.d.ts.map +0 -1
  495. package/dist/server/proxy/oauth-proxy.js +0 -9
  496. package/dist/server/proxy-routes.d.ts +0 -16
  497. package/dist/server/proxy-routes.d.ts.map +0 -1
  498. package/dist/server/proxy-routes.js +0 -10
  499. package/dist/server/rpc-log-bus.d.ts +0 -17
  500. package/dist/server/rpc-log-bus.d.ts.map +0 -1
  501. package/dist/server/rpc-log-bus.js +0 -77
  502. package/dist/server/server.d.ts +0 -15
  503. package/dist/server/server.d.ts.map +0 -1
  504. package/dist/server/server.js +0 -66
  505. package/dist/server/static-assets.d.ts +0 -5
  506. package/dist/server/static-assets.d.ts.map +0 -1
  507. package/dist/server/static-assets.js +0 -9
  508. package/dist/server/utils.d.ts +0 -33
  509. package/dist/server/utils.d.ts.map +0 -1
  510. package/dist/server/utils.js +0 -17
  511. package/dist/server/version.d.ts +0 -7
  512. package/dist/server/version.d.ts.map +0 -1
  513. package/dist/server/version.js +0 -9
  514. package/dist/server/vite-dev-api-plugin.d.ts +0 -4
  515. package/dist/server/vite-dev-api-plugin.d.ts.map +0 -1
  516. package/dist/server/vite-dev-api-plugin.js +0 -30
  517. package/dist/web/apple-touch-icon.png +0 -0
  518. package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
  519. package/dist/web/assets/ChatTab-BCobuZDc.js +0 -18
  520. package/dist/web/assets/ConnectionSettingsTab-BjGkLwVu.js +0 -1
  521. package/dist/web/assets/ElicitationTab-D3ZUKHND.js +0 -1
  522. package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
  523. package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
  524. package/dist/web/assets/ManufactOAuthCallback-CS3ydSZg.js +0 -1
  525. package/dist/web/assets/MarkdownRenderer-BeeBfQhv.js +0 -47
  526. package/dist/web/assets/NotificationsTab-Uj0_DrmK.js +0 -1
  527. package/dist/web/assets/OAuthCallback-C0ljgCiw.js +0 -1
  528. package/dist/web/assets/PromptsTab-Bns2u0G-.js +0 -15
  529. package/dist/web/assets/ResourcesTab-CO24312V.js +0 -2
  530. package/dist/web/assets/SamplingTab-7gtN7FwU.js +0 -1
  531. package/dist/web/assets/ServerMetadataTab-CQwqYSjL.js +0 -1
  532. package/dist/web/assets/ToolsTab-bDdRxI1b.js +0 -8
  533. package/dist/web/assets/ViewPreview-Ba1Ec5uA.js +0 -1
  534. package/dist/web/assets/WidgetWrapper-CYHfzrtb.js +0 -34
  535. package/dist/web/assets/brush--0LobUi4.js +0 -1
  536. package/dist/web/assets/checkbox-CzBkaNKa.js +0 -1
  537. package/dist/web/assets/code-tME-5H6D.js +0 -1
  538. package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
  539. package/dist/web/assets/dist-C5JjLJN9.js +0 -21
  540. package/dist/web/assets/index-TQ5V7cM9.js +0 -492
  541. package/dist/web/assets/index-fBX3akc8.css +0 -1
  542. package/dist/web/assets/input-CLYhA7PK.js +0 -1
  543. package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
  544. package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
  545. package/dist/web/assets/label-Cdim77Jw.js +0 -1
  546. package/dist/web/assets/maximize-2-BTT9QQU9.js +0 -1
  547. package/dist/web/assets/maximize-_O55kFcr.js +0 -1
  548. package/dist/web/assets/react-CU_d2d5K.js +0 -1
  549. package/dist/web/assets/refresh-cw-C9wQl8_d.js +0 -1
  550. package/dist/web/assets/save-B-MsgxX9.js +0 -1
  551. package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
  552. package/dist/web/assets/select-CJ57-Bor.js +0 -1
  553. package/dist/web/assets/shared-BF0rJNdE.js +0 -1
  554. package/dist/web/assets/sparkles-2OAsc1aP.js +0 -1
  555. package/dist/web/assets/tabs-subtle-6D79T1xd.js +0 -1
  556. package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
  557. package/dist/web/assets/useConfig-BAgALiZg.js +0 -1
  558. package/dist/web/assets/useViewHostProps-BYitt_6K.js +0 -1
  559. package/dist/web/assets/zap-Du2Uc5pa.js +0 -1
  560. package/dist/web/favicon-96x96.png +0 -0
  561. package/dist/web/favicon-black.svg +0 -5
  562. package/dist/web/favicon-white.svg +0 -5
  563. package/dist/web/favicon.ico +0 -0
  564. package/dist/web/favicon.svg +0 -5
  565. package/dist/web/index.html +0 -89
  566. package/dist/web/providers/anthropic.png +0 -0
  567. package/dist/web/providers/google.png +0 -0
  568. package/dist/web/providers/openai.png +0 -0
  569. package/dist/web/site.webmanifest +0 -21
  570. package/dist/web/web-app-manifest-192x192.png +0 -0
  571. package/dist/web/web-app-manifest-512x512.png +0 -0
  572. /package/dist/{cdn → app}/apple-touch-icon.png +0 -0
  573. /package/dist/{cdn → app}/favicon-96x96.png +0 -0
  574. /package/dist/{cdn → app}/favicon-black.svg +0 -0
  575. /package/dist/{cdn → app}/favicon-white.svg +0 -0
  576. /package/dist/{cdn → app}/favicon.ico +0 -0
  577. /package/dist/{cdn → app}/favicon.svg +0 -0
  578. /package/dist/{cdn → app}/site.webmanifest +0 -0
  579. /package/dist/{cdn → app}/web-app-manifest-192x192.png +0 -0
  580. /package/dist/{cdn → app}/web-app-manifest-512x512.png +0 -0
@@ -1,929 +0,0 @@
1
- import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { Rr as n, sr as r, t as i } from "./input-C2OBd4PJ.js";
3
- import { t as a } from "./jsx-runtime-CIxvMpEo.js";
4
- import { t as o } from "./label-B9Jmm9be.js";
5
- import { a as s, i as c, n as l, r as u, t as d } from "./select-DDdiIPR2.js";
6
- import { t as f } from "./createLucideIcon-C5fZZ6oB.js";
7
- import { c as p, l as m, n as h, o as g, r as _, t as v, w as y, x as b } from "./dialog-BsDpuJd3.js";
8
- import { i as ee, t as te } from "./browser-CbQIH4w2.js";
9
- import { n as x, t as S } from "./eye-B7H96av8.js";
10
- import { t as C } from "./trash-2-RwpJY5SL.js";
11
- import { t as w } from "./react-BajV-X4P.js";
12
- import { r as T } from "./basePath-B8HuhIMu.js";
13
- import { i as E, r as D } from "./servers-Dm72iTpY.js";
14
- import { n as O } from "./dist-DaMB0Su9.js";
15
- import { a as k, i as A, n as j, r as M, t as N } from "./card-DgiYnSg-.js";
16
- var ne = f("cog", [
17
- ["path", {
18
- d: "M11 10.27 7 3.34",
19
- key: "16pf9h"
20
- }],
21
- ["path", {
22
- d: "m11 13.73-4 6.93",
23
- key: "794ttg"
24
- }],
25
- ["path", {
26
- d: "M12 22v-2",
27
- key: "1osdcq"
28
- }],
29
- ["path", {
30
- d: "M12 2v2",
31
- key: "tus03m"
32
- }],
33
- ["path", {
34
- d: "M14 12h8",
35
- key: "4f43i9"
36
- }],
37
- ["path", {
38
- d: "m17 20.66-1-1.73",
39
- key: "eq3orb"
40
- }],
41
- ["path", {
42
- d: "m17 3.34-1 1.73",
43
- key: "2wel8s"
44
- }],
45
- ["path", {
46
- d: "M2 12h2",
47
- key: "1t8f8n"
48
- }],
49
- ["path", {
50
- d: "m20.66 17-1.73-1",
51
- key: "sg0v6f"
52
- }],
53
- ["path", {
54
- d: "m20.66 7-1.73 1",
55
- key: "1ow05n"
56
- }],
57
- ["path", {
58
- d: "m3.34 17 1.73-1",
59
- key: "nuk764"
60
- }],
61
- ["path", {
62
- d: "m3.34 7 1.73 1",
63
- key: "1ulond"
64
- }],
65
- ["circle", {
66
- cx: "12",
67
- cy: "12",
68
- r: "2",
69
- key: "1c9p78"
70
- }],
71
- ["circle", {
72
- cx: "12",
73
- cy: "12",
74
- r: "8",
75
- key: "46899m"
76
- }]
77
- ]), re = f("file-text", [
78
- ["path", {
79
- d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
80
- key: "1oefj6"
81
- }],
82
- ["path", {
83
- d: "M14 2v5a1 1 0 0 0 1 1h5",
84
- key: "wfsgrz"
85
- }],
86
- ["path", {
87
- d: "M10 9H8",
88
- key: "b1mrlr"
89
- }],
90
- ["path", {
91
- d: "M16 13H8",
92
- key: "t4e002"
93
- }],
94
- ["path", {
95
- d: "M16 17H8",
96
- key: "z1uh3a"
97
- }]
98
- ]), P = /* @__PURE__ */ e(t(), 1), F = a(), I = "2026-07-28";
99
- function ie(e) {
100
- switch (e) {
101
- case "v1": return "legacy";
102
- case "v2": return { pin: I };
103
- default: return "auto";
104
- }
105
- }
106
- function ae(e) {
107
- return e === "legacy" ? "v1" : typeof e == "object" && e?.pin ? "v2" : "auto";
108
- }
109
- function oe() {
110
- if (typeof window > "u") return "";
111
- let e = window.__MCP_PROXY_URL__;
112
- return e === null ? "" : `${window.location.origin}${e || T("proxy")}`;
113
- }
114
- function L(e, t, n = !1) {
115
- return e === "auto" || e === "direct" || e === "proxy" ? e : t === "Via Proxy" ? "proxy" : t === "Direct" ? "auto" : n ? "proxy" : "auto";
116
- }
117
- function R(e) {
118
- return !e || typeof e == "boolean" ? "" : e.proxyAddress?.trim() || "";
119
- }
120
- var z = [
121
- "requestTimeout",
122
- "resetTimeoutOnProgress",
123
- "maxTotalTimeout"
124
- ];
125
- function B(e) {
126
- if (!e) return {};
127
- let t = {};
128
- for (let n of z) {
129
- let r = e[n];
130
- r !== void 0 && (t[n] = r);
131
- }
132
- return t;
133
- }
134
- function V(e, t) {
135
- try {
136
- let n = localStorage.getItem("mcp-inspector-connections"), r = n ? JSON.parse(n) : {};
137
- r[e] = {
138
- ...r[e],
139
- ...t
140
- }, localStorage.setItem("mcp-inspector-connections", JSON.stringify(r));
141
- } catch {}
142
- }
143
- function H(e, t, n) {
144
- let r = e.trim(), i = t.trim(), a = n.trim();
145
- if (!(!r && !a)) return {
146
- ...r ? { clientId: r } : {},
147
- ...r && i ? { clientSecret: i } : {},
148
- ...a ? { scope: a } : {}
149
- };
150
- }
151
- function U(e) {
152
- let t = e.headers || e.proxyConfig?.headers || e.proxyConfig?.customHeaders;
153
- return t && Object.keys(t).length > 0 ? t : void 0;
154
- }
155
- function W(e) {
156
- let t = e.proxyConfig, n = e.headers || e.customHeaders, r = t?.headers || t?.customHeaders || void 0, i = n || r, a = t ? {
157
- ...t,
158
- ...r ? { headers: r } : {},
159
- customHeaders: void 0
160
- } : void 0, { customHeaders: o, connectionType: s, transportType: c, ...l } = e;
161
- return {
162
- ...l,
163
- ...i && !a?.proxyAddress ? { headers: i } : {},
164
- ...a ? { proxyConfig: a } : {},
165
- connectionMode: L(e.connectionMode, e.connectionType, !!a?.proxyAddress)
166
- };
167
- }
168
- function G(e) {
169
- let t = J(e), n = e.proxyConfig?.proxyAddress?.trim() || R(e.autoProxyFallback), r = L(e.connectionMode, e.connectionType, !!n), i = {
170
- url: e.url,
171
- displayName: e.name?.trim() || e.url,
172
- connectionMode: r,
173
- protocolNegotiation: e.protocolNegotiation ?? "auto",
174
- ...e.oauth ? { oauth: e.oauth } : {}
175
- };
176
- return r === "proxy" && n ? i.proxyConfig = {
177
- proxyAddress: n,
178
- ...Object.keys(t).length > 0 ? { headers: t } : {}
179
- } : Object.keys(t).length > 0 && (i.headers = t), r === "auto" && (i.autoProxyFallback = e.autoProxyFallback ?? (n ? {
180
- enabled: !0,
181
- proxyAddress: n
182
- } : !1)), i;
183
- }
184
- function K(e, t) {
185
- let n = t ? W(t) : e, r = U(e) || {}, i = n.proxyConfig?.proxyAddress?.trim() || R(n.autoProxyFallback);
186
- return {
187
- url: e.url || "",
188
- name: e.displayName || e.url || "",
189
- transportType: "http",
190
- connectionMode: L(n.connectionMode, void 0, !!i),
191
- connectionType: n.connectionMode === "proxy" ? "Via Proxy" : "Direct",
192
- proxyConfig: n.connectionMode === "proxy" && i ? {
193
- proxyAddress: i,
194
- ...Object.keys(r).length > 0 ? { headers: r } : {}
195
- } : void 0,
196
- headers: r,
197
- oauth: n.oauth,
198
- autoProxyFallback: n.autoProxyFallback,
199
- protocolNegotiation: n.protocolNegotiation ?? "auto",
200
- ...B(t)
201
- };
202
- }
203
- function q(e) {
204
- try {
205
- let t = localStorage.getItem("mcp-inspector-connections");
206
- return t && JSON.parse(t)[e] || null;
207
- } catch {
208
- return null;
209
- }
210
- }
211
- function J(e) {
212
- let t = e.proxyConfig?.headers || e.proxyConfig?.customHeaders || e.headers || e.customHeaders || {};
213
- return Object.fromEntries(Object.entries(t).filter(([e, t]) => e && t).map(([e, t]) => [e, String(t)]).sort(([e], [t]) => e.localeCompare(t)));
214
- }
215
- function Y(e) {
216
- let t = e.url?.trim() || "", n = e.proxyConfig?.proxyAddress?.trim() || R(e.autoProxyFallback);
217
- return {
218
- url: t,
219
- name: e.name?.trim() || t,
220
- transportType: e.transportType || "http",
221
- proxyAddress: n,
222
- connectionMode: L(e.connectionMode, e.connectionType, !!n),
223
- headers: J(e),
224
- oauthClientId: e.oauth?.clientId?.trim() || "",
225
- oauthClientSecret: e.oauth?.clientSecret?.trim() || "",
226
- oauthScope: e.oauth?.scope?.trim() || "",
227
- requestTimeout: "requestTimeout" in e ? e.requestTimeout : void 0,
228
- resetTimeoutOnProgress: "resetTimeoutOnProgress" in e ? e.resetTimeoutOnProgress : void 0,
229
- maxTotalTimeout: "maxTotalTimeout" in e ? e.maxTotalTimeout : void 0,
230
- protocolMode: ae(e.protocolNegotiation)
231
- };
232
- }
233
- function X(e, t) {
234
- let n = Y(e), r = Y(t);
235
- return n.url === r.url && n.transportType === r.transportType && n.proxyAddress === r.proxyAddress && n.connectionMode === r.connectionMode && JSON.stringify(n.headers) === JSON.stringify(r.headers) && n.oauthClientId === r.oauthClientId && n.oauthClientSecret === r.oauthClientSecret && n.oauthScope === r.oauthScope && n.requestTimeout === r.requestTimeout && n.resetTimeoutOnProgress === r.resetTimeoutOnProgress && n.maxTotalTimeout === r.maxTotalTimeout && n.protocolMode === r.protocolMode && n.name !== r.name;
236
- }
237
- var se = class extends w {
238
- setServers(e) {
239
- let t = this.readRawStoredServers(), n = Object.fromEntries(Object.entries(e).map(([e, n]) => [e, {
240
- ...B(t[e]),
241
- ...n,
242
- ...D(e) && typeof n.url == "string" && E(n.url) ? { url: e } : {}
243
- }]));
244
- super.setServers(n);
245
- }
246
- setServer(e, t) {
247
- let n = this.getServers();
248
- n[e] = {
249
- ...B(this.readRawStoredServers()[e]),
250
- ...t
251
- }, this.setServers(n);
252
- }
253
- readRawStoredServers() {
254
- try {
255
- let e = localStorage.getItem("mcp-inspector-connections");
256
- return e ? JSON.parse(e) : {};
257
- } catch {
258
- return {};
259
- }
260
- }
261
- };
262
- //#endregion
263
- //#region src/client/components/CustomHeadersEditor.tsx
264
- function ce({ headers: e, onChange: t, onSave: a, className: s, title: c = "Custom Headers", description: l = "Headers with both name and value will be sent", maxHeaders: u = 50 }) {
265
- let [d, f] = (0, P.useState)({}), [p, m] = (0, P.useState)(null), h = (0, P.useRef)({});
266
- (0, P.useEffect)(() => {
267
- p && h.current[p] && (h.current[p]?.focus(), m(null));
268
- }, [p, e]);
269
- let g = () => Math.random().toString(36).slice(2, 11), _ = () => {
270
- if (e.length >= u) return;
271
- let n = {
272
- id: g(),
273
- name: "",
274
- value: ""
275
- };
276
- t([...e, n]);
277
- }, v = (n) => {
278
- t(e.filter((e) => e.id !== n));
279
- }, b = (n, r, i) => {
280
- t(e.map((e) => e.id === n ? {
281
- ...e,
282
- [r]: i
283
- } : e));
284
- }, ee = (e) => {
285
- f((t) => ({
286
- ...t,
287
- [e]: !t[e]
288
- }));
289
- };
290
- return /* @__PURE__ */ (0, F.jsxs)("div", {
291
- className: n("space-y-3", s),
292
- children: [
293
- /* @__PURE__ */ (0, F.jsxs)("div", {
294
- className: "space-y-2",
295
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
296
- className: "text-base font-medium",
297
- children: c
298
- }), /* @__PURE__ */ (0, F.jsx)("p", {
299
- className: "text-sm text-muted-foreground",
300
- children: l
301
- })]
302
- }),
303
- /* @__PURE__ */ (0, F.jsxs)("div", {
304
- className: "space-y-2",
305
- children: [
306
- /* @__PURE__ */ (0, F.jsxs)("div", {
307
- className: "grid grid-cols-[1fr_1fr] gap-4 text-sm font-medium text-muted-foreground",
308
- children: [/* @__PURE__ */ (0, F.jsx)("div", { children: "Name" }), /* @__PURE__ */ (0, F.jsx)("div", { children: "Value" })]
309
- }),
310
- e.length === 0 ? /* @__PURE__ */ (0, F.jsxs)("div", {
311
- className: "grid grid-cols-[1fr_1fr] gap-4 items-center",
312
- children: [/* @__PURE__ */ (0, F.jsx)(i, {
313
- placeholder: "Authorization",
314
- value: "",
315
- onChange: (e) => {
316
- if (e.target.value.trim()) {
317
- let n = g();
318
- t([{
319
- id: n,
320
- name: e.target.value,
321
- value: ""
322
- }]), m(n);
323
- }
324
- },
325
- className: "text-sm",
326
- autoComplete: "off"
327
- }), /* @__PURE__ */ (0, F.jsxs)("div", {
328
- className: "flex items-center gap-2",
329
- children: [
330
- /* @__PURE__ */ (0, F.jsx)(i, {
331
- placeholder: "Bearer token...",
332
- value: "",
333
- onChange: () => {},
334
- type: "password",
335
- className: "font-mono text-sm",
336
- autoComplete: "off",
337
- disabled: !0
338
- }),
339
- /* @__PURE__ */ (0, F.jsx)(r, {
340
- type: "button",
341
- variant: "ghost",
342
- size: "icon-sm",
343
- className: "h-8 w-8 p-0",
344
- disabled: !0,
345
- children: /* @__PURE__ */ (0, F.jsx)(S, { className: "h-4 w-4" })
346
- }),
347
- /* @__PURE__ */ (0, F.jsx)(r, {
348
- type: "button",
349
- variant: "ghost",
350
- size: "icon-sm",
351
- className: "h-8 w-8 p-0",
352
- disabled: !0,
353
- children: /* @__PURE__ */ (0, F.jsx)(C, { className: "h-4 w-4" })
354
- })
355
- ]
356
- })]
357
- }) : e.map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
358
- className: "grid grid-cols-[1fr_1fr] gap-4 items-center",
359
- children: [/* @__PURE__ */ (0, F.jsx)(i, {
360
- ref: (t) => {
361
- h.current[e.id] = t;
362
- },
363
- placeholder: "Authorization",
364
- value: e.name,
365
- onChange: (t) => b(e.id, "name", t.target.value),
366
- className: "text-sm",
367
- autoComplete: "off"
368
- }), /* @__PURE__ */ (0, F.jsxs)("div", {
369
- className: "flex items-center gap-2",
370
- children: [
371
- /* @__PURE__ */ (0, F.jsx)(i, {
372
- placeholder: "",
373
- value: e.value,
374
- onChange: (t) => b(e.id, "value", t.target.value),
375
- type: d[e.id] ? "text" : "password",
376
- className: "font-mono text-sm",
377
- autoComplete: "off"
378
- }),
379
- /* @__PURE__ */ (0, F.jsx)(r, {
380
- type: "button",
381
- variant: "ghost",
382
- size: "icon-sm",
383
- onClick: () => ee(e.id),
384
- className: "h-8 w-8 p-0",
385
- children: d[e.id] ? /* @__PURE__ */ (0, F.jsx)(x, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, F.jsx)(S, { className: "h-4 w-4" })
386
- }),
387
- /* @__PURE__ */ (0, F.jsx)(r, {
388
- type: "button",
389
- variant: "ghost",
390
- size: "icon-sm",
391
- onClick: () => v(e.id),
392
- className: "h-8 w-8 p-0",
393
- children: /* @__PURE__ */ (0, F.jsx)(C, { className: "h-4 w-4" })
394
- })
395
- ]
396
- })]
397
- }, e.id)),
398
- /* @__PURE__ */ (0, F.jsx)("div", {
399
- className: "flex justify-start mt-4",
400
- children: /* @__PURE__ */ (0, F.jsxs)(r, {
401
- type: "button",
402
- variant: "outline",
403
- size: "sm",
404
- onClick: _,
405
- disabled: e.length >= u,
406
- className: "flex items-center gap-2",
407
- children: [/* @__PURE__ */ (0, F.jsx)(y, { className: "h-4 w-4" }), "Add"]
408
- })
409
- })
410
- ]
411
- }),
412
- a && /* @__PURE__ */ (0, F.jsx)("div", {
413
- className: "flex justify-end",
414
- children: /* @__PURE__ */ (0, F.jsx)(r, {
415
- type: "button",
416
- onClick: a,
417
- className: "bg-black text-white hover:bg-gray-800",
418
- children: "Save"
419
- })
420
- })
421
- ]
422
- });
423
- }
424
- //#endregion
425
- //#region src/client/components/ConnectionSettingsForm.tsx
426
- function le({ alias: e, setAlias: t, url: a, setUrl: f, connectionMode: y, setConnectionMode: x, protocolMode: S, setProtocolMode: C, customHeaders: w, setCustomHeaders: T, requestTimeout: E, setRequestTimeout: D, resetTimeoutOnProgress: I, setResetTimeoutOnProgress: oe, maxTotalTimeout: R, setMaxTotalTimeout: z, proxyAddress: B, setProxyAddress: V, clientId: H, setClientId: U, clientSecret: W, setClientSecret: G, scope: K, setScope: q, onConnect: J, onSave: Y, onCancel: X, variant: se = "default", showConnectButton: le = !1, showSaveButton: ue = !1, showExportButton: de = !1, isConnecting: fe = !1, inlineSections: Z = !1, cardSections: Q = !1 }) {
427
- let [pe, me] = (0, P.useState)(!1), [he, ge] = (0, P.useState)(!1), [_e, ve] = (0, P.useState)(!1), ye = (0, P.useRef)(!1), be = async () => {
428
- if (!a.trim()) {
429
- O.error("Please enter a URL first");
430
- return;
431
- }
432
- let t = {
433
- url: a,
434
- ...e.trim() ? { name: e.trim() } : {},
435
- transportType: "http",
436
- connectionMode: y,
437
- protocolNegotiation: ie(S),
438
- connectionType: y === "proxy" ? "Via Proxy" : "Direct",
439
- proxyConfig: y === "proxy" && B.trim() ? {
440
- proxyAddress: B.trim(),
441
- customHeaders: w.reduce((e, t) => (t.name && t.value && (e[t.name] = t.value), e), {})
442
- } : void 0,
443
- autoProxyFallback: y === "auto" && B.trim() ? {
444
- enabled: !0,
445
- proxyAddress: B.trim()
446
- } : void 0,
447
- customHeaders: w.reduce((e, t) => (t.name && t.value && (e[t.name] = t.value), e), {}),
448
- requestTimeout: Number.parseInt(E, 10),
449
- resetTimeoutOnProgress: I === "True",
450
- maxTotalTimeout: Number.parseInt(R, 10),
451
- oauth: H || K ? {
452
- clientId: H,
453
- ...H && W ? { clientSecret: W } : {},
454
- scope: K
455
- } : void 0
456
- };
457
- try {
458
- await te(JSON.stringify(t, null, 2)), O.success("Configuration copied to clipboard");
459
- } catch {
460
- O.error("Failed to copy configuration to clipboard");
461
- }
462
- }, $ = se === "styled", xe = $ ? "bg-white/10 border-white/20 text-white placeholder:text-white/50" : "", Se = $ ? "text-white/90" : "", Ce = $ ? "bg-white/10 border-white/20 text-white hover:bg-white/20" : "", we = async (e) => {
463
- let n = e.clipboardData.getData("text");
464
- try {
465
- let r = JSON.parse(n);
466
- if (r.url && typeof r.url == "string") {
467
- e.preventDefault(), f(r.url), t(typeof r.name == "string" && r.name !== r.url ? r.name : "");
468
- let n = r.proxyConfig?.proxyAddress || (typeof r.autoProxyFallback == "object" ? r.autoProxyFallback.proxyAddress : void 0);
469
- x(L(r.connectionMode, r.connectionType, !!n)), C(ae(r.protocolNegotiation)), n && V(n);
470
- let i = r.proxyConfig?.customHeaders || r.proxyConfig?.headers || r.customHeaders || r.headers || {};
471
- Object.keys(i).length > 0 && T(Object.entries(i).map(([e, t], n) => ({
472
- id: `header-${n}`,
473
- name: e,
474
- value: String(t)
475
- }))), r.requestTimeout && D(String(r.requestTimeout)), r.resetTimeoutOnProgress !== void 0 && oe(r.resetTimeoutOnProgress ? "True" : "False"), r.maxTotalTimeout && z(String(r.maxTotalTimeout)), r.oauth && (U(r.oauth.clientId || ""), G(r.oauth.clientSecret || ""), q(r.oauth.scope || "")), O.success("Configuration pasted and form populated");
476
- }
477
- } catch {}
478
- }, Te = (e) => {
479
- ye.current || e.nativeEvent.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && !e.metaKey && !e.ctrlKey && e.target.tagName !== "TEXTAREA" && (e.preventDefault(), J && a.trim() && J());
480
- }, Ee = /* @__PURE__ */ (0, F.jsxs)("div", {
481
- className: "grid gap-4 sm:grid-cols-2",
482
- children: [
483
- !Q && /* @__PURE__ */ (0, F.jsx)("h4", {
484
- className: "text-sm font-medium sm:col-span-2",
485
- children: "OAuth 2.0"
486
- }),
487
- /* @__PURE__ */ (0, F.jsxs)("div", {
488
- className: "space-y-2",
489
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
490
- className: "text-sm",
491
- children: "Client ID"
492
- }), /* @__PURE__ */ (0, F.jsx)(i, {
493
- "data-testid": "auth-dialog-client-id-input",
494
- placeholder: "Client ID",
495
- value: H,
496
- onChange: (e) => U(e.target.value)
497
- })]
498
- }),
499
- /* @__PURE__ */ (0, F.jsxs)("div", {
500
- className: "space-y-2",
501
- children: [
502
- /* @__PURE__ */ (0, F.jsx)(o, {
503
- className: "text-sm",
504
- children: "Client Secret"
505
- }),
506
- /* @__PURE__ */ (0, F.jsx)(i, {
507
- "data-testid": "auth-dialog-client-secret-input",
508
- type: "password",
509
- placeholder: "Client Secret (optional)",
510
- value: W,
511
- onChange: (e) => G(e.target.value)
512
- }),
513
- /* @__PURE__ */ (0, F.jsx)("p", {
514
- className: "text-xs text-muted-foreground",
515
- children: "Stored in your browser's localStorage."
516
- })
517
- ]
518
- }),
519
- /* @__PURE__ */ (0, F.jsxs)("div", {
520
- className: "space-y-2 sm:col-span-2",
521
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
522
- className: "text-sm",
523
- children: "Scope"
524
- }), /* @__PURE__ */ (0, F.jsx)(i, {
525
- "data-testid": "auth-dialog-scope-input",
526
- placeholder: "Scope (space-separated)",
527
- value: K,
528
- onChange: (e) => q(e.target.value)
529
- })]
530
- })
531
- ]
532
- }), De = /* @__PURE__ */ (0, F.jsx)(ce, {
533
- title: /* @__PURE__ */ (0, F.jsx)(F.Fragment, {}),
534
- headers: w,
535
- onChange: T
536
- }), Oe = /* @__PURE__ */ (0, F.jsxs)("div", {
537
- className: "grid gap-4 sm:grid-cols-2",
538
- children: [
539
- /* @__PURE__ */ (0, F.jsxs)("div", {
540
- className: "space-y-2",
541
- children: [
542
- /* @__PURE__ */ (0, F.jsx)(o, {
543
- className: "text-sm",
544
- children: "Connection Mode"
545
- }),
546
- /* @__PURE__ */ (0, F.jsxs)(d, {
547
- value: y,
548
- onValueChange: (e) => x(e),
549
- children: [/* @__PURE__ */ (0, F.jsx)(c, {
550
- className: "w-full",
551
- "data-testid": "config-dialog-connection-mode-select",
552
- children: /* @__PURE__ */ (0, F.jsx)(s, {})
553
- }), /* @__PURE__ */ (0, F.jsxs)(l, { children: [
554
- /* @__PURE__ */ (0, F.jsx)(u, {
555
- value: "auto",
556
- children: "Auto"
557
- }),
558
- /* @__PURE__ */ (0, F.jsx)(u, {
559
- value: "direct",
560
- children: "Direct"
561
- }),
562
- /* @__PURE__ */ (0, F.jsx)(u, {
563
- value: "proxy",
564
- children: "Proxy"
565
- })
566
- ] })]
567
- }),
568
- /* @__PURE__ */ (0, F.jsx)("p", {
569
- className: "text-xs text-muted-foreground",
570
- children: "Auto tries a direct connection first and falls back to the proxy. Direct bypasses the proxy; Proxy always routes through it."
571
- })
572
- ]
573
- }),
574
- /* @__PURE__ */ (0, F.jsxs)("div", {
575
- className: "space-y-2",
576
- children: [
577
- /* @__PURE__ */ (0, F.jsx)(o, {
578
- className: "text-sm",
579
- children: "Protocol"
580
- }),
581
- /* @__PURE__ */ (0, F.jsxs)(d, {
582
- value: S,
583
- onValueChange: (e) => C(e),
584
- children: [/* @__PURE__ */ (0, F.jsx)(c, {
585
- className: "w-full",
586
- "data-testid": "config-dialog-protocol-mode-select",
587
- children: /* @__PURE__ */ (0, F.jsx)(s, {})
588
- }), /* @__PURE__ */ (0, F.jsxs)(l, { children: [
589
- /* @__PURE__ */ (0, F.jsx)(u, {
590
- value: "auto",
591
- children: "Auto (recommended)"
592
- }),
593
- /* @__PURE__ */ (0, F.jsx)(u, {
594
- value: "v1",
595
- children: "Force v1 (2024/2025)"
596
- }),
597
- /* @__PURE__ */ (0, F.jsx)(u, {
598
- value: "v2",
599
- children: "Force v2 (2026-07-28)"
600
- })
601
- ] })]
602
- }),
603
- /* @__PURE__ */ (0, F.jsx)("p", {
604
- className: "text-xs text-muted-foreground",
605
- children: "Auto probes for v2 and falls back to the legacy v1 initialize flow. Forced modes fail when the server is incompatible."
606
- })
607
- ]
608
- }),
609
- /* @__PURE__ */ (0, F.jsxs)("div", {
610
- className: "space-y-2",
611
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
612
- className: "text-sm",
613
- children: "Proxy Endpoint"
614
- }), /* @__PURE__ */ (0, F.jsx)(i, {
615
- "data-testid": "config-dialog-proxy-address-input",
616
- value: B,
617
- onChange: (e) => V(e.target.value)
618
- })]
619
- }),
620
- /* @__PURE__ */ (0, F.jsxs)("div", {
621
- className: "space-y-2",
622
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
623
- className: "text-sm",
624
- children: "Request Timeout"
625
- }), /* @__PURE__ */ (0, F.jsx)(i, {
626
- "data-testid": "config-dialog-request-timeout-input",
627
- type: "number",
628
- value: E,
629
- onChange: (e) => D(e.target.value)
630
- })]
631
- }),
632
- /* @__PURE__ */ (0, F.jsxs)("div", {
633
- className: "space-y-2",
634
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
635
- className: "text-sm",
636
- children: "Maximum Total Timeout"
637
- }), /* @__PURE__ */ (0, F.jsx)(i, {
638
- "data-testid": "config-dialog-max-timeout-input",
639
- type: "number",
640
- value: R,
641
- onChange: (e) => z(e.target.value)
642
- })]
643
- }),
644
- /* @__PURE__ */ (0, F.jsxs)("div", {
645
- className: "space-y-2",
646
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
647
- className: "text-sm",
648
- children: "Reset Timeout on Progress"
649
- }), /* @__PURE__ */ (0, F.jsxs)(d, {
650
- value: I,
651
- onValueChange: oe,
652
- children: [/* @__PURE__ */ (0, F.jsx)(c, {
653
- className: "w-full",
654
- "data-testid": "config-dialog-reset-timeout-select",
655
- children: /* @__PURE__ */ (0, F.jsx)(s, {})
656
- }), /* @__PURE__ */ (0, F.jsxs)(l, { children: [/* @__PURE__ */ (0, F.jsx)(u, {
657
- value: "True",
658
- children: "True"
659
- }), /* @__PURE__ */ (0, F.jsx)(u, {
660
- value: "False",
661
- children: "False"
662
- })] })]
663
- })]
664
- })
665
- ]
666
- }), ke = /* @__PURE__ */ (0, F.jsxs)("div", {
667
- className: Z || Q ? "grid gap-4 sm:grid-cols-2" : "space-y-4",
668
- children: [/* @__PURE__ */ (0, F.jsxs)("div", {
669
- className: "space-y-2",
670
- children: [/* @__PURE__ */ (0, F.jsx)(o, {
671
- className: Se,
672
- children: "Alias"
673
- }), /* @__PURE__ */ (0, F.jsx)(i, {
674
- "data-testid": "connection-form-alias-input",
675
- placeholder: "Optional server alias",
676
- value: e,
677
- onChange: (e) => t(e.target.value),
678
- className: xe
679
- })]
680
- }), /* @__PURE__ */ (0, F.jsxs)("div", {
681
- className: "space-y-2",
682
- children: [
683
- /* @__PURE__ */ (0, F.jsx)(o, {
684
- className: Se,
685
- children: "URL"
686
- }),
687
- /* @__PURE__ */ (0, F.jsx)(i, {
688
- "data-testid": "connection-form-url-input",
689
- placeholder: "http://localhost:3000",
690
- value: a,
691
- onChange: (e) => f(e.target.value),
692
- onPaste: we,
693
- className: xe
694
- }),
695
- /* @__PURE__ */ (0, F.jsx)("p", {
696
- className: n("text-xs text-muted-foreground", $ ? "text-white/60" : ""),
697
- children: "Tip: You can paste a copied connection config (JSON) to auto-populate the form"
698
- })
699
- ]
700
- })]
701
- }), Ae = {
702
- onCompositionStart: () => {
703
- ye.current = !0;
704
- },
705
- onCompositionEnd: () => {
706
- ye.current = !1;
707
- },
708
- onKeyDown: Te
709
- }, je = de ? /* @__PURE__ */ (0, F.jsxs)(r, {
710
- "data-testid": "connection-form-copy-config-button",
711
- variant: "ghost",
712
- onClick: be,
713
- className: n($ ? "absolute top-0 right-0 z-10 text-white hover:bg-white/20 dark:hover:bg-white/20" : "w-full", !$ && "mb-2"),
714
- children: [/* @__PURE__ */ (0, F.jsx)(ee, { className: "mr-2 h-4 w-4" }), "Copy Config"]
715
- }) : null;
716
- return Z && Q ? /* @__PURE__ */ (0, F.jsxs)("div", {
717
- className: "relative space-y-6 @container",
718
- ...Ae,
719
- children: [
720
- je,
721
- /* @__PURE__ */ (0, F.jsxs)(N, {
722
- className: "border",
723
- children: [/* @__PURE__ */ (0, F.jsxs)(A, { children: [/* @__PURE__ */ (0, F.jsx)(k, {
724
- className: "text-base font-medium",
725
- children: "Endpoint"
726
- }), /* @__PURE__ */ (0, F.jsx)(M, { children: "MCP server URL and display alias" })] }), /* @__PURE__ */ (0, F.jsx)(j, {
727
- className: "pt-0",
728
- children: ke
729
- })]
730
- }),
731
- /* @__PURE__ */ (0, F.jsxs)(N, {
732
- className: "border",
733
- children: [/* @__PURE__ */ (0, F.jsxs)(A, { children: [/* @__PURE__ */ (0, F.jsx)(k, {
734
- className: "text-base font-medium",
735
- children: "Authentication"
736
- }), /* @__PURE__ */ (0, F.jsx)(M, { children: "OAuth 2.0 client credentials" })] }), /* @__PURE__ */ (0, F.jsx)(j, {
737
- className: "pt-0",
738
- children: Ee
739
- })]
740
- }),
741
- /* @__PURE__ */ (0, F.jsxs)(N, {
742
- className: "border",
743
- children: [/* @__PURE__ */ (0, F.jsxs)(A, { children: [/* @__PURE__ */ (0, F.jsx)(k, {
744
- className: "text-base font-medium",
745
- children: "Custom Headers"
746
- }), /* @__PURE__ */ (0, F.jsx)(M, { children: "Extra HTTP headers sent with MCP requests" })] }), /* @__PURE__ */ (0, F.jsx)(j, {
747
- className: "pt-0",
748
- children: De
749
- })]
750
- }),
751
- /* @__PURE__ */ (0, F.jsxs)(N, {
752
- className: "border",
753
- children: [/* @__PURE__ */ (0, F.jsxs)(A, { children: [/* @__PURE__ */ (0, F.jsx)(k, {
754
- className: "text-base font-medium",
755
- children: "Configuration"
756
- }), /* @__PURE__ */ (0, F.jsx)(M, { children: "Connection mode, proxy, and request timeouts" })] }), /* @__PURE__ */ (0, F.jsx)(j, {
757
- className: "pt-0",
758
- children: Oe
759
- })]
760
- })
761
- ]
762
- }) : /* @__PURE__ */ (0, F.jsxs)("div", {
763
- className: "relative space-y-4 @container",
764
- ...Ae,
765
- children: [
766
- !Z && /* @__PURE__ */ (0, F.jsx)("h3", {
767
- className: "mb-4 text-xl font-semibold text-white",
768
- children: "Connect"
769
- }),
770
- je,
771
- ke,
772
- Z && !Q && /* @__PURE__ */ (0, F.jsxs)("div", {
773
- className: "space-y-8 pt-2",
774
- children: [
775
- /* @__PURE__ */ (0, F.jsxs)("section", {
776
- className: "space-y-4",
777
- children: [/* @__PURE__ */ (0, F.jsx)("h3", {
778
- className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
779
- children: "Authentication"
780
- }), Ee]
781
- }),
782
- /* @__PURE__ */ (0, F.jsxs)("section", {
783
- className: "space-y-4",
784
- children: [/* @__PURE__ */ (0, F.jsx)("h3", {
785
- className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
786
- children: "Custom Headers"
787
- }), De]
788
- }),
789
- /* @__PURE__ */ (0, F.jsxs)("section", {
790
- className: "space-y-4",
791
- children: [/* @__PURE__ */ (0, F.jsx)("h3", {
792
- className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
793
- children: "Configuration"
794
- }), Oe]
795
- })
796
- ]
797
- }),
798
- !Z && /* @__PURE__ */ (0, F.jsxs)("div", {
799
- className: "flex flex-row gap-3 @lg:flex-col",
800
- children: [
801
- /* @__PURE__ */ (0, F.jsxs)(v, {
802
- open: he,
803
- onOpenChange: ge,
804
- children: [/* @__PURE__ */ (0, F.jsx)(m, {
805
- render: /* @__PURE__ */ (0, F.jsx)("div", {
806
- className: "relative flex-1 ",
807
- children: /* @__PURE__ */ (0, F.jsxs)(r, {
808
- "data-testid": "connection-form-auth-button",
809
- variant: "outline",
810
- className: n((H || W || K) && "border-2", "w-full justify-center hover:text-white cursor-pointer", Ce),
811
- children: [/* @__PURE__ */ (0, F.jsx)(b, { className: "w-4 h-4 mr-0" }), "Authentication"]
812
- })
813
- }),
814
- nativeButton: !1
815
- }), /* @__PURE__ */ (0, F.jsxs)(_, {
816
- scrollable: !0,
817
- className: "w-[calc(100vw-2rem)] sm:w-full max-w-2xl max-h-[80vh]",
818
- children: [/* @__PURE__ */ (0, F.jsx)(g, { children: /* @__PURE__ */ (0, F.jsx)(p, { children: "Authentication" }) }), /* @__PURE__ */ (0, F.jsxs)(h, {
819
- className: "space-y-4",
820
- children: [Ee, /* @__PURE__ */ (0, F.jsx)("div", {
821
- className: "flex justify-end",
822
- children: /* @__PURE__ */ (0, F.jsx)(r, {
823
- onClick: () => ge(!1),
824
- children: "Save"
825
- })
826
- })]
827
- })]
828
- })]
829
- }),
830
- /* @__PURE__ */ (0, F.jsxs)(v, {
831
- open: pe,
832
- onOpenChange: me,
833
- children: [/* @__PURE__ */ (0, F.jsx)(m, {
834
- render: /* @__PURE__ */ (0, F.jsx)("div", {
835
- className: "relative flex-1 ",
836
- children: /* @__PURE__ */ (0, F.jsxs)(r, {
837
- "data-testid": "connection-form-headers-button",
838
- variant: "outline",
839
- className: n("w-full justify-center hover:text-white cursor-pointer", Ce),
840
- children: [/* @__PURE__ */ (0, F.jsx)(re, { className: "w-4 h-4" }), "Custom Headers"]
841
- })
842
- }),
843
- nativeButton: !1
844
- }), /* @__PURE__ */ (0, F.jsxs)(_, {
845
- scrollable: !0,
846
- className: "w-full max-w-2xl max-h-[80vh]",
847
- children: [/* @__PURE__ */ (0, F.jsx)(g, { children: /* @__PURE__ */ (0, F.jsx)(p, { children: "Custom Headers" }) }), /* @__PURE__ */ (0, F.jsx)(h, { children: /* @__PURE__ */ (0, F.jsx)(ce, {
848
- title: /* @__PURE__ */ (0, F.jsx)(F.Fragment, {}),
849
- headers: w,
850
- onChange: T,
851
- onSave: () => me(!1)
852
- }) })]
853
- })]
854
- }),
855
- /* @__PURE__ */ (0, F.jsxs)(v, {
856
- open: _e,
857
- onOpenChange: ve,
858
- children: [/* @__PURE__ */ (0, F.jsx)(m, {
859
- render: /* @__PURE__ */ (0, F.jsxs)(r, {
860
- "data-testid": "connection-form-config-button",
861
- variant: "outline",
862
- className: n("flex-1 justify-center hover:text-white cursor-pointer", Ce),
863
- children: [/* @__PURE__ */ (0, F.jsx)(ne, { className: "w-4 h-4" }), "Configuration"]
864
- }),
865
- nativeButton: !0
866
- }), /* @__PURE__ */ (0, F.jsxs)(_, {
867
- scrollable: !0,
868
- className: "w-full max-w-2xl max-h-[80vh]",
869
- children: [/* @__PURE__ */ (0, F.jsx)(g, { children: /* @__PURE__ */ (0, F.jsx)(p, { children: "Configuration" }) }), /* @__PURE__ */ (0, F.jsxs)(h, {
870
- className: "space-y-4",
871
- children: [Oe, /* @__PURE__ */ (0, F.jsx)("div", {
872
- className: "flex justify-end",
873
- children: /* @__PURE__ */ (0, F.jsx)(r, {
874
- onClick: () => ve(!1),
875
- children: "Save"
876
- })
877
- })]
878
- })]
879
- })]
880
- })
881
- ]
882
- }),
883
- le && /* @__PURE__ */ (0, F.jsx)(r, {
884
- "data-testid": "connection-form-connect-button",
885
- onClick: J,
886
- disabled: !a.trim() || fe,
887
- size: $ ? "lg" : void 0,
888
- className: n("w-full font-semibold", $ ? "rounded-full text-black [&_[aria-hidden]]:bg-white hover:[&_[aria-hidden]]:bg-white/90 group-active:[&_[aria-hidden]]:bg-white/80" : ""),
889
- children: fe ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("svg", {
890
- className: "w-4 h-4 mr-2 animate-spin",
891
- fill: "none",
892
- stroke: "currentColor",
893
- viewBox: "0 0 24 24",
894
- children: /* @__PURE__ */ (0, F.jsx)("path", {
895
- strokeLinecap: "round",
896
- strokeLinejoin: "round",
897
- strokeWidth: 2,
898
- d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
899
- })
900
- }), "Connecting..."] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("svg", {
901
- className: "w-4 h-4 mr-2",
902
- fill: "none",
903
- stroke: "currentColor",
904
- viewBox: "0 0 24 24",
905
- children: /* @__PURE__ */ (0, F.jsx)("path", {
906
- strokeLinecap: "round",
907
- strokeLinejoin: "round",
908
- strokeWidth: 2,
909
- d: "M13 10V3L4 14h7v7l9-11h-7z"
910
- })
911
- }), "Connect"] })
912
- }),
913
- ue && /* @__PURE__ */ (0, F.jsxs)("div", {
914
- className: "flex justify-end gap-2",
915
- children: [X && /* @__PURE__ */ (0, F.jsx)(r, {
916
- variant: "outline",
917
- onClick: X,
918
- children: "Cancel"
919
- }), /* @__PURE__ */ (0, F.jsx)(r, {
920
- "data-testid": "connection-form-save-button",
921
- onClick: Y,
922
- children: "Save Connection Options"
923
- })]
924
- })
925
- ]
926
- });
927
- }
928
- //#endregion
929
- export { U as a, L as c, V as d, K as f, oe as i, ae as l, re as m, se as n, q as o, G as p, H as r, X as s, le as t, ie as u };