Commit graph inspector/client
Author SHA1 Message Date
cliffhall
96e256687e Bump TS SDK version to 1.24.3 2025-12-13 12:01:40 -05:00
Cliff Hall
e7018c0e23
Merge pull request #969 from olaservo/release/v0.18.0
chore: bump version to 0.18.0
2025-12-13 11:11:43 -05:00
olaservo
b3a27297c8 chore: bump version to 0.18.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 08:08:44 -07: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
Cliff Hall
2c94a00884
Merge branch 'main' into sep-1330-enums 2025-12-04 16:19:22 -05:00
cliffhall
124e73311a Bump version to 0.17.5 2025-12-04 09:46:13 -05:00
cliffhall
cb1be764c1 Exclude tests from build in tsconfig.app.json 2025-12-03 10:16:33 -05: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
54a9e7a8b8 Bump version to 0.17.4
Version 0.17.3 had TypeScript build errors that prevented successful builds. This patch release fixes those errors and bumps the version to 0.17.4.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-14 06:38:44 -07: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
Cliff Hall
1598b28f3a
Merge branch 'main' into fix/resolve-ref-pre-validation 2025-11-13 11:06:15 -05:00
olaservo
3930bdd700 Bump version to 0.17.3 2025-11-12 18:29:41 -07: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