inspector/clients/web/src/test/integration/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall a1cad93ed9 fix: exempt loopback hosts from the CIMD metadata URL HTTPS requirement
`getCimdClientMetadataUrlError` rejected every non-HTTPS CIMD client metadata
URL with no loopback exemption, and the same check runs against `client.json`
on disk through `refineCimdMetadataUrl`, so it could not be worked around by
hand-editing the file either. Every test server in this repo speaks plain HTTP,
so CIMD could not be driven against any local fixture: #2242 shipped verified by
tests alone, and reproducing it by hand meant standing up a self-signed HTTPS
listener plus `NODE_TLS_REJECT_UNAUTHORIZED=0` in the test server's environment.

Accept plain `http:` on the three literals the SDK itself exempts from its
token-endpoint TLS assertion — `localhost`, `127.0.0.1` and `[::1]`. That is
option 1 in #2305 and matches what the runtime already tolerated:
`core/auth/cimd.ts` notes that an already-stored `client_id` may be an `http://`
URL used by local dev/test metadata servers. Anything outside those three,
`localhost.` and `tenant.app.localhost` included, is still rejected — matching
the SDK literal for literal keeps the two allow-lists from disagreeing about one
URL.

The exemption is a literal set rather than `isLoopbackHost` because
`core/client/config-parse.ts` is browser-safe and `core/node/hostUrl.ts` imports
`node:net`.

The field error now names the exemption instead of saying only "must use
HTTPS", and the form's hint and description say the same, so a developer
pointing the field at a local fixture is told which spellings work.

Closes #2305

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfHQ8vMm5NBgzbUJ6UwxmB
Signed-off-by: cliffhall <cliff@futurescale.com>
2026-09-11 02:31:47 -04:00
..
import
node Merge branch 'v2/main' into v2/fix/2067-proxy-undici 2026-08-23 23:34:07 -04:00
remote Merge branch 'v2/main' into v2/feat/2144-oauth-revocation 2026-08-28 08:28:57 -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-resource-uris.test.ts fix: duplicate any listed resource URI, not only a registered one 2026-09-06 20:15:20 -04:00
duplicate-tool-names.test.ts
ema-mock-servers.ts
empty-cursor.test.ts fix: send an empty-string pagination cursor verbatim on every list adapter (#2220) 2026-09-06 13:28:44 -04:00
extensions-mimetype.test.ts
inspectorClient-advertised-extensions.test.ts
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
inspectorClient-excluded-tools.test.ts
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
inspectorClient-modern-era.test.ts test: drive the cancellation showcase through its checked-in config 2026-08-28 01:31:58 -04:00
inspectorClient-oauth-direct-mid-session-e2e.test.ts
inspectorClient-oauth-e2e.test.ts test: restore end-to-end coverage of resolveSdkRegistrationKind 2026-09-07 02:28:07 -04:00
inspectorClient-oauth-fetchFn.test.ts
inspectorClient-oauth-remote-mid-session-e2e.test.ts
inspectorClient-oauth-remote-storage-e2e.test.ts
inspectorClient-oauth.test.ts
inspectorClient-response-rejected.test.ts
inspectorClient-skills.test.ts feat: report a skill-name collision across the listing (#2248) 2026-09-07 19:02:18 -04:00
inspectorClient-subscriptions-era.test.ts fix(test-servers): describe and test after-first's resource-subscription counting 2026-08-27 21:14:30 -04:00
inspectorClient-tasks-era.test.ts
inspectorClient-xmcpheader-mirroring.test.ts
inspectorClient.test.ts feat(auth): revoke OAuth tokens at the authorization server on clear (#2144) 2026-08-28 00:48:57 -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
nullable-fields.test.ts
oauth-cimd-fixture.test.ts fix: exempt loopback hosts from the CIMD metadata URL HTTPS requirement 2026-09-11 02:31:47 -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: map the new exit code, keep add runnable, distinguish severity by shape 2026-08-25 02:37:10 -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