MCP server for TokenLighten - a code analysis and token optimization tool that provides file reading, editing, and searching capabilities with support for multiple document formats (Office, archives, encrypted artifacts) and code symbol analysis
TokenLighten MCP server has 3 tools with basic definitions but significant quality gaps. Tool names follow verb_noun convention (read_file, edit_file, search_files), which is good. However, parameter descriptions are sparse or missing entirely. The 'targets' and 'content' parameters in read_file lack descriptions. The 'edits' and 'artifact' parameters in edit_file are minimally described. search_files has better parameter coverage but 'scope' and 'budget' descriptions are vague. No output schemas are documented anywhere in the provided source. Error handling is not visible. The server lacks tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite having clear read-only vs write operations. Descriptions are present but generic (194 chars baseline suggests room for improvement). Overall, definitions are functional but fall short of production-grade quality.
Edit file contents with support for code, plain text, and Office documents. Supports multiple edits in a single call with verification
Read file contents with support for multiple formats including code, plain text, Office documents (DOCX, XLSX, PPTX), archives (ZIP, TAR, 7Z), encrypted artifacts, and PDFs
Search files in the workspace using text search or symbol search with filtering by file type, scope, and other criteria
Output schemas not documented. LLMs cannot plan downstream calls or extract required fields without knowing what read_file, edit_file, and search_files return.
Parameter descriptions missing or vague. 'targets' in read_file has no description. 'content' in read_file is described as 'Optional content selection parameters' without explaining what it selects. 'scope' and 'budget' in search_files lack actionable guidance.
No tool annotations present. edit_file is destructive (WRITE risk) but lacks destructiveHint. read_file and search_files are read-only but lack readOnlyHint. Agents cannot determine retry safety or side-effect scope.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 48 | 2026-07-28+ | v2 |
No error handling guidance visible. If read_file fails on a corrupted PDF or edit_file fails on a locked file, the LLM receives no recovery hint (e.g., 'Try search_files to locate an unlocked copy').
Parameter type constraints underspecified. 'action' enum in search_files is declared but 'queries' array lacks item type. 'edits' array in edit_file has no schema for edit operation objects.