MCP server for analyzing and fixing TypeScript 'any' types
Server has 6 tools with basic schemas and descriptions, but significant gaps prevent production use. All tools have descriptions (10-50 chars, mostly under the 50-200 char LLM-optimized range), and input schemas are present with type definitions. However, output schemas are completely undocumented, LLMs cannot plan downstream calls or extract results. Parameter descriptions are minimal (e.g., 'Path to the TypeScript file to analyze' for filePath). No error handling guidance, no recovery paths, no actionable error messages. Tools lack composition hints (e.g., get_type_suggestions output doesn't document what fields are returned). No security considerations despite WRITE operations on the filesystem. Naming is clear (verb_noun pattern), but descriptions don't explain WHEN to use each tool or what distinguishes analyze_file from analyze_directory beyond scope.
Analyze a directory of TypeScript files for 'any' type usage
Analyze a TypeScript file for 'any' type usage
Clear the analysis cache
Fix 'any' types in a TypeScript file by replacing them with appropriate types
Fix 'any' types in all TypeScript files in a directory
Get type suggestions for 'any' types based on context analysis
Output schemas completely undocumented. No tool documents what fields are returned, their types, or structure. LLMs cannot extract results or plan chained calls.
No error handling or recovery guidance. Tools will fail (e.g., file not found, permission denied) but provide no actionable error messages or next steps for the LLM.
Descriptions are too brief (25-40 chars) and lack context. No explanation of WHEN to use each tool, what distinguishes similar tools, or prerequisites. Descriptions should be 50-200 chars with actionable guidance.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 42 | <=2025-11-25 | v2 |
WRITE operations (fix_any_types, fix_directory) lack confirmation/dry-run support. Agents can destructively modify files without safeguards. No backup verification or rollback guidance.
Parameter 'replacement' in fix_any_types and fix_directory lacks enum constraint. Description says 'unknown, Record<string, unknown>, or object' but no formal enum defined. LLMs may hallucinate invalid values.