Back to Browse

Flakeprint MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

Flaky-test evidence for AI: analyze CI reports, explain flaky tests, reports, stress runs

About

Flaky-test evidence for AI: analyze CI reports, explain flaky tests, reports, stress runs

Remote endpoints: streamable-http: https://flakeprint-backend.onrender.com/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

13 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-raunaksahahere-flakeprint": {
      "url": "https://flakeprint-backend.onrender.com/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Flakeprint

Flakeprint finds tests that fail and then pass on unchanged code. It runs as a GitHub Action after your tests, keeps its history on a flakeprint-data branch in your own repository, and links every finding to the exact runs behind it.

Status: private beta (v0.x). See BUILD_STATUS.md and CHANGELOG.md.

Quickstart

permissions:
  contents: write   # only used to push history to the flakeprint-data branch
  actions: read     # optional: exact job links instead of run-attempt links

steps:
  - uses: actions/checkout@v7
  - id: tests
    run: npm test            # anything that writes JUnit XML
  - uses: raunaksahahere/flakeprint@v0
    if: ${{ !cancelled() }}
    with:
      results: "**/junit*.xml"
      test-outcome: ${{ steps.tests.outcome }}
      matrix: ${{ toJSON(matrix) }}

To see it work, run the workflow. When it fails, click Re-run failed jobs. The job summary of the second attempt shows the tests that flipped between attempts.

Inputs

InputDefaultPurpose
results**/junit*.xml and **/TEST-*.xmlGlob(s) of JUnit XML reports, one per line
modebothrecord, analyze or both
test-outcomesteps.<id>.outcome. When it is failure, the Flakeprint step fails too
matrixtoJSON(matrix), so each matrix leg is compared only with itself
settingsExtra settings that must match, e.g. suite=unit (needed when one job records two suites)
data-branchflakeprint-dataBranch that stores history
dry-runfalseAnalyse without writing
fail-on-test-failuretrueFail this step when test-outcome is failure
fail-on-errorfalseFail if Flakeprint itself can't record (by default it warns)
broken-min-runs2Consecutive failures needed to call a test broken
recovery-runs5Consecutive passes needed after a failure to call a test healthy
history-limit200Shards from other commits loaded for context
max-push-attempts6Retries when concurrent jobs race to push
report-path$RUNNER_TEMP/flakeprint-report.jsonWhere the JSON report is written
pr-commentautoauto, always or off. One sticky PR comment, edited in place. Needs pull-requests: write
status-checkoffoff, warn or block. A flakeprint commit status; block fails only on regressions, never on flaky tests, and never when Flakeprint is down. Needs statuses: write
comment-previewWrite the PR comment Markdown to this path (any event, including dry-run)
partial-clonefalseFetch the data branch without blobs; read only the shards needed
follow-renamestrueHistory follows renamed or moved tests (heuristic)
retention-days, compact-grace-days, delete-tests, delete-runs, delete-shas, squash-historyUsed with mode: compact; see Storage

Outputs: report-path, shard-path, write-status, settings-key, tests, confirmed-flaky, suspected-flaky, new-failures, broken, comment-preview.

Pull request comment and status check

permissions:
  contents: write
  actions: read
  pull-requests: write   # sticky comment
  statuses: write        # flakeprint commit status
# …
  - uses: raunaksahahere/flakeprint@v0
    if: ${{ !cancelled() }}
    with:
      test-outcome: ${{ steps.tests.outcome }}
      status-check: block   # fail the status on regressions only

The comment groups findings as regression, new flake, known flake and recovery, each with the commit, fingerprint, and links to the failed and the passed attempt.

Storage, compaction and deletion

Run mode: compact on a schedule (see .github/workflows/flakeprint-compact.yml). It rolls finished months into snapshots/YYYY/MM.ndjson.gz, applies retention-days, and removes delete-tests / delete-runs / delete-shas from all history; squash-history: true also rewrites the branch to one commit. Measurements: docs/storage.md.

Flake-rate score

Each test gets a Beta-Binomial flake-rate estimate (Jeffreys prior) with a 90% credible interval, counted only on commits where the test also passed with the same settings, so real regressions don't inflate it. The simulation study shows zero false positives across every configuration tested.

Quarantine

