debt-mcp
Provides tools to analyze Git repository history, utilizing git blame and git log to find TODO and FIXME markers, calculate their exact age, attribute authors, and perform stale code analysis.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
debt-mcp, the hard way
Build a small version of debt-mcp from scratch: an MCP server that
finds TODO / FIXME markers in a repository and tells you how old each one is and who added it, using
real git blame.
By the end you will have written, in about 500 lines of dependency-free Python:
a comment tokenizer that does not report
"TODO"inside strings or URLs,a marker parser (
TODO(alice):,FIXME[JIRA-9],#123) with a strict word rule,a
git blame --porcelainreader,exact age and author attribution, including uncommitted and untracked lines,
"stale in a busy file vs stale in a dead file" analysis from
git log,suppression counts (
# noqa,@ts-ignore, ...), long functions and commented-out code,an MCP wrapper with a directory sandbox, tested over real stdio.
The real server does the same things with more languages and more care; the final chapter lists the gaps.
Chapters
# | Chapter | You learn |
1 | a one-pass tokenizer; why strings, URLs and | |
2 | the "first word of a comment" rule; annotations; the false-positive corpus | |
3 | the format, | |
4 | scan + blame, exact ages with a pinned clock, scripted repos | |
5 |
| |
6 | other cheap debt signals, counted only inside real comments | |
7 | tools, ToolError, a path sandbox, a stdio test |
Every chapter has prose, runnable code (in debtlite/) and a main.py that checks its own claims
with assert.
Related MCP server: promptpack
Run it
Needs Python 3.10+ and git.
pip install -r requirements.txt
python verify.py # all chapters, exactly what CI runs
python verify.py 03 04 # some chapters
python 04-age-and-author/main.pyverify.py is the source of truth: if a chapter's code and its README disagree, CI fails. The tests build real
git repositories in a temp directory with fixed authors and dates (GIT_AUTHOR_DATE and friends), so ages are exact and
identical on every machine.
MIT licensed.
This server cannot be deployed
Maintenance
Related MCP Connectors
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and security.
Deep security scans of repos you own from your editor: dependency CVEs, SAST, git-history secrets.
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceEnables AI agents to scan code for TODO, FIXME, XXX issues via MCP, providing prioritized findings in table, JSON, or SARIF format.-- FlicenseNot gradedqualityDmaintenanceEnables AI agents to scan codebases for prioritized findings (TODO, FIXME, XXX) and retrieve results in table, JSON, or SARIF format via MCP.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to scan codebases for TODO/FIXME/XXX patterns and get prioritized results over MCP, supporting CI gates and multiple output formats.-
- AlicenseAqualityDmaintenanceScans codebases for TODO comments and exposes them as structured data to LLMs, enabling AI assistants to inspect, prioritize, and propose fixes.55 npmISC