Skip to main content
Glama
io.github.neogeweb3/code-health-suite

io.github.neogeweb3/code-health-suite

by neogeweb3

Code Health Suite

16개의 분석 엔진, Python 코드 품질을 위한 28개의 MCP 도구. 외부 의존성 없음.

빠른 시작

MCP 서버로 사용 (Claude Desktop / Claude Code)

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

PyPI에서 설치

pip install code-health-suite

또는 uvx 사용 (설치 불필요):

uvx code-health-suite

GitHub에서 설치

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

Related MCP server: ARGUS

도구

#

Tool

Engine

기능

1

analyze_complexity

complexity

함수별 순환 복잡도, 인지 복잡도, 중첩, 등급

2

get_complexity_score

complexity

프로젝트 건강 점수 0-100

3

find_dead_code

dead-code

사용하지 않는 import, 함수, 변수, 인수

4

security_scan

security

OWASP 취약점, CWE 매핑 결과

5

get_security_score

security

보안 건강 점수 0-100

6

analyze_imports

import-graph

import 의존성 그래프, 순환 의존성

7

get_import_health

import-graph

import 아키텍처 점수 0-100

8

find_clones

clone-detect

Type-1/2/3 코드 클론 탐지

9

analyze_test_quality

test-quality

테스트 스위트 지표, 안티패턴

10

full_health_check

all engines

종합 리포트 및 전체 등급

11

find_hotspots

hotspot

git 변경량과 복잡도가 높은 파일

12

get_hotspot_score

hotspot

프로젝트 변경량-복잡도 점수

13

audit_dependencies

dep-audit

오래된/취약한 의존성 확인

14

analyze_change_impact

change-impact

파일 변경의 영향 범위

15

get_coupling_score

change-impact

모듈 결합도 메트릭

16

analyze_types

type-audit

타입 어노테이션 커버리지

17

get_type_score

type-audit

타입 커버리지 점수 0-100

18

audit_env

env-audit

환경 변수 감사

19

audit_git_commits

git-audit

커밋 품질 감사 (보안 및 복잡도)

20

get_git_audit_score

git-audit

Git 커밋 건강 점수

요구 사항

  • Python 3.10+

  • 외부 의존성 없음 (stdlib만)

라이선스

MIT

Available Tools

28 tools
analyze_change_impactA

Analyze the ripple effect of changing specific files. Shows direct dependents, transitive impact, affected tests, and an impact score (fraction of project affected). Use before refactoring to understand blast radius.

Inputs: path (required), changed_files (required), max_depth.

analyze_complexityA

Analyze Python code complexity for a file or directory. Returns per-function metrics: cyclomatic complexity (McCabe), cognitive complexity, nesting depth, function length, and letter grades (A-F).

Inputs: path (required), top, sort_by, threshold.

analyze_couplingA

Analyze module coupling metrics: afferent coupling (Ca), efferent coupling (Ce), instability (Ce/(Ca+Ce)), and hub scores. Identifies tightly-coupled modules that may resist change.

Inputs: path (required).

analyze_importsB

Analyze Python import dependency graph. Returns module metrics, circular dependencies (cycles), orphan modules, hub modules, and instability scores. Use to understand project architecture.

Inputs: path (required).

analyze_test_qualityA

Analyze test suite quality: assertion density, test length, naming conventions, magic numbers, and more. Returns per-file and per-test metrics with a quality score (0-100) and grade.

Inputs: path (required), max_length.

analyze_type_coverageA

Analyze Python type annotation coverage: function signatures, parameters, return types, Any usage, and type: ignore comments. Returns per-file metrics and coverage percentages.

Inputs: path (required).

audit_dependenciesA

Audit Python project dependencies for outdated packages and known vulnerabilities. Reads requirements.txt and/or pyproject.toml. Returns per-dependency status, latest versions, and CVE/vulnerability details.

Inputs: path (required).

audit_docstringsA

Audit Python docstring coverage and quality. Checks public functions, methods, classes, and modules for missing or low-quality docstrings. Returns per-entity coverage, missing docstrings, and quality issues.

Inputs: path (required).

audit_env_varsA

Audit environment variable usage: find undefined vars referenced in code, unused vars in .env files, secrets in templates, and missing .env.example entries. Supports Python, JavaScript, and shell scripts.

Inputs: path (required).

audit_git_commitsA

Audit recent git commits in a repository. Extracts changed files and runs static analysis (security scan, complexity) on each commit. Returns per-commit grades, security findings, and complexity violations.

Inputs: repo (required), since, author, commits, +2 more.

check_namingA

Check Python naming conventions (PEP 8). Detects violations: functions/methods must be snake_case, classes must be CamelCase, constants must be UPPER_SNAKE_CASE. Returns violations with suggestions.

Inputs: path (required).

detect_bugsA

Detect common Python semantic bugs using AST analysis. Finds 8 categories: missing f-strings, mutable class variables, late-binding closures, call-expression defaults (datetime.now()), mutable default arguments, assert-on-tuple, unreachable code, and unreachable exception handlers. Every finding indicates a likely real bug, not a style violation.

Inputs: path (required), rules, min_severity.

find_clonesA

