MCP server and CLI that prevents LLM hallucinations by verifying code against known libraries and frameworks
CodeShield has 11 tools with explicit Zod schemas and descriptions, but quality is inconsistent. Tool names lack clear verb-noun structure (analyze_prompt, verify_code are acceptable; cache_stats, cache_clear are generic). Descriptions vary widely: verify_code is detailed (200+ chars) but others like cache_stats and cache_clear are minimal (20-30 chars). Parameter descriptions are present but often lack constraints (e.g., check_level enum is defined but not explained in description text). Output schemas are not documented, LLMs cannot predict response structure. Error handling returns JSON but lacks recovery guidance. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels (WRITE vs READ_ONLY). Composition is reasonable (11 focused tools) but some overlap (verify_code, quick_fix, fix_code all modify code).
Analiza un prompt antes de generar código.
Limpia todo el cache de índices.
Obtiene estadísticas del cache de índices.
Verifica que los imports en el código existan en el stdlib o proyecto.
Sugiere fixes enriquecidos usando contexto del proyecto y stdlib. 100% local. Recibe issues de verify_code y devuelve sugerencias con locations.
Corrige automáticamente errores detectables en el código.
Indexa el codebase del proyecto para referencias precisas. Usa cache si está disponible.
Output schemas not documented. LLMs cannot predict response structure or plan downstream tool calls. verify_code, suggest_fix, deep_fix return JSON but no schema is visible in tool registration.
Generic tool names (cache_stats, cache_clear) lack action clarity. 'cache_stats' could mean retrieve, monitor, or export. Descriptions are minimal (20-30 chars), below the 50-char baseline for LLM selection.
Three tools modify code (quick_fix, fix_code, deep_fix) with overlapping intent. LLMs cannot distinguish when to use each. Descriptions do not explain the difference or when to prefer one over another.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 52 | 2026-07-28+ | v2 |
Aplica correcciones automáticas para issues comunes (typos, etc).
Sugiere una corrección específica para un issue detectado.
Sugiere nombres válidos similares a uno mal escrito.
Verifica código en local (0 tokens) para errores de sintaxis, typos, imports faltantes. Soporta: javascript, typescript, python, rust, go, react, angular. Si se provee file_path, activa el Diff Quirúrgico: solo reporta issues en las líneas cambiadas, suprime warnings del código legado no modificado, y agrupa errores en cascada bajo causas raíz (AST Triage).
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Tools are marked READ_ONLY or WRITE in metadata but not exposed to LLM via MCP annotations. Agents cannot infer safety properties.
Parameter descriptions lack constraints. check_level enum is defined in schema but not explained in description text. LLMs cannot read JSON Schema enums, they rely on description text to understand valid values.