code-explainer
Cloudflare Workers MCP server: code-explainer
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"code-explainer": {
"url": "https://api.lazy-mac.com/code-explainer/mcp"
}
}
}Remote-Endpunkte
https://api.lazy-mac.com/code-explainer/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (6)
⚪detect_language(code)
Detect the programming language of a code snippet. Returns the detected language and confidence level.
Eingabe-Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The code snippet to analyze"
}
},
"required": [
"code"
]
}🟢explain_code(code, language)
Generate a natural language explanation of a code snippet including structural analysis, features, and summary.
Eingabe-Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The code snippet to explain"
},
"language": {
"type": "string",
"description": "Programming language (optional, auto-detected if omitted)"
}
},
"required": [
"code"
]
}⚪generate_docstring(code, language)
Generate JSDoc, Python docstring, Go godoc, or Rust doc comments for functions in the provided code.
Eingabe-Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The code snippet containing functions to document"
},
"language": {
"type": "string",
"description": "Programming language (optional, auto-detected if omitted)"
}
},
"required": [
"code"
]
}🟢analyze_complexity(code, language)
Analyze code complexity including cyclomatic complexity, cognitive complexity, nesting depth, and maintainability index.
Eingabe-Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The code snippet to analyze"
},
"language": {
"type": "string",
"description": "Programming language (optional, auto-detected if omitted)"
}
},
"required": [
"code"
]
}🟢suggest_refactor(code, language)
Get prioritized refactoring suggestions for code quality improvements.
Eingabe-Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The code snippet to review for refactoring opportunities"
},
"language": {
"type": "string",
"description": "Programming language (optional, auto-detected if omitted)"
}
},
"required": [
"code"
]
}🟢analyze_all(code, language)
Run all five analyses in one call: language detection, natural-language explanation, docstring generation, complexity metrics, and refactoring suggestions.
Eingabe-Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The code snippet to analyze"
},
"language": {
"type": "string",
"description": "Programming language (optional, auto-detected if omitted)"
}
},
"required": [
"code"
]
}Community
Nachweis