Detect code clones (duplicated code blocks) in a Python project. Finds Type-1 (exact), Type-2 (renamed), and Type-3 (near-miss) clones. Returns clone pairs with similarity scores and cluster analysis.

Inputs: path (required), min_lines, threshold.

find_dead_codeA

Detect unused imports, functions, variables, and arguments in Python code. Supports cross-module analysis to reduce false positives.

Inputs: path (required), category, min_severity.

find_hotspotsA

Find code hotspots — files with high git churn AND high complexity. These are the riskiest files in a project: frequently changed AND hard to understand. Requires a git repository. Returns hotspot scores, risk levels, and churn/complexity breakdown.

Inputs: path (required), top, since_days.

full_health_checkA

Run all analyses (complexity + dead code + security + imports + clones + test quality + type coverage + env audit + naming + TODO debt + bug detection + docstring coverage) on a Python project and return a combined health report with scores, grades, and top issues. Note: hotspot, dependency, and change impact require additional context (git repo, requirements files, changed files) so are excluded from this scan.

Inputs: path (required).

get_bug_scoreA

Get a bug detection health score (0-100) with grade (A-F), bug profile classification (clean/fstring_heavy/closure_heavy/etc.), and breakdown by rule and severity. Quick bug health check.

Inputs: path (required).

get_complexity_scoreA

Get an overall complexity health score (0-100) with letter grade (A-F), complexity profile classification, and top offenders. Quick project health check.

Inputs: path (required).

get_docstring_scoreA

Get a docstring coverage health score (0-100) with grade. Measures what percentage of public entities have docstrings and penalizes low-quality docstrings. Shows worst files.

Inputs: path (required).

get_git_audit_scoreA

Get a quick overall grade and score for recent commits in a repo. Returns the aggregate score, grade, commit count, and security summary.

Inputs: repo (required), commits.

get_hotspot_scoreA

Get overall hotspot health score (0-100) with grade. Measures concentration of risk (churn x complexity). Lower scores indicate more hotspots that need attention.

Inputs: path (required).

get_import_healthA

Get an import graph health score (0-100) with grade. Penalizes circular dependencies, orphan modules, unstable modules, and hub concentration. Quick architecture health check.

Inputs: path (required).

get_naming_scoreA

Get a naming convention health score (0-100) with grade. Measures PEP 8 naming compliance: snake_case functions, CamelCase classes, UPPER_SNAKE_CASE constants.

Inputs: path (required).

get_security_scoreA

Get an overall security health score (0-100) with grade, profile, and top vulnerability rules. Quick security posture assessment.

Inputs: path (required).

get_todo_scoreA

Get a technical debt health score (0-100) with grade based on density and severity of TODO/FIXME/HACK markers. Shows hotspot files.

Inputs: path (required).

get_type_scoreA

Get overall type coverage health score (0-100) with grade. Measures annotation completeness, Any usage, and type: ignore density.

Inputs: path (required).

scan_todosA

Scan source code for technical debt markers: TODO, FIXME, HACK, XXX, BUG, NOTE, OPTIMIZE, REFACTOR comments. Returns items with file, line, tag, severity, and message. Optionally enriches with git blame metadata.

Inputs: path (required), tag, blame, severity.

security_scanB

Scan Python code for security vulnerabilities: command injection, SQL injection, path traversal, hardcoded secrets, unsafe deserialization, XSS, and more. Maps findings to CWE identifiers.

Inputs: path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools are clearly separated by domain and by the detail-vs-score pattern (e.g., security_scan vs. get_security_score). The main ambiguity is between analyze_imports and analyze_coupling, which both report instability and hub-like module metrics, so an agent could pick the wrong one for architecture analysis.

    Naming Consistency4/5

    The server uses a consistent snake_case verb_noun convention, and the get_*_score tools form a recognizable summary pattern. However, verb choice varies across analyze/find/audit/scan/check/detect, and get_import_health and full_health_check break the get_*_score pattern, creating minor inconsistency.

    Tool Count2/5

    At 28 tools, the server exceeds the comfortable range and will likely burden agent selection. The high count is understandable given the detail-plus-score pairing across many health dimensions, but it still feels oversized for a single MCP server.

    Completeness4/5

    The suite covers an impressively broad set of Python code-health domains: complexity, security, imports, clones, tests, types, naming, todos, bugs, docstrings, dependencies, hotspots, env vars, and git history. Minor gaps include no actual test coverage percentage and no aggregate score for dead code or clone analysis.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides comprehensive code analysis through three MCP servers: static analysis for code quality and security, dependency analysis for package management and vulnerabilities, and complexity analysis for maintainability assessment across multiple programming languages.
      1
      MIT
    • F
      license
      B
      quality
      C
      maintenance
      Enables AI agents to perform comprehensive, zero-infrastructure codebase analysis through 24 MCP tools, covering security, quality, architecture, type safety, git history, and dead code detection with high precision and local privacy.
      45
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to run Python static analysis and receive evidence-backed findings with causation traces, reproducible witnesses, and suggested verified patches.
      3
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding tools to analyze projects and files for technical debt across multiple languages, calculate SQALE remediation metrics, scan dependencies, and generate prioritized recommendations through MCP tools and resources.
      16
      49 npm
      MIT