inspector/client/src/components
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall 5ef78470de * In App.tsx
- Add state for connectionType
  - Fetch connectionType from localstorage if present

* In Sidebar.tsx
  - Add dropdown for connectionType, only visible if transport type is not stdio

* In Sidebar.test.tsx
  - set connectionType to "proxy"

* In useConnection.ts
  - add connectionType param, defaulting to "proxy"
  - add state for mcpSessionId
  - Only check proxy health if the connection type is proxy
  - create a serverUrl variable which will either be the proxy url OR the server url depending upon the connection type
  - added captureResponseHeaders function to extract the protocol-related headers from a response.
  - when creating transport options and connectionType is "direct" and transportType is not "stdio",
    - add the appropriate `Accept` and `Content-Type` headers
    - capture the protocol related response headers and store them in the custom fetch handler
    - set serverUrl to be the server url, not the proxy url
  - if connection type is proxy set serverUrl to the mcpProxyUrl
  - use serverUrl instead of mcpProxyUrl for the  transport instantiation
* In useConnection.test.tsx
  - replaced test "sends X-MCP-Proxy-Auth header when proxy auth token is configured" with two tests:
    - "sends X-MCP-Proxy-Auth header when proxy auth token is configured for 'proxy' connectionType"
    - "does NOT send X-MCP-Proxy-Auth header when proxy auth token is configured for 'direct' connectionType"
   - added Connection URL Verification section with 2 tests
     - uses server URL directly when connectionType is 'direct'"
     - "uses proxy server URL when connectionType is 'proxy'"
2025-09-16 17:26:29 -04:00
..
__tests__ * In App.tsx 2025-09-16 17:26:29 -04:00
ui refactor: improve code formatting and readability across multiple files 2025-09-09 13:44:57 +05:30
AuthDebugger.tsx fix: correct authState.authorizationUrl type to URL 2025-09-05 18:40:48 -07:00
ConsoleTab.tsx init client 2024-10-07 16:28:05 -07:00
CustomHeaders.tsx fix: enhance error handling for custom headers and improve test coverage for header management 2025-09-10 21:01:24 +05:30
DynamicJsonForm.tsx ci: added test for the DynamicJsonForm 2025-08-04 09:32:24 +02:00
ElicitationRequest.tsx feat: use decline instead of reject 2025-07-04 12:09:51 +02:00
ElicitationTab.tsx feat: add active tab system 2025-07-18 18:21:40 +02:00
HistoryAndNotifications.tsx feat: add clear buttons for request history and server notifications 2025-09-04 13:37:19 +02:00
JsonEditor.tsx refactor: JsonEditor 2025-03-28 15:16:17 +09:00
JsonView.tsx fix: CI by removing unused useEffect 2025-09-01 18:32:16 +02:00
ListPane.tsx feat: improve color contrast and readability in dark mode 2025-05-27 11:48:03 +03:00
OAuthCallback.tsx Consolidate hooks 2025-04-30 17:09:22 -04:00
OAuthDebugCallback.tsx prettier --write client/src/components/OAuthDebugCallback.tsx 2025-08-18 13:01:13 -07:00
OAuthFlowProgress.tsx fix: correct authState.authorizationUrl type to URL 2025-09-05 18:40:48 -07:00
PingTab.tsx Fix inconsistent gap between TabsList and TabsContent 2025-04-04 22:39:55 +09:00
PromptsTab.tsx feat: Removes prompt argument from completion state 2025-07-12 12:45:02 +02:00
ResourceLinkView.tsx feat: Enhance ResourceLinkView with expandable resource content view 2025-07-09 05:15:46 +10:00
ResourcesTab.tsx feat: Add context argument to completion handlers 2025-07-12 12:42:21 +02:00
RootsTab.tsx Fix inconsistent gap between TabsList and TabsContent 2025-04-04 22:39:55 +09:00
SamplingRequest.tsx Consolidate hooks 2025-04-30 17:09:22 -04:00
SamplingTab.tsx Merge branch 'main' into sampling-form 2025-04-15 21:54:04 -04:00
Sidebar.tsx * In App.tsx 2025-09-16 17:26:29 -04:00
ToolResults.tsx feat: Add _meta field support to tool UI 2025-07-13 14:33:39 -07:00
ToolsTab.tsx fix: Assess PR comments (typo) 2025-09-01 18:31:52 +02:00