Tododebt

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 6, 2026

TODO, FIXME, and HACK inventory with git blame age and file owner.

已验证STDIO仅桌面开发者工具

概览

AI 生成的概览

扫描传入的源码文件中的 TODO、FIXME、HACK、XXX 标记,逐条报告文件、行号与文本,并给出统计。

可以做什么
  • 对以路径与内容成对传入的源码文件清点债务标记
  • 逐条报告每个发现的文件、从 1 开始的行号、标记类型与行文本
  • 按总数、按标记类型和按文件汇总计数
  • 代码树干净时返回 NONE,否则返回 DEBT
  • 可自定义要查找的标记列表
适用场景
适合让助手审查代码库中已承认的技术债、在清理或发布前统计未完成的 TODO,或定位标记集中在哪些文件。
运行要求
以本地进程方式通过 npx 或 Docker 镜像运行;无需网络、配置、账号或 API 密钥。MCP 工具接收文件内容而非自行读取磁盘,因此需由客户端提供文件。
安装前请注意
仅做只读扫描,不写入数据、不需要凭据、不向第三方传输数据。匹配区分大小写,每行只报告第一个标记,且标记须为独立词元,因此结果是清单而非完整审计。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Tododebt,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

tododebt

How much acknowledged debt is sitting in the codebase? tododebt inventories the markers — TODO, FIXME, HACK by default — across a set of source files and reports every occurrence with its file, 1-based line number, and line text, plus counts in total, by marker, and by file.

A marker counts only as a standalone token (the marker followed by a non-letter), so TODOS and METHOD never false-positive, while TODO:, FIXME(user), and // TODO all count. Only the first marker on a line is reported. Matching is case-sensitive.

The MCP tool takes file contents as input (no disk access); the CLI reads the files you name. Pure local computation: no network, no configuration.

CLI

bash
npx @reneturcios/tododebt scan src/*.tsnpx @reneturcios/tododebt scan README.md src/index.ts --markers TODO,XXXnpx @reneturcios/tododebt --version

Exit codes: 0 on success (a non-empty inventory is a result, not an error), 1 on a runtime error (including an unreadable file), 2 on a usage error.

MCP server

bash
npx -y @reneturcios/tododebt mcp

MCP client config:

json
{  "mcpServers": {    "tododebt": {      "command": "npx",      "args": ["-y", "@reneturcios/tododebt", "mcp"]    }  }}

Tools

  • scan_todos — Inventory debt markers across supplied source files.
    • files (array, required) — the files to scan, as {path, content} pairs
    • markers (array of strings, optional) — markers to look for; default TODO, FIXME, HACK

Docker

bash
docker run -i ghcr.io/cloudcorprecords/tododebtdocker run --rm -v "$PWD:/w" ghcr.io/cloudcorprecords/tododebt scan /w/src/index.ts

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # tsx --test test/*.test.ts (pure local, no network)npm run dev     # run the CLI from source

License

MIT — Copyright (c) 2026 Rene Turcios

来源:README.md,提交 9db7f97

工具

1

scan_todo_debt

Scan a repo for TODO, FIXME, HACK, and XXX markers in source files: each finding carries file, line, marker, and text; counts are grouped by marker and by file; when git history is available, blame dates the oldest markers. Verdict NONE when the tree is clean, DEBT otherwise.

输入参数path必填

版本历史

1
  1. v0.1.0最新Oct 30, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分