Cloudflare Workers MCP server: code-explainer
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Run all five analyses in one call: language detection, natural-language explanation, docstring generation, complexity metrics, and refactoring suggestions.
The code snippet to analyze
Programming language (optional, auto-detected if omitted)
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Run all five analyses in one call: language detection, natural-language explanation, docstring generation, complexity metrics, and refactoring suggestions.
| Argument | Type | Description |
|---|---|---|
| code* | string | The code snippet to analyze |
| language | string | Programming language (optional, auto-detected if omitted) |
{
"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 code complexity including cyclomatic complexity, cognitive complexity, nesting depth, and maintainability index.
| Argument | Type | Description |
|---|---|---|
| code* | string | The code snippet to analyze |
| language | string | Programming language (optional, auto-detected if omitted) |
{
"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 the programming language of a code snippet. Returns the detected language and confidence level.
| Argument | Type | Description |
|---|---|---|
| code* | string | The code snippet to analyze |
{
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"description": "The code snippet to analyze"
}
}
}Generate a natural language explanation of a code snippet including structural analysis, features, and summary.
| Argument | Type | Description |
|---|---|---|
| code* | string | The code snippet to explain |
| language | string | Programming language (optional, auto-detected if omitted) |
{
"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 JSDoc, Python docstring, Go godoc, or Rust doc comments for functions in the provided code.
| Argument | Type | Description |
|---|---|---|
| code* | string | The code snippet containing functions to document |
| language | string | Programming language (optional, auto-detected if omitted) |
{
"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)"
}
}
}Get prioritized refactoring suggestions for code quality improvements.
| Argument | Type | Description |
|---|---|---|
| code* | string | The code snippet to review for refactoring opportunities |
| language | string | Programming language (optional, auto-detected if omitted) |
{
"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)"
}
}
}