cliffhall
2f83549bc3
test(proxy): isolate proxy env per suite; fail the bundle guard closed
...
Addresses review round 2 on #2099 .
- The /api/fetch proxy test set only uppercase HTTP_PROXY, so an ambient
lowercase `http_proxy` (which undici's EnvHttpProxyAgent prefers) or a NO_PROXY
could route the request elsewhere and fail the assertion. All six proxy vars
are now saved and cleared for the whole /api/fetch suite and restored in
afterAll — suite-level rather than per-test because the agent is memoized
process-wide once built. Verified the test still passes under a deliberately
hostile ambient env (`http_proxy=http://127.0.0.1:9 NO_PROXY='*'`).
- `verify:bundle-externals` reported success when `parseExternals` returned
nothing, so an ordinary tsup refactor — hoisting the array to a constant, or a
line break after `external:` — would silently disable the guard. It now fails
closed: every bundled client has externals, so "none parsed" means the parser
lost track of the config. Verified against exactly that refactor. The
per-client verdict moved into a pure `evaluateClient()` so all three failure
modes are unit-tested, and the failure epilogue is now printed only for a real
inlining, since "add the package to `external`" is the wrong instruction for
the other two.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JTHVxSu8AUgHRLvo1ntZ8H
Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-23 21:48:06 -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
fix(proxy): route through undici's own fetch and keep undici external
2026-08-23 21:12:16 -04:00
remote
test(proxy): isolate proxy env per suite; fail the bundle guard closed
2026-08-23 21:48:06 -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
fix(core): register peer-request handlers before connect ( #1797 ) ( #1798 )
2026-07-27 11:32:23 -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
test(integration): drive the mrtr_empty reproduction through the showcase config
2026-08-16 18:41:36 -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
Merge pull request #1958 from modelcontextprotocol/v2/fix/unhandled-rejections-progress-tests
2026-08-11 11:17:55 -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
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