npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flakeytesting/mcp-server

v0.9.0

Published

MCP server for Flakey — lets AI coding agents query test results

Readme

@flakeytesting/mcp-server

Model Context Protocol (MCP) server for the Flakey test reporting dashboard. Lets AI coding agents — Claude Code, Claude Desktop, Cursor, Windsurf, Zed — query test results, find flaky tests, drill into failure history, and look up runs from the editor without leaving the conversation.

Install

pnpm add -g @flakeytesting/mcp-server
# or
npm install -g @flakeytesting/mcp-server

A global install gives you a binary on your PATH. Per-project installs work too if you'd rather configure the MCP server with a pnpm exec / npx invocation.

Quick start

Claude Code

Add to ~/.claude/mcp.json (or your project's .mcp.json):

{
  "mcpServers": {
    "flakey": {
      "command": "flakey-mcp",
      "env": {
        "FLAKEY_API_URL": "https://flakey.your-domain.com",
        "FLAKEY_API_KEY": "fk_xxx..."
      }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/):

{
  "mcpServers": {
    "flakey": {
      "command": "flakey-mcp",
      "env": {
        "FLAKEY_API_URL": "https://flakey.your-domain.com",
        "FLAKEY_API_KEY": "fk_xxx..."
      }
    }
  }
}

Cursor / Windsurf

Same shape — refer to your editor's MCP-server configuration docs for the file location.

Restart the editor after editing the config. The MCP server connects to the Flakey backend the first time the agent issues a tool call.

What the agent can do

The server exposes Flakey's read-API as MCP tools the agent can call:

  • get_runs — list recent test runs, filter by suite / branch / status / environment
  • get_run — fetch a single run's full detail (specs, tests, screenshots, error groups)
  • get_flaky_tests — tests classified as flaky (alternating pass/fail across runs)
  • get_errors — failures grouped by error fingerprint, with affected-test list
  • get_test_history — per-test pass/fail history across runs
  • get_slowest_tests — tests by p95 duration (regression hunting)
  • get_quarantined_tests — currently-quarantined tests in the org
  • get_stats — dashboard aggregate stats with date-range filtering
  • predict_tests — given a list of changed files, predict which tests likely need to run

That's 9 read-only tools the agent always sees. One more — a mutation tool — is gated behind an explicit opt-in:

  • analyze_error[mutates server state] LLM-backed root-cause hypothesis for an error group; writes an analysis record to the backend (also requires the org's AI-provider config). Hidden unless FLAKEY_MCP_ALLOW_MUTATIONS is truthy (1 / true / yes).

Read-only by default. Mutation tools like analyze_error are skipped at startup — not even visible to the agent — unless FLAKEY_MCP_ALLOW_MUTATIONS is set, so an agent can't write analysis records without operator opt-in.

Typical agent workflows it unlocks:

  • "Did my latest CI run pass?"
  • "Show me every test that's failed in the last 24h on the main branch"
  • "What's the most-flaky test in the auth suite?"
  • "Find the run where Login > rejects empty creds first started failing"

API key

The MCP server uses the same API keys the CLI does — create one in the Flakey dashboard under Settings → API keys and paste the full fk_... string into the FLAKEY_API_KEY env var. The key's org membership scopes every tool call, so a per-developer key is fine.

Env vars

| Variable | Default | Purpose | |---|---|---| | FLAKEY_API_URL | http://localhost:3000 | Backend API URL | | FLAKEY_API_KEY | (required) | API key |

Compatibility

  • Node 20+
  • MCP protocol: 2024-11-05 spec

Links