Commit graph inspector/client/src/components
Author SHA1 Message Date
Basil Hosmer
e74cbf0d40
Fix tests to match updated timeout description 2025-10-16 17:25:51 -04:00
Cliff Hall
0ae2b7e7fb
Merge branch 'main' into greg/add_null_support_to_tools 2025-10-11 11:59:07 -04:00
Ola Hungerford
f013291f34
Merge pull request #858 from cliffhall/fix-lint
Fix linter complaints
2025-10-10 19:08:26 -07:00
Greg Saab
3adddfb9f1 merge 2025-10-10 19:08:16 -04:00
Cliff Hall
fc86dad130
Merge pull request #761 from ln-12/json_view_copy_button
Add copy functionality to JsonView component
2025-10-10 18:46:30 -04:00
Cliff Hall
321100b5cc
Merge pull request #797 from JavaProgrammerLB/fixWrongRoleValue
fix wrong role default value
2025-10-10 17:37:57 -04:00
Cliff Hall
982e10d71c
Merge branch 'main' into crondinini/support-client-secret 2025-10-10 17:08:04 -04:00
Cliff Hall
bde12d1131
Merge branch 'main' into fixWrongRoleValue 2025-10-10 17:00:28 -04:00
Cliff Hall
ece0e27ad4
Merge pull request #823 from ksinder/main
`ToolsTab`: truncate longer tool descriptions for nicer rendering
2025-10-10 14:23:39 -04:00
Cliff Hall
8bfd164358
Merge branch 'main' into add-dropdowns-for-enums 2025-10-10 14:11:40 -04:00
crondinini-ant
bc1ca95aea
add client secret option 2025-10-10 18:21:34 +01:00
cliffhall
4e90143071 Fix linter complaints
* In JsonView.tsx
  - add setCopied to dependencies of handleCopy useCallback
* In useCopy.ts
  - add timeout to useEffect inside useCopy hook
2025-10-10 11:45:18 -04:00
anilkumar
653e0f87d1 fix: prevent long unbreakable words in alert messages from overflowing container 2025-10-09 00:03:32 +05:30
Greg Saab
6dd62d3a6d add UI spec 2025-10-08 13:04:57 -04:00
Greg Saab
6facce3fc1 conditionally render the checkbox 2025-10-08 13:04:50 -04:00
Greg Saab
3fd0feb75a if a field is nullable, provide a means of specifying null 2025-10-08 12:22:47 -04:00
Bill Lau
be65a8d569
Merge branch 'main' into fixWrongRoleValue 2025-10-08 16:45:49 +08:00
Ola Hungerford
097e2dd722
Merge branch 'main' into add-dropdowns-for-enums 2025-10-07 23:15:37 -07:00
olaservo
01adbe5f10 Merge branch 'main' into ksinder/main
Resolved conflicts in ToolsTab.tsx by combining:
- Error alert display from main
- Description styling improvements from PR #823 (whitespace-pre-wrap, max-h-48, overflow-y-auto)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 22:30:03 -07:00
Ola Hungerford
1778ab70ca
Merge branch 'main' into fix766 2025-10-07 21:28:32 -07:00
olaservo
3d3a79e109 Add enum parameter support in ToolsTab component and corresponding tests
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 20:57:42 -07:00
Ola Hungerford
b7ef160190
Merge pull request #819 from fredericbarthelet/update-resource-metadata-specs-link
Update link to actual mcp revision introducing protected resource metadata endpoint
2025-10-06 15:37:40 -07:00
lorenzo.neumann
fde922130d Merge branch 'main' of https://github.com/modelcontextprotocol/inspector into json_view_copy_button 2025-10-02 09:21:46 +02:00
olaservo
5abf1d5052 Clear validation errors after tool execution and adjust error display in ToolsTab 2025-09-27 22:09:44 -07:00
olaservo
a11ee99818 Update ToolsTab tests to require JSON fields and adjust default value generation for optional types 2025-09-27 21:17:17 -07:00
olaservo
69c294c0ae Let servers validate invalid input 2025-09-27 21:05:00 -07:00
olaservo
2b49ab7aaf Merge remote-tracking branch 'upstream/main' into omit-optional-empty-strings-updated 2025-09-27 20:53:06 -07:00
olaservo
45a1bde010 Refactor ToolsTab to handle cleared fields as undefined instead of empty strings; update tests for new behavior 2025-09-27 20:21:03 -07:00
olaservo
754c97956f Omit optional fields with empty strings from tool calls 2025-09-24 07:01:04 -07:00
Nandha Reddy
a3445c93ff Fix ESLint issues in DynamicJsonForm.tsx
- Remove unnecessary escape character in regex pattern
- Add missing schema dependency to useCallback hook
2025-09-24 01:04:24 +10:00
Nandha Reddy
8d149b2673 Add real-time JSON validation and prevent tool execution on invalid input 2025-09-24 00:25:06 +10:00
Nandha Reddy
119922b8b5
Merge branch 'main' into fix/validate-json-on-tool-execution 2025-09-23 20:10:59 +10:00
Cliff Hall
71aadf9652
Merge branch 'main' into tool-search 2025-09-22 16:23:04 -04:00
Kenneth Sinder
5bec008b81 ToolsTab: truncate tool descriptions for nicer rendering 2025-09-21 10:05:40 -07:00
Frédéric Barthelet
b9cd692b55 Update link to actual mcp revision introducing protected resource metadata endpoint 2025-09-19 13:53:10 +02:00
cliffhall
6b7c752684 * In Sidebar.tsx
- Add tooltip over the Connection Type field
2025-09-18 17:43:12 -04:00
Bill Lau
1b0d235b5d
Merge branch 'main' into fixWrongRoleValue 2025-09-17 15:42:24 +08:00
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
Ola Hungerford
e0071a9889
Merge branch 'main' into tool-search 2025-09-15 20:33:20 -07:00
jeetul.samaiya
e08ce8cee9 feat: add default Authorization Bearer header and clean up legacy auth
- Provide "Authorization: Bearer " as default starting header
- Remove legacy auth props from components
- Centralize migration logic and fix localStorage cleanup
- Update tests for new auth architecture
2025-09-15 20:19:56 +05:30
Jeetul Samaiya
f36c649bb9
Merge branch 'main' into main 2025-09-15 19:30:18 +05:30
Ola Hungerford
0850de74d9
Merge branch 'main' into tool-search 2025-09-15 06:35:28 -07:00
Ola Hungerford
3075cbbf18
Merge branch 'main' into alejandro.borbolla/copy-input 2025-09-14 21:27:07 -07:00
Cameron Roberts
36c38e7b47
Update ListPane.tsx 2025-09-14 00:29:54 +01:00
Cameron Roberts
2e683f3322
Merge branch 'main' into tool-search 2025-09-13 11:47:24 +01:00
Cameron Roberts
79fe56237a feat: first pass at stlying fix and searching on name/description 2025-09-13 11:34:13 +01:00
bill lau
89f6945ee4 fix wrong role default value 2025-09-11 17:24:07 +08:00
Jeetul Samaiya
743bb52d92
Merge branch 'main' into main 2025-09-11 12:12:33 +05:30
jeetul.samaiya
90ab419d12 fix: enhance error handling for custom headers and improve test coverage for header management 2025-09-10 21:01:24 +05:30
jeetul.samaiya
6f727b6662 fix: update error handling in JSON parsing and add ESLint rule for unused variables 2025-09-09 13:44:57 +05:30