Commit graph inspector/client/src/components
Author SHA1 Message Date
Nandha Reddy
0dc7a50218
feat: Enhance ResourceLinkView with expandable resource content view
Add click-to-expand functionality for inline resource content display
2025-07-09 05:15:46 +10:00
Nandha Reddy
7c9cfa2113
Merge branch 'feat/add-resource-link-support' of https://github.com/nandsha/mcp-inspector into feat/add-resource-link-support 2025-07-08 22:34:23 +10:00
Nandha Reddy
c9ab61b09a
Merge branch 'main' into feat/add-resource-link-support 2025-07-08 22:32:58 +10:00
Ola Hungerford
7ff70e15b0
Merge branch 'main' into fveiras/copy_json 2025-07-07 04:59:31 -07:00
Ola Hungerford
30cefc8ede
Merge branch 'main' into feat/add-resource-link-support 2025-07-06 20:21:40 -07:00
Ola Hungerford
4ab7794494
Merge pull request #512 from richardkmichael/notification-expansion-state
Fix Server Notifications expansion state
2025-07-06 20:17:59 -07:00
Francisco Veiras
9842a6278a fix: Copy JSON button form submission 2025-07-06 12:08:20 -03:00
Francisco Veiras
b08aa68236 test: DynamicJsonForm tests with Copy JSON functionality 2025-07-03 20:04:53 -03:00
Cliff Hall
1cf3474c93
Merge branch 'main' into feat/prompt-layout 2025-07-03 17:13:48 -04:00
Nandha Reddy
21740bbd16 feat: Add resource_link content type support to ToolResults component
Add ResourceLinkView component for displaying resource links
2025-07-03 09:03:09 +10:00
Ola Hungerford
0130cf8c47
Merge branch 'main' into notification-expansion-state 2025-06-28 19:35:33 -07:00
Mark Anthony Cianfrani
9eb5e7b8c2
Merge branch 'main' into main 2025-06-27 20:06:31 -04:00
Francisco Veiras
d6864b8c71 feat: add copy JSON value 2025-06-27 17:30:30 -03:00
Nandha Reddy
c4587bafb8
feat: Add resource_link content type support to ToolResults component
Add ResourceLinkView component for displaying resource links
2025-06-26 21:49:40 +10:00
Ola Hungerford
4e68b93ca9
Merge branch 'main' into notification-expansion-state 2025-06-25 05:05:29 -07:00
Ola Hungerford
95975c58e7
Merge branch 'main' into fix-required 2025-06-24 21:35:27 -07:00
Paul Carleton
5db64265ce
[auth] Add resource compatibility to debugger (RFC 8707) (#526)
* pass resource in auth debugger, reusing server url

* throw error on resource url mismatch to match regular auth flow

* lint & tests

* add test

* make authserver url make more sense

* use latest typescript sdk

* more lenient resource checking

* pick resource, and store in state

* fixing tests and types

* [auth] use sdk function for selecting resource (#537)

* use sdk function

* bump typescript sdk

* fix some tests
2025-06-23 16:39:07 +01:00
Mark Anthony Cianfrani
f5dba84051 fix: allow typing negative numbers in tool parameter inputs
Number inputs were immediately converting values to Number() on every
keystroke, which prevented users from typing negative numbers since
the intermediate "-" character cannot be converted to a valid number.

Now the input stores the raw string value and only converts to Number
when the value is non-empty, allowing proper negative number entry.
2025-06-21 12:18:04 -04:00
Richard Michael
78eaa177a4 Rename History file to HistoryAndNotifications
Rename History.tsx to HistoryAndNotifications.tsx for consistency
with component name and update imports.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-17 17:16:05 -07:00
Richard Michael
7eaa948e98 Add tests for HistoryAndNotifications component
Tests cover basic rendering, numbering, expansion functionality, and
expansion state persistence when new items are added. Includes
regression test for notification expansion state tracking bug.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-17 17:16:05 -07:00
Richard Michael
6034ea36dc Fix expansion state tracking in Server Notifications 2025-06-17 17:16:05 -07:00
Jerome
b08827d94d
fix: remove window.location mocking to fix CI test failures
Remove all window.location mocking from AuthDebugger tests as it was causing "Cannot redefine property" errors in CI. The tests work correctly with JSDOM's default window.location implementation.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 18:06:54 +01:00
Jerome
1fd190fbb7
Linting, .git-blame-ignore-revs file 2025-06-13 17:38:01 +01:00
Jerome
459dd3a6df
fix: skip location-dependent test in CI instead of complex mocking
Rather than trying to work around JSDOM's non-configurable window.location property in CI, simply skip the test that depends on it when running in CI environment.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 17:35:58 +01:00
Jerome
1c8cec6ed9
fix: properly mock window.location in JSDOM environment
Use JSDOM's ability to delete non-configurable properties to create a proper window.location mock. This approach works reliably across different CI environments.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 17:23:19 +01:00
Jerome
7c0f6548d8
fix: resolve TypeScript build error for window.location mock
Use Partial<Location> type and improve fallback strategies for mocking window.location to work across different test environments while satisfying TypeScript's type checker.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 17:17:46 +01:00
Jerome
12385a3ce6
fix: resolve TypeScript linting errors in AuthDebugger test
Replace 'any' types with proper type annotations to satisfy @typescript-eslint/no-explicit-any rule.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 16:32:47 +01:00
Jerome
1d531d5a36
fix: handle window.location mocking in CI environment
Use a more robust approach to mock window.location that works across different Jest environments. The previous approach failed in CI with "Cannot redefine property" error.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 16:24:12 +01:00
Jerome
ace1cf642a
fix: update Sidebar tests to match new config structure
Updated test expectations to include is_session_item property that was added to DEFAULT_INSPECTOR_CONFIG structure.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 16:19:14 +01:00
olaservo
dac224bad7 Remove mocking 2025-06-12 03:56:20 -07:00
olaservo
b3e1b5cb6a Update defineProperty to make jest-dom happy 2025-06-11 06:45:23 -07:00
evalstate
509ca909bb make prompt and tool listing display consistent 2025-06-11 12:01:36 +01:00
olaservo
15967d5572 Merge branch 'main' into fix-required 2025-06-10 21:24:10 -07:00
Felix Weinberger
32e6bdd13c
feat: improve error messaging for proxy authentication failures
- Update connection error message to guide users about proxy token configuration
- Add specific message when proxy token is missing directing to Configuration section
- Help users quickly identify and resolve authentication issues
2025-06-10 18:16:41 +01:00
Marc Abramowitz
d5ef137c42 Merge branch 'main' into tooltip-for-url-field 2025-06-06 06:00:37 -07:00
Marc Abramowitz
9a7ba3451a npm run prettier-fix 2025-06-06 05:49:49 -07:00
Marc Abramowitz
2ecfdb0f2e Display tooltip only if sseUrl is set. 2025-06-05 00:25:18 -07:00
Ola Hungerford
e28e08d37d
Merge branch 'main' into fix-required 2025-06-04 19:59:52 -07:00
Ola Hungerford
a2d2cf6f3d
Merge pull request #459 from msabramo/resizable-left-sidebar
Resizable left sidebar
2025-06-04 19:58:59 -07:00
Ola Hungerford
6f80feb0b2
Merge branch 'main' into fix-required 2025-06-04 18:35:50 -07:00
Cliff Hall
cc28a891e9
Merge branch 'main' into 450-template-queries 2025-06-04 14:54:57 -04:00
dr3s
9508cc4627 pretty 2025-06-04 14:44:15 -04:00
Marc Abramowitz
5da1dc3256 Add tooltip for URL field
A quick way to see the full URL if it's cut off

Inspired by @cliffhall's
[comment](https://github.com/modelcontextprotocol/inspector/pull/459#issuecomment-2932277785)
2025-06-03 22:54:19 -07:00
Marc Abramowitz
13d31596af Merge branch 'main' into resizable-left-sidebar 2025-06-03 22:29:15 -07:00
dr3s
21b86d409c add test 2025-06-03 13:58:33 -04:00
dr3s
26f744866a formatting 2025-06-03 13:58:33 -04:00
dr3s
07f3e4593b remove logs 2025-06-03 13:58:33 -04:00
dr3s
f1650d06e3 use UriTemplate variable names 2025-06-03 13:58:33 -04:00
dr3s
2f50a4ba0e fix: Resource template query parameters not appended to request URI #450 2025-06-03 13:58:33 -04:00
Paul Carleton
9371006838
less noisy errors 2025-06-03 11:02:34 +01:00