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

io.github.neogeweb3/code-health-suite

by neogeweb3

Code Health Suite

16 motores de análisis, 28 herramientas MCP para la calidad del código Python. Cero dependencias externas.

Inicio rápido

Como servidor MCP (Claude Desktop / Claude Code)

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

Instalar desde PyPI

pip install code-health-suite

O con uvx (sin necesidad de instalación):

uvx code-health-suite

Instalar desde GitHub

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

Related MCP server: ARGUS

Herramientas

#

Herramienta

Motor

Qué hace

1

analyze_complexity

complexity

CC por función, complejidad cognitiva, anidamiento, calificaciones

2

get_complexity_score

complexity

Puntuación de salud del proyecto 0-100

3

find_dead_code

dead-code

Importaciones, funciones, variables y argumentos no utilizados

4

security_scan

security

Vulnerabilidades OWASP, hallazgos mapeados a CWE

5

get_security_score

security

Puntuación de salud de seguridad 0-100

6

analyze_imports

import-graph

Grafo de dependencias de importación, dependencias circulares

7

get_import_health

import-graph

Puntuación de arquitectura de importaciones 0-100

8

find_clones

clone-detect

Detección de clones de código tipo 1/2/3

9

analyze_test_quality

test-quality

Métricas de la suite de pruebas, antipatrones

10

full_health_check

all engines

Informe combinado con calificación general

11

find_hotspots

hotspot

Archivos con alta rotación de git Y alta complejidad

12

get_hotspot_score

hotspot

Puntuación de rotación-complejidad del proyecto

13

audit_dependencies

dep-audit

Comprobación de dependencias obsoletas/vulnerables

14

analyze_change_impact

change-impact

Radio de impacto de los cambios de archivos

15

get_coupling_score

change-impact

Métricas de acoplamiento de módulos

16

analyze_types

type-audit

Cobertura de anotaciones de tipo

17

get_type_score

type-audit

Puntuación de cobertura de tipos 0-100

18

audit_env

env-audit

Auditoría de variables de entorno

19

audit_git_commits

git-audit

Auditoría de calidad de commits (seguridad + complejidad)

20

get_git_audit_score

git-audit

Puntuación de salud de commits de git

Requisitos

  • Python 3.10+

  • Cero dependencias externas (solo stdlib)

Licencia

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