ctroy-code-analysis
Click on "Install 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: Claude Code Review 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chelseatroy/ctroy-code-analysis'
If you have feedback or need assistance with the MCP directory API, please join our Discord server