Add .flakeprint/quarantine.yml (or let the weekly mode: quarantine-propose workflow open a PR — it only proposes tests that flipped on at least two commits, never a single failure):

version: 1
mode: report            # off | report | enforce
branches: { main: enforce, "release/*": report }
limits: { maxEntries: 25, maxDays: 30 }
entries:
  - test: "test/cart.test.js::cart::webhook arrives"
    fingerprint: fp_aea8dd98b049   # failures with another fingerprint are NOT covered
    reason: Webhook race, tracked in #42
    owner: "@acme/payments"
    approver: "@lead"
    since: 2026-11-28
    expires: 2026-12-12

Quarantined tests keep running and keep their results. Under enforce, a failed test step passes only when every failure is quarantined with the expected fingerprint; the original outcome stays in the original-outcome output, the job summary and history. Expired entries stop applying and are escalated. A pytest plugin is in integrations/pytest/ (non-strict xfail, so the test still runs); flakeprint quarantine export --format go prints a go test -skip regex.

Issues, digest, badge and notifications

  • issues: true keeps one issue per flaky test (CODEOWNERS owners, optional project-url for GitHub Projects), comments when it flakes again and reopens it if needed.
  • mode: digest (weekly, see .github/workflows/flakeprint-digest.yml) posts a digest issue, closes issues of tests whose recovery is verified, labels issues past sla-days, and writes badge.json: ![flaky tests](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/OWNER/REPO/flakeprint-data/badge.json)
  • notify sends first-time events only (new flake, newly broken, escalation, quarantine expiry) to Slack, Teams, Discord or any webhook, with a burst limit.
  • Each confirmed detection also gets an immutable evidence capsule on the data branch (capsules/<test>/<sha>-<id>.json), content-addressed so it never changes, even if the classification does later.

Report formats

JUnit XML (pytest, Jest, Vitest, Go, Surefire, Playwright, Node, RSpec, PHPUnit, Mocha, WebdriverIO, cargo-nextest, Kotlin/Gradle, Swift via JUnit reporters) plus native CTRF JSON, go test -json, TRX, NUnit, xUnit.net, TestNG, Cucumber JSON, Robot Framework output.xml and Mocha JSON, detected automatically.

CLI

Download flakeprint.mjs from a release (Node 22+). Works locally and on any CI (GitHub Actions, GitLab CI, Jenkins, CircleCI, Buildkite, Azure Pipelines, Bitbucket Pipelines).

