inspector/clients/web/src/test/integration/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall c389565783 fix: address Copilot review on the schema portability lint
- Scope `non-object-root` to `inputSchema`. The pinned SDK types
  `inputSchema` with `type: literal("object")` but `outputSchema` as a
  bare `looseObject`, so a `{"type":"string"}` output is conforming; the
  rule was claiming a requirement MCP does not make, at error severity.

- Decide `untyped-schema` from an allowlist of constraining keywords
  rather than a denylist of annotations. JSON Schema ignores keywords it
  does not recognize, so `{"vendorHint": true}` accepts every value and a
  denylist passed it as constrained. `$defs`-only schemas now flag too.

- Walk `dependentSchemas` and draft-07 `dependencies`, with a test
  pinning that the property-name-array form is not a schema position.

- Suggest `anyOf` branches for an array-form `type`, never "drop it from
  `required`" — accepting `null` and permitting absence are independent
  contracts, so the old suggestion silently changed the schema's meaning.

- Reject `--strict` alongside `--app-info`. That path returns NDJSON from
  `runMethod` and never reaches the lint, so the flag was a no-op gate
  that could never fail.

- Colour the web sidebar flag from the `--inspector-*` severity tokens,
  matching the detail panel and avoiding the default yellow that failed
  the a11y check.

- Add a live integration test for `rawToolSchemas`. It caught that an
  `outputSchema` override on a preset returning no structured content
  makes every call to that tool fail client-side validation — the
  showcase config did exactly that, so the flagged tool could not be
  run. Moved the bare `true` onto `get_temp`, documented the caveat, and
  pinned both halves.

- Drop the double cast from the lint test fixture.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UL9retfvAXRgvi6EWk4SY4
Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-25 01:41:12 -04:00
..
import test: raise per-file coverage gate to 90 across all clients (closes #1271) (#1532) 2026-06-27 15:26:03 -04:00
node Merge branch 'v2/main' into v2/fix/2067-proxy-undici 2026-08-23 23:34:07 -04:00
remote fix(web): move the app origin off 6276, bound the publish route 2026-08-24 08:45:40 -04:00
appElicitation.test.ts test(apps): cover the modern MRTR leg of app-rendered elicitations 2026-08-22 20:17:37 -04:00
duplicate-tool-names.test.ts test: cover the duplicateToolNames server option over a live connection 2026-08-10 20:34:14 -04:00
ema-mock-servers.ts test: cover EMA interactive leg 1 end-to-end (#1693) (#1765) 2026-07-24 13:11:51 -04:00
extensions-mimetype.test.ts Extensions: Connection Info both eras + io.modelcontextprotocol/ui advertisement (Phase 3 of #1633) (#1744) 2026-07-23 10:11:36 -04:00
inspectorClient-advertised-extensions.test.ts Extensions: advertised-extensions toggle in Server Settings (Phase 2 of #1633) (#1743) 2026-07-22 16:23:43 -04:00
inspectorClient-coverage-backfill.test.ts feat: allow complex JSON values in request _meta 2026-08-23 12:23:40 -04:00
inspectorClient-ema-e2e.test.ts test: cover EMA interactive leg 1 end-to-end (#1693) (#1765) 2026-07-24 13:11:51 -04:00
inspectorClient-excluded-tools.test.ts fix: address Copilot round 2 on the list-salvage path (#1909) 2026-08-15 17:52:36 -04:00
inspectorClient-malformed-list.test.ts fix: stop the exclusion scan writing the rendered list's report (#1909) 2026-08-15 20:38:10 -04:00
inspectorClient-modern-era-oauth.test.ts fix(core): start OAuth on a modern/auto-era connect (#1805) (#1809) 2026-07-27 15:06:01 -04:00
inspectorClient-modern-era.test.ts feat: allow complex JSON values in request _meta 2026-08-23 12:23:40 -04:00
inspectorClient-oauth-direct-mid-session-e2e.test.ts Auth hardening CI gaps + SDK consolidation: EMA leg 2 / scopes (#1527) (#1725) 2026-07-19 22:36:21 -04:00
inspectorClient-oauth-e2e.test.ts Auth hardening CI gaps + SDK consolidation: EMA leg 2 / scopes (#1527) (#1725) 2026-07-19 22:36:21 -04:00
inspectorClient-oauth-fetchFn.test.ts SDK v2 migration (behavior-neutral, versionNegotiation: 'legacy') (#1624) 2026-07-15 10:44:24 -04:00
inspectorClient-oauth-remote-mid-session-e2e.test.ts Auth hardening CI gaps + SDK consolidation: EMA leg 2 / scopes (#1527) (#1725) 2026-07-19 22:36:21 -04:00
inspectorClient-oauth-remote-storage-e2e.test.ts Auth hardening CI gaps + SDK consolidation: EMA leg 2 / scopes (#1527) (#1725) 2026-07-19 22:36:21 -04:00
inspectorClient-oauth.test.ts Auth hardening CI gaps + SDK consolidation: EMA leg 2 / scopes (#1527) (#1725) 2026-07-19 22:36:21 -04:00
inspectorClient-response-rejected.test.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
inspectorClient-subscriptions-era.test.ts fix: only announce the connection if it is still live after the stream open 2026-08-11 00:05:56 -04:00
inspectorClient-tasks-era.test.ts Tasks: io.modelcontextprotocol/tasks extension on modern servers (era fork) (#1731) 2026-07-21 19:17:04 -04:00
inspectorClient-xmcpheader-mirroring.test.ts fix(core): mirror SEP-2243 x-mcp-header args to Mcp-Param-* on tools/call (#1847) 2026-07-28 19:19:48 -04:00
inspectorClient.test.ts test: assert the dropped-member warning by its binding, not its message 2026-08-23 18:06:37 -04:00
listSalvage-era.test.ts fix: return the era-parsed tool, and hide aggregate reports in paginated mode (#1909) 2026-08-15 20:08:03 -04:00
mcp-app-demo.test.ts SDK v2 migration (behavior-neutral, versionNegotiation: 'legacy') (#1624) 2026-07-15 10:44:24 -04:00
nullable-fields.test.ts fix: strip the enum null sentinel, and make the preset test cover its wiring 2026-08-15 18:28:38 -04:00
oauth-resource-metadata-challenge.test.ts fix(auth): address review — observe SSE explicit fetch, isolate test state 2026-08-24 21:21:38 -04:00
raw-tool-schemas.test.ts fix: address Copilot review on the schema portability lint 2026-08-25 01:41:12 -04:00
rfc6570-templates.test.ts test: pin the InspectorClient wiring, and correct a false claim about the SDK 2026-08-17 00:59:30 -04:00
test-server-protected-resource.test.ts All of the mid-session and step-up auth work 2026-07-02 16:35:31 -07:00