
QA Radar
io.github.MuratKusPublished by GitHub account MuratKusv0.3.5Updated Oct 24, 2026
Tells AI agents which files to test first — churn, coverage, and test mapping as risk scores.
Overview
Analyzes a repository's git churn, coverage and test mapping to tell an AI coding agent which files to test first, as risk scores.
- What you can do
- Produce a full quality health report for a repository, with risk levels and reasons
- Rank the riskiest modules and detect churn hotspots
- Report coverage gaps and source files with no corresponding tests
- Score only the files changed in a pull request against a base ref
- Decide whether a re-analysis is warranted and whether to scope it to the diff or the whole repo
- When to use it
- Useful when an AI coding agent should write targeted tests rather than generic ones, or when you want a deterministic, low-token risk ranking before opening a pull request or after merging a large feature branch.
- Requirements
- Runs as a local stdio process launched with uvx from the qaradar PyPI package, so Python and uv must be available. It reads the target repository's git history and existing coverage reports (coverage.py, Istanbul/Jest, Cobertura, LCOV, Go cover). No accounts, API keys or environment variables are declared.
Installation
In SourceWeft
- Open QA Radar in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
QA Radar
Give your AI coding agent the quality brain it doesn't have to grow from scratch.
QA Radar analyzes your codebase and produces a structured quality health report — combining git churn, test coverage, and test-to-source mapping into risk-scored modules. It works as an MCP server for AI coding agents (Claude Code, Cursor, Windsurf) and as a standalone CLI for humans and CI pipelines.
Built for developers who want their AI agent to write targeted tests, not generic ones.
Quick Start
Claude Code — one step:
Then ask your agent: "What should I test first?"
Or run directly without installing:
What It Does
QA Radar answers the question every new team member (and every AI agent) asks: "What should I test first?"
It scans three signals and combines them into a per-file risk score:
The output is a ranked list of modules by risk level (critical → low), with human-readable reasons for each rating.
Why Not Just Let the Agent Do It?
A capable agent with bash access could run git log --numstat, parse coverage.xml, and glob for test files. So why an MCP server?
Install as Claude Code Plugin (Recommended)
The fastest path — one command wires up the MCP server and installs 4 slash commands. No manual config editing.
Step 0 — install uv (if you don't have it):
uv launches qaradar on demand from PyPI — you don't need to pip install qaradar separately.
Step 1 — add the marketplace:
Step 2 — install:
What you get: 6 MCP tools auto-configured + 5 slash commands:
Example: after merging a big feature branch, run /qaradar:qa-check to see what regressed. Before opening a PR, run /qaradar:qa-pr-risk to see what you need to test first.
MCP Server (for AI Coding Agents)
Setup
Alternative: manual MCP config (if you prefer not to use the plugin):
Add to your Claude Code MCP config (~/.claude/mcp.json for user-level, or .mcp.json in the project root for project-level):
Or start it manually:
Example Prompts
Once connected, ask your agent:
"What should I test first in this repo?" "Which files are the riskiest right now?" "Show me the highest-churn files from the last month." "Which source files have no tests at all?" "Which of my changed files are risky?" ← diff-aware
Available MCP Tools
Diff-aware: what's risky in this PR?
qaradar_pr_risk scores only the files changed between a base ref and HEAD — not the whole repo. It keeps risk scores calibrated by using full-repo normalization, so a file with 2 commits in a PR isn't falsely flagged CRITICAL just because it's the only changed file the agent knows about.
Ask your agent:
"Which of my changed files are risky?" "Do any of the files I changed lack tests?" "What should I review before opening this PR?"
Or from the CLI:
qaradar_pr_risk auto-detects the base branch from GITHUB_BASE_REF (set automatically in GitHub Actions) or falls back to main/master. Pass base_ref explicitly to override.
CLI
Install
Or run without installing:
From source (for development):
Language Support
All language support lives in one registry — qaradar/analyzers/languages.py — so
adding a language is a single entry (extensions, test-name convention, test-function
counter), consumed by both churn and test-mapping.
Tier 1 — First-class, tested
Tier 2 — Best-effort, naming-based
Java, Ruby, Rust — test detection via naming conventions. Coverage via Cobertura XML or LCOV if emitted.
Coverage parsing is format-driven, so it spans more ecosystems than test-mapping detection, which is language-specific.
Monorepos: Istanbul/Jest reports are auto-discovered under packages/*/coverage and
apps/*/coverage, and absolute/package-relative coverage paths are normalized to
repo-relative so they join correctly against churn and test-mapping signals.
Supported Coverage Formats
Example Output
Tracking Runs Over Time
By default QA Radar is stateless. Opt in to persistence to track a repo across runs and drive incremental re-analysis (daily/weekly, or after N diffs, or after an agent finishes work).
should-run is a gate, not a scheduler — wire it into whatever you already use:
It reports scope: "full" (interval elapsed) or scope: "diff" (enough files changed),
so an agent calling the qaradar_should_run MCP tool knows whether to follow up with
qaradar_healthcheck or qaradar_pr_risk. State is one .qaradar/state.json per repo,
so a "collection of repos" is just a loop over repos in your own infra.
Tune the criteria in qaradar.toml:
--save also reports a delta vs the previous run — which files newly became risky,
which got worse, which improved or resolved.
Roadmap
- v0.1.2 — Claude Code plugin + slash commands
- v0.2.0 — Config file (
qaradar.toml), Tier 2 language validation, hardening - v0.3.0 — Diff-aware mode:
qaradar_pr_risk+--baseCLI flag - v0.4.0 — Mobile/monorepo language coverage (Swift, Kotlin, Obj-C, Dart, React Native, Jest); run persistence + re-run criteria (
should-run,--save,qaradar_should_run) - v0.5.0 — Flaky test detection from CI history (JUnit XML parsing)
Philosophy
QA Radar is built on three beliefs:
- The bottleneck has moved. AI makes writing tests easy. Knowing which tests matter is the hard part.
- Quality is a landscape, not a number. A single coverage percentage hides everything. Risk is per-module, per-signal, per-timeframe.
- Agents need context. An AI coding assistant that doesn't know your repo's fragile areas will write generic tests. Give it the quality landscape and it writes targeted ones.
License
MIT
Source: README.md at commit 22f78b4
Tools
0Version history
1- v0.3.5LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts