codehealth-mcp
Code health assessment qua CodeScene MCP — đánh giá structural maintainability, detect regression trước commit/PR. Score 1-10, tích hợp Claude Code.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- name
- codehealth-mcp
- origin
- ECC
- description
- Code health assessment qua CodeScene MCP — đánh giá structural maintainability, detect regression trước commit/PR. Score 1-10, tích hợp Claude Code.
- user-invocable
- true
03 SKILL.md 正文
CodeHealth MCP — Structural Maintainability Assessment
Tích hợp CodeScene vào Claude Code để đánh giá code health trước khi sửa/commit.
Setup
# Set access token
export CS_ACCESS_TOKEN=your-codescene-token
# Thêm vào mcp-configs/mcp-servers.json
{
"codescene": {
"command": "npx",
"args": ["@codescene/codehealth-mcp"],
"env": { "CS_ACCESS_TOKEN": "${CS_ACCESS_TOKEN}" }
}
}
Không cần credentials trong repo. Token chỉ qua env var.
4 tools có sẵn
| Tool | Dùng khi |
|---|---|
code_health_review |
Trước khi sửa code — xem baseline |
code_health_score |
Sau khi sửa — detect regression |
pre_commit_code_health_safeguard |
Trước khi commit — block nếu score giảm |
analyze_change_set |
Trước khi mở PR — assess toàn branch |
Score scale (1–10)
| Score | Màu | Ý nghĩa |
|---|---|---|
| 9.0–10.0 | 🟢 Green | Healthy — safe to extend |
| 4.0–8.9 | 🟡 Yellow | Tech debt — tránh refactor lớn |
| 1.0–3.9 | 🔴 Red | Severe debt — giới hạn scope |
Workflow chuẩn
1. code_health_review # Xem baseline trước khi sửa
2. Sửa code (targeted)
3. code_health_score # Check sau khi sửa
4. Lặp lại cho đến khi score không giảm
5. pre_commit_code_health_safeguard # Trước commit
6. analyze_change_set # Trước khi mở PR
Không mark "done" nếu score regression.
Khi MCP không khả dụng
Skip check và tiếp tục — chỉ cần human approval tường minh.
Source
@codescene/codehealth-mcp · https://codescene.com
04 同仓库更多 Skills
openai--sentry--sentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
ito-basket-compare
Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.
implementing-network-traffic-baselining
Build network traffic baselines from NetFlow/IPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly/daily traffic pattern profiling
detecting-evasion-techniques-in-endpoint-logs
Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.
implementing-microsegmentation-with-guardicore
Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.
ramdisk-tmpfs-patterns
暂无简介