Local-first MCP server that detects PHI flowing into LLM prompts, logs, and analytics calls in source code
Two tools with clear, domain-specific purposes and complete input schemas. Naming is verb-forward (redact_suggest, scan_code). Descriptions are adequate (100 - 150 chars) but lack actionable context for LLM selection. Parameters are typed (Zod) and described, but lack constraints (enums, ranges, format hints). Output schemas are not documented, LLMs cannot predict response structure. Error handling is absent; no recovery guidance or categorization. Security considerations (path traversal in scan_code) are not addressed in the tool definition.
Given a raw text snippet (a log line, a prompt, an error message), detect PHI-shaped values and return a redacted version.
Scan a local directory of source files for sensitive identifiers (patient, diagnosis, dob, ssn, mrn, birthdate, medicalrecord) flowing into risky sinks (LLM calls, logging, analytics) before they ship.
Output schemas not documented. LLMs cannot predict response structure (RedactResult vs CodeFinding). Responses are JSON-stringified text, not structured objects.
scan_code accepts arbitrary file paths without validation. No mention of path traversal guards, symlink handling, or permission checks. Security risk if agent is compromised.
No error handling guidance. If scan_code fails (permission denied, invalid path, timeout), LLM receives no recovery hint. No categorization of retryable vs fatal errors.
redact_suggest description lacks context for LLM selection. When should it be called vs other redaction tools? What are the confidence thresholds? No mention of false positive/negative rates.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | 2026-07-28+ | v2 |
scan_code parameter 'path' lacks format constraints. Description mentions 'absolute path preferred' but does not enforce it or explain consequences of relative paths. No min/max length, no regex pattern.