QA Radar — give your AI coding agent the quality brain it doesn't have to grow from scratch.
Project description
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.
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:
| Signal | What It Measures | Why It Matters |
|---|---|---|
| Git Churn | Commit frequency, lines changed, recency | High-churn files are regression magnets |
| Coverage Gaps | Line & branch coverage from existing reports | Low coverage = blind spots |
| Test Mapping | Which source files have corresponding tests | No tests = no safety net at all |
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?
| Concern | What QA Radar does instead |
|---|---|
| Token cost | git log over 90 days on a medium repo is hundreds of KB. QA Radar returns ~5 KB of structured JSON. |
| Determinism | A weighted risk score computed ad-hoc in-context is unreliable. Code is reproducible. |
| Speed | One tool call vs. 4–6 sequential bash calls + reasoning between each. |
| Format normalization | LCOV / Cobertura / coverage.py JSON / Go cover profiles all parse differently. QA Radar normalizes across formats so the agent doesn't have to. |
| Convention encoding | test_x.py for Python, x.test.ts for JS/TS, x_test.go for Go, FooTest.java for Java — encoded once, not re-derived each session. |
| Portability | The same MCP tools work across Claude Code, Cursor, and Windsurf without re-prompting. |
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):
curl -LsSf https://astral.sh/uv/install.sh | sh
# or: pip install uv
uv launches qaradar on demand from PyPI — you don't need to pip install qaradar separately.
Step 1 — add the marketplace:
/plugin marketplace add Muratkus/qaradar
Step 2 — install:
/plugin install qaradar@qaradar-marketplace
What you get: 5 MCP tools auto-configured + 4 slash commands:
| Command | What it does |
|---|---|
/qaradar:qa-check |
Full health report — risk, coverage, untested files |
/qaradar:qa-risky |
Ranked list of riskiest files with reasons |
/qaradar:qa-untested |
Source files with no detected tests + scaffold suggestions |
/qaradar:qa-plan |
Prioritized test plan (chains 3 tools) |
Example: after merging a big feature branch, run /qaradar:qa-check to see what regressed.
MCP Server (for AI Coding Agents)
Setup
Alternative: manual MCP config (if you prefer not to use the plugin):
Add to your Claude Code config (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"qaradar": {
"command": "uvx",
"args": ["qaradar", "serve"]
}
}
}
Or start it manually:
uvx qaradar serve
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?"
Available MCP Tools
| Tool | When the Agent Uses It |
|---|---|
qaradar_healthcheck |
Full quality overview of a repository |
qaradar_risky_modules |
What to test first; which files are riskiest |
qaradar_churn |
Hotspot detection; where regressions tend to occur |
qaradar_coverage_gaps |
Files with low coverage; where the blind spots are |
qaradar_untested_files |
Source files with no corresponding test files |
CLI
# Full health check on current directory
qaradar analyze
# Analyze a specific repo with 180 days of history
qaradar analyze /path/to/repo --days 180
# Output as JSON (for piping to other tools)
qaradar analyze --json-output
# Show top 10 risky modules only
qaradar analyze --top 10
Install
Install from source:
git clone https://github.com/murat/qaradar.git
cd qaradar
pip install -e .
PyPI release coming in v0.1.2. For now, use the plugin install path above (via
uvx) or install from source.
Language Support
Tier 1 — First-class, tested
| Language | Test detection | Coverage |
|---|---|---|
| Python | test_x.py, x_test.py |
coverage.py JSON + XML |
| JavaScript / TypeScript | x.test.{js,ts,jsx,tsx}, x.spec.* |
LCOV |
| Go | x_test.go |
Go cover profile (cover.out) |
Tier 2 — Best-effort, naming-based
Java, Kotlin, Ruby, Swift, Rust — test detection via naming conventions, not extensively tested. Coverage via Cobertura XML or LCOV if emitted.
Coverage parsing is format-driven (Cobertura / LCOV / coverage.py / Go profile), so it spans more ecosystems than test-mapping detection, which is language-specific.
Supported Coverage Formats
| Format | Tools |
|---|---|
| coverage.py JSON | Python coverage run + coverage json |
| Cobertura XML | Python, Java/Gradle, .NET (Coverlet) |
| LCOV | JS/TS (Jest/Vitest/Istanbul), C/C++, Rust (grcov) |
| Go cover profile | go test -coverprofile=cover.out |
Example Output
╭──────────────── QA Radar Health Report ─────────────────╮
│ Repository: /home/user/my-service │
│ Source files: 47 Test files: 23 Ratio: 0.49 │
│ Avg coverage: 62.3% Tested: 31 Untested: 16 │
╰─────────────────────────────────────────────────────────╯
CRITICAL risk modules: 3
HIGH risk modules: 7
┌─────────────────────────────────────────────────────────┐
│ Risky Modules │
├──────────────────────┬──────────┬───────┬───────────────┤
│ File │ Risk │ Score │ Reasons │
├──────────────────────┼──────────┼───────┼───────────────┤
│ src/payments/core.py │ CRITICAL │ 0.87 │ High churn: │
│ │ │ │ 34 commits; │
│ │ │ │ No tests │
│ src/auth/tokens.py │ CRITICAL │ 0.82 │ Low coverage: │
│ │ │ │ 12.3%; Active │
│ │ │ │ recently │
└──────────────────────┴──────────┴───────┴───────────────┘
Roadmap
- v0.1.2 — Claude Code plugin + slash commands (
/qaradar:qa-check,/qaradar:qa-risky,/qaradar:qa-untested,/qaradar:qa-plan) - v0.2 — Diff-aware mode: analyze only changed files in a PR
- v0.3 — CI integration: GitHub Action that posts quality briefs on PRs
- v0.4 — Flaky test detection from CI history (JUnit XML parsing)
- v0.5 — Exploratory charter generation from diff + risk data
- v1.0 — Historical trend tracking and quality regression alerts
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qaradar-0.1.2.tar.gz.
File metadata
- Download URL: qaradar-0.1.2.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7473f61eaf2048f4f2f7b7683d2affc223211e2772de06557ec4ea4b9656d8
|
|
| MD5 |
c25ceb7d19e32e97b31050f3c007d340
|
|
| BLAKE2b-256 |
6feb7ec7ae2bcef729509c1a6b36a49b9651b7f1aa5b9c5c21badd3ce775a796
|
Provenance
The following attestation bundles were made for qaradar-0.1.2.tar.gz:
Publisher:
release.yml on MuratKus/qaradar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qaradar-0.1.2.tar.gz -
Subject digest:
fa7473f61eaf2048f4f2f7b7683d2affc223211e2772de06557ec4ea4b9656d8 - Sigstore transparency entry: 1340561831
- Sigstore integration time:
-
Permalink:
MuratKus/qaradar@150aea205bf2e20fe9d7bd928fd13fb6619c95e2 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/MuratKus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@150aea205bf2e20fe9d7bd928fd13fb6619c95e2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file qaradar-0.1.2-py3-none-any.whl.
File metadata
- Download URL: qaradar-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b067ad1c1fac7f501843b9b96711c71cfc426404fa97690538a5b1cb3dc8487
|
|
| MD5 |
9d03b64a585327ed7e85ef08c4663a89
|
|
| BLAKE2b-256 |
7f81a3d7660c47f2239be1ad88d1d3e44ee5a8a995ec40639618005fea1403db
|
Provenance
The following attestation bundles were made for qaradar-0.1.2-py3-none-any.whl:
Publisher:
release.yml on MuratKus/qaradar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qaradar-0.1.2-py3-none-any.whl -
Subject digest:
7b067ad1c1fac7f501843b9b96711c71cfc426404fa97690538a5b1cb3dc8487 - Sigstore transparency entry: 1340561833
- Sigstore integration time:
-
Permalink:
MuratKus/qaradar@150aea205bf2e20fe9d7bd928fd13fb6619c95e2 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/MuratKus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@150aea205bf2e20fe9d7bd928fd13fb6619c95e2 -
Trigger Event:
release
-
Statement type: