Commit graph inspector/client/src
Author SHA1 Message Date
Cliff Hall
94ba4c3b56
* In useConnection.ts (#924)
- in connect()
    - Pass authProvider in transport options
2026-01-18 19:08:43 -07:00
Ahmet Soormally
2bf0dd1a03
fix: omit scope field in OAuth DCR when undefined and improve error handling (#1003)
fix: OAuth DCR scope field compliance

Omits the scope field entirely when undefined, per RFC 7591. This allows OAuth servers to assign default scopes instead of registering clients with no scopes.

Tested with Keycloak DCR.
2026-01-18 14:22:21 -07:00
Cliff Hall
8cb845798e
Merge branch 'main' into inspector/error-popup 2026-01-09 15:52:22 -05:00
cliffhall
f7bf100a65 Fix is401Error 2026-01-07 14:23:46 -05:00
Cliff Hall
04898cb5ce
Update client/src/lib/hooks/useConnection.ts 2026-01-07 14:16:22 -05:00
Cliff Hall
36a7244f86
Update client/src/lib/hooks/useConnection.ts
Adding fix for Via Proxy mode
2026-01-07 14:07:17 -05:00
thinhtpt-dev
e1886a8229 fix: detect 401 errors from StreamableHTTP transport in client 2026-01-06 14:00:13 +07:00
Dale Seo
6eed736d23 fix: display description for anyOf fields in JSON editor 2025-12-18 16:40:50 -05:00
Ola Hungerford
5778a3a93e
Merge pull request #926 from bolinfest/sapling-pr-archive-bolinfest
fix: allow empty elicitation form data when all fields are optional
2025-12-11 21:34:12 -07:00
Vijay Daswani
1e1b9e3619 feat: add theme property to Icon and Prompt types 2025-12-12 01:25:30 +04:00
cliffhall
d0c5b884c6 Fix linter issues in DynamicJsonForm.tsx 2025-12-03 10:08:13 -05:00
cliffhall
3f0c45e10d update DynamicJsonForm tests; add enum coverage and JSON-mode assertions
- Align tests with new form-first rendering and UI behavior:
  - Labels prefer schema `title` over property key.
  - Descriptions shown for boolean checkboxes and select fields.
  - Explicit mode switching between Form/JSON when needed.
- Add comprehensive coverage for enum schema variants:
  - Titled single-select via `oneOf`/`anyOf` with `{ const, title }`.
  - Untitled single-select via `enum` (with legacy `enumNames` labels).
  - Untitled multi-select via `items.enum` with `minItems`/`maxItems` helper text.
  - Titled multi-select via `items.anyOf`/`oneOf` with `{ const, title }`.
- Adjust complex/JSON-mode tests to click “Switch to JSON” before asserting textarea and clipboard interactions.
- Fix debounced JSON update expectations to assert parsed objects rather than raw text.

Files updated:
- `client/src/components/__tests__/DynamicJsonForm.test.tsx`
- `client/src/components/__tests__/DynamicJsonForm.array.test.tsx`
2025-12-03 09:58:18 -05:00
cliffhall
fd99d879c5 DynamicJsonForm improvements and full enum schema support
In DynamicJsonForm.tsx,
  - Support all five enum shapes used by MCP SDK:
    - Titled single-select via `oneOf`/`anyOf` with `{ const, title }`
    - Untitled single-select via `enum`
    - Titled legacy single-select with optional `enumNames` for labels
    - Titled multi-select via `items.anyOf`/`oneOf`
    - Untitled multi-select via `items.enum`
  - Show field descriptions for string select fields and boolean checkboxes (consistent help text above inputs).
  - Prefer schema property `title` for object field labels; fall back to the JSON key when missing.
  - Allow top‑level form rendering for objects with properties, arrays with items, and primitive types (was overly strict before).
  - Multi-select UI: sensible list size and `minItems`/`maxItems` helper text when present.
  - JSON editor fallback, copy/format controls, and debounced parsing preserved.
  - apply defaults for optional fields during form init

In schemaUtils.ts
  - `generateDefaultValue` now includes optional properties that declare a `default`, ensuring fields like strings show their defaults on first render.

In jsonUtils.ts
  - Add legacy `enumNames?: string[]` and array constraints `minItems?`/`maxItems?`.
2025-12-02 19:37:28 -05:00
Cliff Hall
7b644f9f99
Merge branch 'main' into jesselumarie/test-SEP-974 2025-12-01 14:13:47 -05:00
Michael Bolin
4b20f15c72 add suggested tests from code review 2025-12-01 10:07:10 -08:00
evalstate
6a86c19636 bump prettier. 3.7 was raising issues in CI (using 3.7.1) that 3.6.2 was not. 2025-11-27 20:48:30 +00:00
evalstate
927098faa9 prettier 2025-11-27 20:39:51 +00:00
evalstate
635a9a18f0 zod4 compatibility fixed for CI 2025-11-27 19:41:40 +00:00
Jesse Lumarie
a114db85bd mcp: update resources + icon alignment 2025-11-24 13:04:05 -07:00
Michael Bolin
92e01dca08 fix: allow empty elicitation form data when all fields are optional 2025-11-19 17:38:11 -08:00
Cliff Hall
35286a24c6
Merge branch 'main' into jesselumarie/test-SEP-974 2025-11-19 16:21:26 -05:00
lorenzo.neumann
c0b3b952f5 Merge branch 'main' of https://github.com/modelcontextprotocol/inspector into meta_properies_in_tools 2025-11-18 15:07:12 +01:00
Cliff Hall
156e1dcfed
Merge branch 'main' into fix/resolve-ref-pre-validation 2025-11-17 16:38:05 -05:00
Konstantin Konstantinov
a5d5593c97
Merge branch 'main' into meta_properies_in_tools 2025-11-15 01:34:22 +02:00
Konstantin Konstantinov
a45247a4f2
add validations against spec, add reserved metadata key validations 2025-11-15 01:26:13 +02:00
olaservo
a33699f8e3 Fix notification parameters in HistoryAndNotifications tests 2025-11-14 05:25:56 -07:00
olaservo
c93c10beca Add typegaurd for blob 2025-11-14 05:25:36 -07:00
Vincent
6106b1b562 fix: Remove incorrect nested test 2025-11-13 14:30:28 -08:00
V
adb897f05b
Merge branch 'main' into fix/resolve-ref-pre-validation 2025-11-08 10:47:05 -08:00
Vincent
c1f18a8edd fix: add ref resolves def test 2025-11-08 10:46:28 -08:00
Vincent
12332932b0 fix: Modify test mock data 2025-11-08 09:57:48 -08:00
Vincent
8ad6253cd9 fix: Extract function to utils 2025-11-04 09:31:31 -08:00
Vincent
b000fc25bb fix: Remove redundant type 2025-11-04 09:24:54 -08:00
Vincent
2ab7d625e4 Resolve ref before validation 2025-11-04 07:44:06 -08:00
Cliff Hall
63eb231650
Merge branch 'main' into fix/set-scope-dcr 2025-11-04 09:35:15 -05:00
Cliff Hall
54484e7e8e
Merge branch 'main' into fix-default-null-array-input 2025-10-30 12:04:47 -04:00
Cliff Hall
3044d8f14c
Merge branch 'main' into meta_properies_in_tools 2025-10-30 11:55:46 -04:00
cliffhall
37acee9283 Handle nullable arrays in tool inputSchemas
* In DynamicJsonForm.tsx
  - In debouncedUpdateParent, formatJson, and validateJson,
    - when trimming the JSON value, use ?.trim() in case the field is null

* In jsonUtils.ts
  - in tryParseJson
    - use ?.trim() in case the field is null

* In schemaUtils.ts
  - in normalizeUnionType
    - add condition to handle the case where there is an anyOf with array or null as options

* In ToolsTab.tsx
  - for nullable fields, in null checkbox, in onCheckedChange handler
    - when not checked, if prop type is array, set to undefined (empty input field that can be edited rather than the word "null" as the default could provide

Fixes #846
2025-10-29 14:28:49 -04:00
lorenzo.neumann
1c1afc30cc Fix global metadata not being applied 2025-10-28 12:54:23 +01:00
lorenzo.neumann
5b9e69f36a Aligned naming 2025-10-27 12:24:47 +01:00
lorenzo.neumann
8f28ea791b Aligned naming 2025-10-27 12:22:49 +01:00
lorenzo.neumann
159a049f94 Renamed mata schema to only meta 2025-10-27 12:09:44 +01:00
yanOO1497
fb7fae1436 fix: resolve $ref references in tool input schema properties 2025-10-25 17:02:25 +08:00
Cliff Hall
99120937e2
Merge branch 'main' into fix/set-scope-dcr 2025-10-24 17:25:13 -04:00
lorenzo.neumann
4622d81f81 Fixed tools tab test 2025-10-24 15:06:24 +02:00
lorenzo.neumann
caa1a2e1f5 Merge remote-tracking branch 'origin2/main' into meta_properies_in_tools 2025-10-24 15:04:38 +02:00
lorenzo.neumann
f82530fabb Fixed file names 2025-10-24 14:53:10 +02:00
lorenzo.neumann
809436d65c Added metadata cli tests, renaming 2025-10-24 14:37:22 +02:00
lorenzo.neumann
b9963014a0 Fixed naming 2025-10-24 14:02:41 +02:00
lorenzo.neumann
3d3925d02a Fixed metadata naming 2025-10-24 14:01:30 +02:00