MCP server exposing NestJS dev server logs to AI coding agents
Strong schema definitions with Zod validation and clear parameter constraints. All 7 tools have descriptions and input schemas with proper types. Tool names follow verb_noun convention (get_*, tail_*, truncate_*). However, descriptions are brief (10-80 chars, below the 50-200 char baseline for LLM optimization), and output schemas are not documented. Error handling returns JSON but lacks recovery guidance. No tool annotations (readOnlyHint/destructiveHint) despite clear risk profiles.
Get database query logs (TypeORM, Prisma, Mongoose)
Get NestJS dependency injection resolution errors
Get a summary of log counts by severity, top errors, and status code distribution
Get recent errors and exceptions from NestJS dev server logs
Get HTTP request logs from NestJS dev server
Get the last N lines from the log file, with optional grep filtering
Truncate (clear) the log file, preserving the file descriptor so NestJS keeps writing
Output schemas not documented. LLMs cannot plan downstream calls or extract fields without knowing response structure (e.g., what fields does get_recent_errors return? Is it an array? Does each error have timestamp, module, stack trace?).
Tool descriptions are too brief (10-80 chars vs. 50-200 char baseline). Descriptions lack context on WHEN to use each tool and what distinguishes it from similar tools. E.g., get_log_summary vs. get_recent_errors, when should an LLM pick one over the other?
No tool annotations (readOnlyHint, destructiveHint). truncate_logs is destructive and should be marked as such. All read-only tools should carry readOnlyHint=true for agent safety and optimization.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | B | 70 | 2026-07-28+ | v2 |
Error responses lack recovery guidance. errorResponse() returns {error: message} but does not tell the LLM what to do next (retry? ask user? call a different tool?). Per pattern:recovery-guide, errors should guide the agent's next step.
truncate_logs requires confirm=true but lacks a dry-run or preview mode. Destructive operations should support confirmation-request pattern to prevent accidental data loss.