Commit graph inspector/client/src
Author SHA1 Message Date
Alejandro Borbolla
5bbd9f736d
feat: Copy the input parameters of tools 2025-07-31 17:41:33 +02:00
Alejandro Borbolla
8589faa4c4
refactor: Use useCopy() in JsonView 2025-07-31 17:39:53 +02:00
Alejandro Borbolla
59504ac336
refactor: Add useCopy()
The `useCopy()` hook is pretty simple, as it handle a state variable
(`copied`) and put it back to false after a `timeout`
2025-07-31 17:39:53 +02:00
Ola Hungerford
14657973bd
Merge branch 'main' into dev/eh/tool-meta-support 2025-07-30 21:20:21 -07:00
Ola Hungerford
098a0e5a79
Merge branch 'main' into routing-fragment-cleanup 2025-07-26 10:48:10 -07:00
Ola Hungerford
f274a52612
Merge branch 'main' into feature/completion-context 2025-07-26 09:41:56 -07:00
Richard Michael
461403b624 Add tests for URL fragment routing behavior with order-independent window mocking
- Add tests for hash routing based on server capabilities priority
  - Test that no hash is set when disconnected
  - Add e2e test verifying startup has no hash fragment
  - Use Jest module mocking for useConnection hook states

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-24 13:29:45 -07:00
Richard Michael
28d3fc56c1 Update URL fragment to only appear when connected
- Only set URL fragment when mcpClient is connected
- Set default fragment based on server capabilities priority (resources > prompts > tools > ping)
- Clear fragment when disconnected to prevent stale routing state

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-24 13:13:57 -07:00
Cliff Hall
eda6c05ba1
Merge branch 'main' into feature/elicitations 2025-07-24 11:00:41 -04:00
Ola Hungerford
144755b369
Merge branch 'main' into feature/elicitations 2025-07-23 21:50:48 -07:00
Xiao Yijun
f6c9342678
test: update tests 2025-07-23 07:57:21 +08:00
Xiao Yijun
ee39d56e6d
chore: fix lint issue 2025-07-21 11:26:27 +08:00
Xiao Yijun
1c9b47a0e8
refactor: ui improvement 2025-07-21 11:24:54 +08:00
Alex Andru
6b204b5d29
feat: add active tab system 2025-07-18 18:21:40 +02:00
Xiao Yijun
91aacba85d
Merge branch 'main' into feat-support-enter-oauth-client-information-manually 2025-07-14 17:24:38 +08:00
Xiao Yijun
9e8042949d
refactor: update label for redirect URL 2025-07-14 17:23:02 +08:00
Eric Horacek
444c6b5704 Fix lint 2025-07-13 18:25:53 -07:00
Eric Horacek
5dd661513b feat: Add _meta field support to tool UI
Shows [_meta](https://modelcontextprotocol.io/specification/2025-06-18/basic/index#meta) fields if present when listing and calling tools
2025-07-13 14:33:39 -07:00
Dennis Geurts
e2de80fd84 feat: Removes prompt argument from completion state
This commit removes the prompt argument from the completion state.
The argument is deleted from the context after the completion is handled.
This prevents unexpected behavior and ensures a cleaner state.
2025-07-12 12:45:02 +02:00
Dennis Geurts
de474e5411 feat: Add context argument to completion handlers
This commit adds a `context` argument to the completion handlers in `PromptsTab`, `ResourcesTab`, `useCompletionState`, and `useConnection`.

The context argument allows passing additional information to the completion engine, which can be used to improve the quality of the completions.  The context is passed as a dictionary of key-value pairs.

The `ResourcesTab` component was also updated to pass `templateValues` as the `context` to the completion handler.

The `useConnection` hook was updated to include the context in the completion request sent to the server.
2025-07-12 12:42:21 +02:00
Ola Hungerford
430d6d4712
Merge branch 'main' into completion-support-default 2025-07-11 20:23:17 -07:00
bhosmer-ant
3acc6d891c
Merge pull request #602 from kentcdodds/cursor/fix-pull-request-interpretation-and-tests-7a8f
fix: interpretation of unstructured content and tests
2025-07-11 11:31:23 -04:00
Cursor Agent
1756b010d8 Improve content compatibility messages for structured content matching
Co-authored-by: me <me@kentcdodds.com>
2025-07-10 14:22:31 +00:00
Cursor Agent
78fd8949df Refactor content compatibility check and simplify test cases
Co-authored-by: me <me@kentcdodds.com>
2025-07-10 13:22:38 +00:00
Cursor Agent
cbb3ebcd1a Enhance content compatibility checks for tool results with multiple blocks
Co-authored-by: me <me@kentcdodds.com>
2025-07-10 12:45:47 +00:00
Nandha Reddy
914f6bb7c3
test: add resource link test coverage 2025-07-09 18:26:27 +10:00
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
Xiao Yijun
3b3205228f
refactor: remove resource config 2025-07-08 10:21:40 +08:00
Xiao Yijun
b8120d9f85
feat: support manual entry of OAuth client information 2025-07-08 09:41:55 +08:00
Ola Hungerford
e106194b40
Merge branch 'main' into completion-support-default 2025-07-07 05:00:52 -07: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
Ola Hungerford
aa73daaa60
Merge branch 'main' into notification-expansion-state 2025-07-06 19:59:18 -07:00
Francisco Veiras
9842a6278a fix: Copy JSON button form submission 2025-07-06 12:08:20 -03:00
Alex Andru
efd5f8a17c feat: enum support in dynamic json form 2025-07-04 19:45:55 +02:00
Alex Andru
3a121bc8fc fix: support JSON Schema spec compliant oneOf with const for labeled enums
- Make JsonSchemaType.type optional to support const-only schemas
- Add JsonSchemaConst type for schema objects using const values
- Update oneOf/anyOf to accept both full schemas and const schemas
- Add comprehensive tests for oneOf with const and title patterns

This fixes TypeScript compilation errors when using the JSON Schema
specification's recommended approach for labeled enums:
{ "type": "string", "oneOf": [{ "const": "red", "title": "Stop" }] }

Replaces deprecated enumNames pattern with spec-compliant implementation.
2025-07-04 19:39:03 +02:00
Alex Andru
e6c8b946aa feat: use decline instead of reject 2025-07-04 12:09:51 +02:00
Alex Andru
f2166c985f refactor: remove dead code 2025-07-04 10:59:29 +02:00
Alex Andru
28c1890117 feat: replace modal logic with new tab request for elicitation 2025-07-04 10:55:00 +02:00
Alex Andru
2baf8bc84b test: elicitations tab 2025-07-04 10:54:25 +02:00
Alex Andru
9539c16845 feat: add elicitations tab 2025-07-04 10:54:11 +02:00
Alex Andru
0411383d81 test: Elicitation request 2025-07-04 10:53:08 +02:00
Alex Andru
b4a2a6b7f8 feat: add elicitation request 2025-07-04 10:52:56 +02: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
Alex Andru
19ff315dd1 Merge branch 'origin/main' into feature/elicitations
Resolved conflicts by adopting the improved form input handling from main:
- Standardized JsonSchemaType.required to only accept string arrays (JSON Schema standard)
- Adopted enhanced object and array rendering with proper nested support
- Improved boolean field rendering (removed extra wrapper div)
- Enhanced array handling with add/remove functionality
- Simplified required field validation logic

This maintains elicitation functionality while benefiting from the form input fixes.
2025-07-03 16:14:21 +02: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