MCP-Server

code-explainer

io.github.lazymac2x/code-explainer
Entwicklertools Öffentlich und erreichbar MCP 2026-07-28

Was dieses MCP kann

Analyzes source code by detecting its language, explaining structure, generating documentation, measuring complexity, and suggesting refactoring.

analyze_all
Run all five analyses in one call: language detection, natural-language explanation, docstring generation, complexity metrics, and refactoring suggestions.
Eingabeschema
{'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'The code snippet to analyze'}, 'language': {'type': 'string', 'description': 'Programming language (optional, auto-detected if omitted)'}}}
analyze_complexity
Analyze code complexity including cyclomatic complexity, cognitive complexity, nesting depth, and maintainability index.
Eingabeschema
{'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'The code snippet to analyze'}, 'language': {'type': 'string', 'description': 'Programming language (optional, auto-detected if omitted)'}}}
detect_language
Detect the programming language of a code snippet. Returns the detected language and confidence level.
Eingabeschema
{'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'The code snippet to analyze'}}}
explain_code
Generate a natural language explanation of a code snippet including structural analysis, features, and summary.
Eingabeschema
{'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'The code snippet to explain'}, 'language': {'type': 'string', 'description': 'Programming language (optional, auto-detected if omitted)'}}}
generate_docstring
Generate JSDoc, Python docstring, Go godoc, or Rust doc comments for functions in the provided code.
Eingabeschema
{'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'The code snippet containing functions to document'}, 'language': {'type': 'string', 'description': 'Programming language (optional, auto-detected if omitted)'}}}
suggest_refactor
Get prioritized refactoring suggestions for code quality improvements.
Eingabeschema
{'type': 'object', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'The code snippet to review for refactoring opportunities'}, 'language': {'type': 'string', 'description': 'Programming language (optional, auto-detected if omitted)'}}}
Hinzugefügt
analyze_all
17. September 2026 12:43
Hinzugefügt
suggest_refactor
17. September 2026 12:43
Hinzugefügt
analyze_complexity
17. September 2026 12:43
Hinzugefügt
generate_docstring
17. September 2026 12:43
Hinzugefügt
explain_code
17. September 2026 12:43
Hinzugefügt
detect_language
17. September 2026 12:43