Skip to content

ci: type check and offline tests of the hosted MCP Worker (workers/mcp) - #20

Open
euphyra-dev wants to merge 3 commits into
mainfrom
ci/workers-mcp-job
Open

euphyra-dev wants to merge 3 commits into
mainfrom
ci/workers-mcp-job

Conversation

@euphyra-dev

@euphyra-dev euphyra-dev commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Until now, no workflow ran workers/mcp, so a green CI said nothing about the hosted MCP Worker.

This adds a job « workers/mcp (Node 24) » (mcp-worker) to ci.yml. Its name is distinct from the existing Python mcp job. It runs:

  • npm ci --ignore-scripts, from the lockfile, with no install scripts;
  • npm run check (tsc --noEmit);
  • npm test (offline Worker tests).

It uses the same pinned checkout and setup-node actions as the other jobs, permissions: contents: read, and the same triggers, with no paths filter, so it never shows as skipped. It needs no secret, no wrangler and no Docker. Its only network access is the npm registry.

Local run of the same commands on this branch (main with #18): tsc clean, # pass 32, # fail 0.

Red witness on this branch:

  • ccfc031 (job added): workers/mcp (Node 24) pass (run 45858105640).
  • 9f575f8 (one Worker test deliberately broken): fail (run 45858241308).
  • 9a38a26 (revert, the test is back to its exact earlier content): pass (run 45858413252).

The net diff of this PR is the workflow file only. (The commits were later re-created with a different message only; each has the same tree as the commit the linked run tested.)

Note: main has no branch protection, so this job is not a required check. Making it required is a repository-settings change, outside this PR.

No workflow ran workers/mcp, so a green CI said nothing about the Worker. The new job installs
from the lockfile without install scripts, then runs tsc --noEmit and the offline tests.
No secret, no wrangler, no Docker; same pinned actions as the other jobs.
…commit)

Shows that the new workers/mcp job turns red when a Worker test fails.
The previous commit broke one test on purpose; the workers/mcp job turned red (run 45858241308).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant