An MCP server + client that performs AI-powered code review, refactoring suggestions, and test generation.
This MCP server has severe definition quality gaps. All three tools have minimal descriptions (13-32 characters), lack parameter descriptions, and return untyped outputs. Tool names are verb-noun compliant but descriptions are insufficient for LLM decision-making. No schemas define output structure, error handling is absent, and there is no guidance on when to use which tool. The server returns JSON strings rather than structured objects, forcing LLM parsing. This is well below production baseline (194 char average for tool descriptions, 72 char average for param annotations).
Analyze code and return JSON with issues + line count.
Suggests a simple refactor (returns JSON).
Generates a dummy pytest test (returns JSON).
Tool descriptions are critically short (13-32 chars). Production baseline is 194 chars. LLMs cannot determine when or why to select each tool. Descriptions must answer: What does it do? When to use it? What does it return?
No parameter descriptions. The 'code' parameter appears in all three tools but has no context explaining what type of code it expects, whether it must be complete functions or snippets, or what language is supported.
Output schemas are not documented. Tools return JSON strings containing 'issues', 'line_count', 'original', 'refactored', 'tests' fields, but there is no schema definition. LLMs cannot plan downstream operations or extract specific fields without inferring structure from examples.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 38 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 25 | - | v1 |
Tools return untyped JSON strings instead of structured objects. FastMCP tool functions return str (json.dumps), not typed Pydantic models. This forces LLMs to parse JSON, which is error-prone and wastes tokens.
No error handling or recovery guidance. If analyze_code receives binary data, non-code text, or empty string, there is no catch or meaningful error message. LLM receives raw exception or empty result with no path to retry or recover.
Tool names lack disambiguation. 'analyze_code' and 'suggest_refactor' both examine code but serve different purposes. Descriptions (if adequate) would clarify: analyze finds issues; refactor proposes improvements. Currently, names alone are ambiguous about which to call first.
No parameter constraints or format guidance. The 'code' parameter is unbounded, LLM could pass megabytes of code. No indication of language support (Python only? Any?), expected size, or whether multi-file input is valid.