ctroy-code-analysis
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ctroy-code-analysisreview_comments on src/parser.py"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ctroy-code-analysis
An MCP server that provides six code review tools for use with Claude Code (or any MCP client). Each reviewer reads a file from disk, pairs its contents with a structured review prompt, and returns the bundle for the LLM to evaluate.
Installation
pip install ctroy-code-analysisRequires Python 3.10+.
Related MCP server: claudecode-mcp
Connecting to Claude Code
Add the server to your project's .mcp.json (per-project) or
~/.claude.json (global):
{
"mcpServers": {
"ctroy-code-analysis": {
"command": "ctroy-code-analysis"
}
}
}Restart Claude Code. The six tools will appear automatically.
Tools
Each tool takes a filepath (or directory), reads the contents, and returns them alongside review instructions. The LLM then generates the review.
Tool | Input | What It Reviews |
|
| Identifies superfluous comments that restate obvious code and inaccurate comments that contradict what the code does. |
|
| Identifies unclear, inaccurate, or shadowed names in classes, functions, variables, and constants. |
|
| Identifies related logic scattered across the codebase that should be colocated. |
|
| Identifies unnecessary computation, inefficient algorithms, and missed optimization opportunities. |
|
| Identifies untested code paths including edge cases, error paths, and boundary conditions. |
|
| Lists the directory structure and produces an ASCII execution-path diagram with emoji-coded entry points. |
Example usage in Claude Code
Ask Claude naturally:
Use review_comments on src/parser.pyUse review_performance on lib/data_pipeline.pyUse draw_gridmat on the src/ directoryPrompts
Each tool also has a corresponding prompt (prefixed with prompt_). Prompts
return just the review instructions without reading any files, so the LLM
applies them to code it already has in context.
Prompt | Input |
|
|
|
|
|
|
|
|
|
|
|
|
What the reviewers look for
Comment review flags two categories, ordered by severity: inaccurate comments (say something the code doesn't do) and superfluous comments (restate what the code clearly says).
Name review flags five categories: unclear names, inaccurate names,
shadowed variables, overloaded temporaries (tmp, i, x reused across
unrelated blocks), and low-confidence blocks where names make it hard to
reason about the code.
Cohesion review looks for ten patterns of scattered code: distant configuration, split validation, fragmented type definitions, separated tests, dispersed error handling, remote utilities, disconnected docs, scattered state management, split domain logic, and orphaned dependencies.
Performance review analyzes five categories: algorithmic complexity, data structure efficiency, unnecessary work, I/O and external operations, and language-specific optimizations. Each finding includes expected improvement and tradeoffs.
Test coverage review checks for gaps in: happy paths, branch coverage, edge cases, error paths, boundary conditions, integration points, return values, state changes, and concurrency concerns.
Gridmat picks up to 5 entry points, assigns each a color-coded emoji, and traces execution paths downward through the codebase in an ASCII box-drawing diagram.
Running the server directly
The server uses stdio transport. To start it manually:
ctroy-code-analysisOr:
python -m ctroy_code_analysis.serverThis server cannot be deployed
Maintenance
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseBqualityDmaintenanceAn implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.813 npm188MIT
- AlicenseAqualityBmaintenanceLocal MCP server that wraps the headless Claude Code CLI as MCP tools, providing stateless access to Claude's coding capabilities through prompt-based interactions. It enables users to execute Claude Code commands with various prompt formats and structured outputs directly from MCP clients.3MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides agentic code review powered by OpenAI-compatible models, designed for use with Claude Code.1MIT
- AlicenseAqualityBmaintenanceAn MCP server that enables code review by having two LLMs (Claude and GPT-4o) independently evaluate code and then synthesize their findings into a unified report.3MIT