Code Explainer
Official6 toolsby lazymac2x · JavaScript
Cloudflare Workers MCP server: code-explainer
Analyzes and explains code functionality and logic.
Topics
Captured live from the server via tools/list.
detect_language
Detect the programming language of a code snippet. Returns the detected language and confidence level.
Parameters (1)
- codestringrequired
The code snippet to analyze
explain_code
Generate a natural language explanation of a code snippet including structural analysis, features, and summary.
Parameters (2)
- codestringrequired
The code snippet to explain
- languagestring
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.
Parameters (2)
- codestringrequired
The code snippet containing functions to document
- languagestring
Programming language (optional, auto-detected if omitted)
analyze_complexity
Analyze code complexity including cyclomatic complexity, cognitive complexity, nesting depth, and maintainability index.
Parameters (2)
- codestringrequired
The code snippet to analyze
- languagestring
Programming language (optional, auto-detected if omitted)
suggest_refactor
Get prioritized refactoring suggestions for code quality improvements.
Parameters (2)
- codestringrequired
The code snippet to review for refactoring opportunities
- languagestring
Programming language (optional, auto-detected if omitted)
analyze_all
Run all five analyses in one call: language detection, natural-language explanation, docstring generation, complexity metrics, and refactoring suggestions.
Parameters (2)
- codestringrequired
The code snippet to analyze
- languagestring
Programming language (optional, auto-detected if omitted)
README not available yet.
Install
Remote endpoint
Streamable HTTPHosted server - connect over the network, no local install.
https://api.lazy-mac.com/code-explainer/mcpclaude_desktop_config.json
{
"mcpServers": {
"code-explainer": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.lazy-mac.com/code-explainer/mcp"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.