sk_…) stored as a CI secret named MCPJAM_API_KEY. See eval authentication for credential precedence and failure behavior.
The job runs the suite, then asks for a gate decision; the gate's exit code is the merge check.
Choose how to run
- GitHub Action
- CLI in any CI
- SDK upload
The evals action runs a hosted suite, waits for its result and uploads reports to GitHub. It tests the suite’s saved server, not your PR’s code.Save this as Create the
.github/workflows/mcpjam.yml, then replace the project and suite:.github/workflows/mcpjam.yml
MCPJAM_API_KEY repository secret under Settings → Secrets and variables → Actions in GitHub.Without gate: true, the run’s own verdict must pass. With it, each gate must pass or be waived. Failed launches, incomplete runs, missing reports and upload failures still fail the job. The action supports GitHub.com with Ubuntu runners; the action README lists its inputs and outputs.Gate the merge
eval run --wait already fails the job on a failed verdict. Add eval gate for a policy on top: a different pass-rate bar, a baseline comparison, or a cost limit. The gate also applies the suite’s stored quality gate.
Thresholds, scorer gates and the other flags are in the
cloud eval gate reference.
Gate on cost
Gate cost against the previous run; a fixed ceiling goes stale whenever the prompt or model changes:--base-run or --base-sha, the baseline is the nearest earlier completed run in the same suite. A run whose cost is unknown or only partly measured, such as one on your own API keys, reports non-gateable (exit 3) instead of passing.
Exit codes
The two commands use different exit codes:3 means “auth failed” from eval run --wait and “incomplete” from eval gate. The CLI reference has the full rules.
eval run --wait
eval run --wait
4 and 5 say nothing about your server; retry with a stable --idempotency-key. Fix the credential before retrying on 3. Don’t retry on 1.eval gate
eval gate
eval gate writes its report before it sets the exit code. Retrying on 3 is safe.Waive a failed gate
An authorized user can override a failed gate until a chosen expiry, so a known regression doesn’t block a release while it’s fixed:eval gate then exits 0 and reports waived, not passed. The failing verdicts stay in the report, and JUnit XML records the waiver as a <skipped> element. Only a real verdict failure can be waived: a cancelled run, a wait timeout or a network failure still exits 3. mcpjam cloud eval gate unwaive --run "$RUN_ID" ends a waiver early.
Read why a run failed
eval run --wait, eval status, eval gate and eval compare print a decision summary: the verdict, why, and the earliest stage where a failing iteration broke, with trace links. In --format json it is the decisionSummary field. Decision summary shows where each command puts it.
Suites managed in code
A suite synced from a suite file withmcpjam cloud eval run --file, or created by an SDK upload, carries a CI badge with the tooltip “Managed by CI (created from a test file or the MCPJam SDK)”.
These suites are read-only in the app, because an edit here would not last: a suite-file sync deletes any case the file doesn’t name, and an SDK suite’s cases are rebuilt from the next report. You can still run the suite and read its settings and results.
Suite settings and the suite page show “Managed by CI — edit the test file, or duplicate to edit here”:
An opened case shows “Managed in code. Update this test in your repository.” Its definition and iteration history stay readable.
You can delete a CI suite, which is how you clean up after a rename. The confirmation reads: “This suite is managed by CI. Deleting it removes the run history stored here; the next CI run or SDK report creates the suite again.”
A suite built in the app that CI only reports runs into is not locked. Deleting it removes the reported run history too, and its cases do not come back.
Next steps
Configure grading
Set the pass criteria and quality gate a run is held to.
Read results
Open a failed run and find what broke.
CLI reference
Every
cloud eval flag.
