Local MCP server that obfuscates source-code identifiers on read and restores them on write.
mcp-obfuscator has 4 tools with basic schemas and descriptions, but significant gaps prevent production use. Tool names lack clear action verbs (read_obfuscated, read_redacted are passive/ambiguous). Descriptions are present but generic (194-char baseline; these average ~120 chars, below median). Input schemas exist but are minimal: most parameters lack type constraints, enums, or validation hints. No output schemas documented. Error handling is absent, no recovery guidance or categorization. The write_deobfuscated tool modifies state but lacks confirmation/dry-run patterns. Parameter descriptions are sparse (e.g., 'Path to the source file' tells LLM nothing about format, length, or allowed characters). No pagination, no batch operations, no chaining IDs in responses.
Return identifiers recorded in the unmapped-identifier log — tokens that appeared in files written via write_deobfuscated but had no entry in the map.
source files (TS/JS/JSX/TSX/MTS/CTS/MJS/CJS). Runs identifier obfuscation + optional string rewrite + optional comment stripping + secret redaction.
any other file. Runs secret redaction only.
source files. Reverses identifier obfuscation (plus path and string reversals when enabled) and writes to disk.
Tool names lack action verbs. 'read_obfuscated' and 'read_redacted' are passive and ambiguous, LLMs cannot infer intent from the name alone. Should be 'obfuscate_source' and 'redact_secrets' to clarify what the tool does to the output.
No output schemas documented. LLMs cannot plan downstream calls or extract structured data. Each tool must declare what fields it returns (e.g., obfuscated_content, mapping_applied, secrets_redacted).
write_deobfuscated modifies state (writes to disk) but lacks confirmation/dry-run pattern. Agents can accidentally overwrite files. Add a 'dry_run' boolean parameter and return a preview before committing.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 41 | <=2025-11-25 | v2 |
Parameter descriptions are minimal. 'Path to the source file to read and obfuscate' lacks constraints: file size limits, allowed extensions, path traversal guards, or format hints. LLMs cannot validate input before calling.
No error handling guidance. If a file is not found, too large, or contains invalid syntax, the tool returns a raw error. Should return actionable messages: 'File not found at /path/to/file. Check the path and try again.' or 'File too large (5MB > 1MB limit). Split into smaller files.'