AI-native static code intelligence CLI + MCP server for code analysis, security auditing, and quality scoring
CodeLens MCP server has 12 tools with basic descriptions and input schemas, but significant quality gaps prevent production use. All tools have descriptions (10-80 chars, below the 194-char baseline), but most are generic and lack actionable context for LLM selection. Input schemas are present but minimal: most parameters lack type constraints, enums, or validation guidance. No output schemas are documented. Error handling is absent, no recovery guidance, categorization, or actionable error messages. Tool naming follows verb_noun convention (codelens_*) but is overly specific and repetitive, making it hard for LLMs to distinguish similar tools (e.g., codelens_scan vs codelens_check vs codelens_smell). No composition guidance, tools operate independently with no documented chaining or ID passing. Security: file paths are exposed as parameters without sanitization guidance, and no permission gates are documented.
Check a specific file for issues and return findings
Identify circular dependencies in the codebase
Analyze code complexity and identify high-complexity functions
Identify dead code (unused functions, variables, imports) in the codebase
Detect debug statements and logging that may leak sensitive information
Analyze the impact of changes on the codebase
Determine code ownership and blame information
Query the codebase for specific patterns or symbols
Descriptions are too short (10-80 chars vs 194-char baseline) and lack actionable context. E.g., 'Scan a codebase for code quality issues...' does not explain WHEN to use codelens_scan vs codelens_check vs codelens_smell, or what the LLM should do with results.
No output schemas documented. LLMs cannot plan downstream calls or extract structured data. What fields does codelens_scan return? Is there a list of findings? What is the structure of each finding?
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 42 | 2026-07-28+ | v2 |
Scan a codebase for code quality issues, security vulnerabilities, dead code, and other findings
Scan for exposed secrets, API keys, and sensitive credentials
Detect code smells and quality issues
Perform taint analysis to track data flow and identify potential security vulnerabilities
Input parameters lack type constraints and validation guidance. 'workspace' and 'file' are bare strings with no format, length, or path-traversal sanitization hints. No enums, patterns, or min/max bounds.
No error handling or recovery guidance. If a file is not found or a scan fails, what should the LLM do? No categorization (retryable vs user-fixable vs fatal), no actionable error messages.
Tool naming is repetitive and lacks clear differentiation. All tools start with 'codelens_', making it hard for LLMs to distinguish codelens_scan (full codebase) from codelens_check (single file) from codelens_smell (quality issues). Consider scan_codebase, check_file, detect_code_smells for clarity.