Repository navigation
Adds opt-in, read-only file tools and makes the restoration reference visible to text-only clients.
Added
mask_fileandscan_file: one named UTF-8 file (up to 1 MB) below a single project directory. Off by default; both tools exist only when the server is started with--root <directory>. Links and outside paths are refused; nothing is written.- Cell-by-cell masking for CSV/TSV with a table-shape check, value-wise masking for JSON and JSON Lines, plain-text fallback reported as
text. scan_json: category counts for JSON string values.
Changed
mask_textandmask_jsonreturn the same JSON object (masked text,session_id, counts) in the text content and instructuredContent. 0.1.4 returned only the masked text in the text content. Clients that parse the text content need to read themaskedfield.- A masking result above 1 million characters and a restoration above 2 million output characters are refused.
- Expired sessions are removed by a timer, not only on the next tool call (reference removal, not physical memory erasure).
- Session references come from
node:crypto, so masking works on plain Node 18. scan --stagedalso selects staged type changes.
Evidence: CI on Node 22 and 24, 197 tests each, zero failures and zero skips, including all 14 real Git fixtures (run 46898533548). Fictional data only.
Boundaries: masking requires explicit tool or CLI calls and does not intercept a client's own file reads; values the patterns do not recognise stay unmasked; restoration returns originals to the caller. PDF, Office documents and images are not supported. Windows, macOS and installed AI clients were not exercised with this version.
This release starts the npm publication workflow. npm artifact verification and the MCP Registry update are separate follow-up checks recorded in RELEASE.md.