Code Health Suite

io.github.neogeweb3由 GitHub 帳號 neogeweb3 發布v0.8.1更新於 Nov 3, 2026

16 engines, 28 MCP tools for Python code quality. Zero external dependencies.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

在本機執行的 Python 程式碼品質伺服器,透過 16 個分析引擎提供 28 個工具,涵蓋複雜度、安全、死碼、複製碼、測試與 git 健康度。

可以做什麼
  • 分析函式複雜度並給出專案健康評分
  • 找出死碼、未使用的匯入與參數
  • 執行安全掃描,輸出 OWASP 與 CWE 對應的問題
  • 檢查匯入相依圖、循環相依與模組耦合
  • 偵測程式碼複製並評估測試套用品質
  • 稽核相依套件、型別註解、環境變數與 git 提交
適用情境
適合讓助理檢視 Python 專案的可維護性、安全性與測試品質,或在對話中直接產出評分式健康報告與變更影響分析。
執行需求
以本機 stdio 程序在使用者電腦上執行(僅桌面端)。需要 Python 3.10+ 以及來自 PyPI 的 code-health-suite 套件,可用 pip 安裝或以 uvx 直接執行。無外部相依,未宣告帳號、API 金鑰或環境變數。
安裝前請注意
它會讀取專案原始碼、git 歷史與環境變數名稱,結果可能把敏感細節帶進對話。所列工具看起來是唯讀分析,但對外分享報告前仍應先檢查內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Code Health Suite,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Code Health Suite

16 analysis engines, 28 MCP tools for Python code quality. Zero external dependencies.

Quick Start

As MCP Server (Claude Desktop / Claude Code)

json
{  "mcpServers": {    "code-health": {      "command": "code-health-suite"    }  }}

Install from PyPI

bash
pip install code-health-suite

Or with uvx (no install needed):

bash
uvx code-health-suite

Install from GitHub

bash
pip install git+https://github.com/nge/code-health-suite

Tools

#ToolEngineWhat it does
1analyze_complexitycomplexityPer-function CC, cognitive complexity, nesting, grades
2get_complexity_scorecomplexityProject health score 0-100
3find_dead_codedead-codeUnused imports, functions, variables, arguments
4security_scansecurityOWASP vulns, CWE-mapped findings
5get_security_scoresecuritySecurity health score 0-100
6analyze_importsimport-graphImport dependency graph, circular deps
7get_import_healthimport-graphImport architecture score 0-100
8find_clonesclone-detectType-1/2/3 code clone detection
9analyze_test_qualitytest-qualityTest suite metrics, anti-patterns
10full_health_checkall enginesCombined report with overall grade
11find_hotspotshotspotFiles with high git churn AND high complexity
12get_hotspot_scorehotspotProject churn-complexity score
13audit_dependenciesdep-auditOutdated/vulnerable dependency check
14analyze_change_impactchange-impactBlast radius of file changes
15get_coupling_scorechange-impactModule coupling metrics
16analyze_typestype-auditType annotation coverage
17get_type_scoretype-auditType coverage score 0-100
18audit_envenv-auditEnvironment variable audit
19audit_git_commitsgit-auditCommit quality audit (security + complexity)
20get_git_audit_scoregit-auditGit commit health score

Requirements

  • Python 3.10+
  • Zero external dependencies (stdlib only)

License

MIT

來源:README.md,提交 d554ec9

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.8.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。