MCP 서버

code-explainer

io.github.lazymac2x/code-explainer
개발자 도구 공개 · 연결 가능 MCP 2026-07-28

이 MCP로 할 수 있는 일

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.
입력 스키마
{'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.
입력 스키마
{'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.
입력 스키마
{'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.
입력 스키마
{'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.
입력 스키마
{'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.
입력 스키마
{'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)'}}}
추가됨
analyze_all
2026년 9월 17일 12:43 PM
추가됨
suggest_refactor
2026년 9월 17일 12:43 PM
추가됨
analyze_complexity
2026년 9월 17일 12:43 PM
추가됨
generate_docstring
2026년 9월 17일 12:43 PM
추가됨
explain_code
2026년 9월 17일 12:43 PM
추가됨
detect_language
2026년 9월 17일 12:43 PM