node flakeprint.mjs analyze reports/*.xml            # classify against local or branch history
node flakeprint.mjs record --push                    # store this attempt on flakeprint-data (FLAKEPRINT_TOKEN)
node flakeprint.mjs preview                          # the PR comment, locally
node flakeprint.mjs report --from-branch             # flake rates, impact and advice per test
node flakeprint.mjs retry --framework vitest --results 'reports/*.xml' -- npx vitest run --reporter=junit --outputFile.junit=reports/junit.xml
node flakeprint.mjs stress --runs 5 --image node:22-alpine --image node:24-alpine --env TZ=UTC --env TZ=Asia/Kolkata -- npm test
node flakeprint.mjs doctor                           # health check
  • retry re-runs only failures the policy allows (budget, per-test limit, backoff; deterministic failures and mass failures are not retried) and writes one merged report that keeps every original failure as <flakyFailure>, so a recovered test shows up as suspected flaky — never silently green.
  • stress runs your suite N times in separate Docker containers per environment (image × env vars × CPU/memory limits), or locally. Every run is an attempt on the same commit, so the normal detector finds tests that flip in one environment and tests that only fail in some environments. The reusable workflow .github/workflows/stress.yml does the same on real Linux, Windows and macOS runners.

Configuration: optional .flakeprint.yml, every setting documented in docs/configuration.md.

Backend (optional, Render-ready)

backend/ is a small Node service (Dockerfile + render.yaml) for what needs a long-running server: analysing uploaded reports, mirroring history from GitHub webhooks (signature-verified, idempotent), a REST API with org-wide analytics, orchestrating stress runs on GitHub's Linux/Windows/macOS runners, optional AI explanations of a test's evidence (Gemini 3.8 Flash; observed facts and AI hypotheses are always shown separately), Jira/Linear tickets and an audit log. The API is public; admins sign in with GitHub. See backend/README.md.

AI assistants (MCP)

Any AI model can call Flakeprint as an MCP server to analyse reports, explain a flaky test (facts first, AI hypotheses separate), write a reliability report, or run the process: stress runs, retries, tickets.

  • Hosted: https://<your-service>.onrender.com/mcp (Streamable HTTP, public like the API). In Claude Code: claude mcp add --transport http flakeprint https://<your-service>.onrender.com/mcp.
  • Local: node flakeprint.mjs mcp (stdio) works on your project folder and can run your tests; or install flakeprint-mcp.mcpb from the release in Claude Desktop.

Tools, client setup and safety notes: docs/mcp.md.

How it decides

Flakeprint only compares executions of the same test on the same commit with the same test settings. Test settings are the workflow file, job, matrix values, runner OS and architecture, plus the optional settings input.

StateRule
confirmed flakyIt both failed and passed in separate attempts or runs on the same commit and settings (FAIL→PASS, PASS→FAIL, FAIL→PASS→FAIL, …).
suspected flakyIt passed only after the test framework re-ran it inside one attempt (for example Surefire flakyFailure).
new failureIt failed once with no same-commit evidence of flakiness. A first failure is never called flaky.
brokenIt failed in every execution: at least broken-min-runs consecutive failures with no pass between them.
recoveringIt passes now, but it failed on earlier commits and has fewer than recovery-runs consecutive passes.

Retries of the same workflow run (run_attempt) are labelled retry. Other workflow runs on the same commit are labelled independent. Results from a different commit or from different settings are shown for context, but they never count as flakiness evidence.

Dashboard

apps/web is a Next.js dashboard: repo overview (tracked / healthy / flaky / broken / new / recovered / critical, top time-wasting tests, recent activity), flaky and broken test lists with search, filters and sorting, a per-test page (stable ID, owner, state, flake rate with credible interval, run timeline, duration trend, fingerprints, commit and environment history, reviewer assistant), a failed-vs-passed comparison view, analytics (daily/weekly/monthly, branches, suites, environments, flake debt, before/after a fix), a setup wizard, CSV/JSON export and a PDF reliability report. You sign in with a GitHub App and see only the repositories that both the app installation and you can access. The live run page shows real GitHub job and step progress. When the Flakeprint report for that attempt lands, it shows inputs, counts, error fingerprints and links to both attempts. It has no database: everything is read from the GitHub API and the flakeprint-data branch. For GitHub App setup, see BUILD_STATUS.md.

Privacy and security

  • History is stored as gzip NDJSON shards in your repo, at runs/YYYY/MM/<sha>/<run_id>-<attempt>-<jobKey>.ndjson.gz. Each job attempt gets its own file, so parallel jobs never conflict.
  • Error text has secrets redacted (tokens, keys, JWTs, credentials in URLs, password= values) and is truncated before it is stored.
  • The token goes to git as an HTTP header through environment config. It is never put in URLs, argv or .git/config.
  • Pull requests from forks run read-only.
  • Untrusted test names and output are escaped in summaries.
  • The dashboard's GitHub App reads Actions, Contents, Issues, Pull requests and Metadata. The app writes only when a user with write access to the repository clicks an action (Run stress, Propose fix), using that user's own token; fix PRs are drafts and are never merged automatically. Each action re-checks your write access on the server.

Development

corepack enable
pnpm install
pnpm check   # typecheck, unit tests, bundle, end-to-end test of the bundled action, dashboard acceptance tests
PathWhat it is
packages/coreParser, identity, fingerprints, shards, classification
packages/actionThe GitHub Action; bundled to dist/index.js, which is committed
packages/cliThe flakeprint CLI (bundled to dist/flakeprint.mjs, attached to releases)
integrations/pytestQuarantine plugin for pytest
demo/stressDemo suite for flakeprint stress (a run-order flake and a timezone bug)
scripts/Simulation study and storage measurement
backend/Render/Docker backend: analysis API, webhooks, REST, stress orchestration, AI explanations
apps/web/srcNext.js dashboard: app/ (routes only), features/{auth,repos,runs,history} (logic + components per feature), lib/ (GitHub client, config), components/
demo/Deterministic demo suite, used by .github/workflows/flakeprint-demo.yml

See RELEASING.md for how releases are cut.

License

Apache License 2.0. See NOTICE.

Reviews

No reviews yet

Be the first to review this server!