Repository navigation
test(mcp): make live MCP server tests opt-in - #1354
akramcodez merged 3 commits into
Conversation
nc-review: comments — 1 nit@Piyushrathoree — a few things worth a look, none blocking. PR #1354 gates the eight live HTTP-transport integration tests in ⚪ nit · The new opt-in flag 🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
|
Hey @Piyushrathoree, the PR looks good! Could you add a changeset as well? |
hey not sure about the change set , its just a test change , if I still have to add a changeset which one should i go for? patch ig |
The HTTP transport tests in mcp-client.spec.ts hit real third-party servers (mcp.deepwiki.com, mcp.context7.com) and were only skipped when CI was set. Running the suite locally without network access, or when one of those hosts is down, fails with an unhandled "TypeError: fetch failed" and takes the whole test run down with it. Gate them behind RUN_LIVE_MCP_TESTS=true instead. The invalid URL and websocket protocol checks only hit localhost / validation, so they now run unconditionally. Fixes Nano-Collective#1348.
7be7d1b to
a97a926
Compare
|
fixed the conflicts too @akramcodez |
|
@akramcodez added the changeset too |
|
Thanks for the PR @Piyushrathoree |
Fixes #1348.
Description
The HTTP transport tests in
source/mcp/mcp-client.spec.tsconnect to real third-party servers (mcp.deepwiki.com,mcp.context7.com) and were only skipped whenCIwas set. Running the suite locally without network access, or when one of those hosts is down, fails with an unhandledTypeError: fetch failed.The live tests are now gated behind
RUN_LIVE_MCP_TESTS=trueinstead. The invalid URL and websocket protocol checks only hit localhost / validation, so they run unconditionally now.Without the flag: 63 passed, 8 skipped. With
RUN_LIVE_MCP_TESTS=true: all 71 pass.Type of Change
Changeset
pnpm changeset) describing this change for the changelogTest-only change, no changeset.
Testing
Automated Tests
.spec.ts/tsxfilespnpm test:allcompletes successfully)Manual Testing
Checklist