inspector/client/src/lib
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__ fix: lint 2025-08-14 15:00:54 -04:00
hooks * In App.tsx 2025-09-16 17:26:29 -04:00
types feat: add default Authorization Bearer header and clean up legacy auth 2025-09-15 20:19:56 +05:30
auth-types.ts fix: correct authState.authorizationUrl type to URL 2025-09-05 18:40:48 -07:00
auth.ts fix: add validation for OAuth redirect URLs 2025-08-20 10:08:20 -03:00
configurationTypes.ts refactor: implement split storage for inspector config 2025-06-11 14:42:40 +01:00
constants.ts feat: support manual entry of OAuth client information 2025-07-08 09:41:55 +08:00
notificationTypes.ts * Remove handling of out-of-spec 'notification/stderr' messages. It's not a thing. See https://github.com/modelcontextprotocol/servers/pull/2469 2025-08-21 18:01:29 -04:00
oauth-state-machine.ts fix: correct authState.authorizationUrl type to URL 2025-09-05 18:40:48 -07:00
utils.ts run prettier 2024-11-04 21:29:59 +00:00