Agent♥︎Age
Catalog

crapkit

Official

by JeanFrancoisGagne · Python

Twelve tools to inspect CRAP scores, find work, and check edited functions against their ceiling.

io.github.JeanFrancoisGagne/crapkit MCP Server

This MCP server provides ten read-only tools that compute per-function CRAP scores, defined as complexity times uncovered risk, and return churn-ranked results. It is focused on code-quality and static-analysis metrics, using the repository’s topics such as coverage and cyclomatic complexity.

🛠️ Key Features

  • Ten read-only tools
  • Per-function CRAP score calculation (complexity × uncovered risk)
  • Churn-ranked outputs

🚀 Use Cases

  • Code-quality assessment using complexity and coverage-related risk
  • Static-analysis workflows and technical-debt tracking via CRAP scoring
  • Sorting results by churn to prioritize functions

⚡ Developer Benefits

  • Consistent per-function metrics for evaluation
  • Read-only tooling suitable for inspection in pipelines (e.g., pre-commit)
  • Supports languages/tools referenced by topics: Python and TypeScript

⚠️ Limitations

  • Tools are explicitly read-only
  • The server description does not indicate any write actions, configuration, or custom rule support

📌 Topics

  • claude-code, code-quality, coverage, cyclomatic-complexity, mcp, pre-commit, python, static-analysis, technical-debt, typescript

Topics

claude-codecode-qualitycoveragecyclomatic-complexitymcppre-commitpythonstatic-analysistechnical-debttypescript