MCP server for code quality inspection using detekt, ktlint, and Android Lint
Three tools with basic schemas and descriptions, but significant gaps in parameter documentation, error handling, and output schema clarity. Tool names lack clear action verbs (inspect_init, inspect_config are vague). Parameter descriptions exist but are sparse (10-50 chars, well below the 72-char baseline). No documented output schemas, no error recovery guidance, no input validation hints. The inspect_init tool reads 'ALL .kt files' with 'no upper limit', a red flag for unbounded resource consumption that should be constrained. inspect_config mixes read/update/reset into one tool, violating single-responsibility. No tool annotations (readOnlyHint, destructiveHint) despite clear risk profiles.
Run code quality inspection using detekt, ktlint, and Android Lint.
Read, update, or reset the .code-inspector.json config file.
Collect all Kotlin files and project metadata for config generation. Reads ALL .kt files in the project (no upper limit) plus config files. Returns file contents and architecture hints for Claude to analyze and generate .code-inspector.json.
inspect_init reads ALL .kt files with no upper limit, risking memory exhaustion and timeout. Parameter description lacks constraints (min/max file count, max total size, timeout).
inspect_config combines three distinct operations (read, update, reset) into one tool. Should split into inspect_config_read, inspect_config_update, inspect_config_reset to follow single-responsibility and enable per-operation permission gating.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields (e.g., does inspect return issue_count, severity_breakdown, file_list?). Violates pattern:tool requirement.
Parameter descriptions are sparse (10-50 chars vs 72-char baseline). 'Target Android project path' lacks format hints, validation rules, or examples. 'Pass/fail threshold on 10-point scale' does not specify min/max or default behavior if omitted.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
No error handling guidance. Tools do not document what happens on invalid paths, missing config files, or tool failures (detekt/ktlint/lint not installed). LLM has no recovery path.