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 分