Repository navigation
v2.0.4 - security: keep raw PII out of MCP responses (#2)
Security fix - issue #2
start_review and anonymize_docx were leaking raw document text into Claude's context before the HITL approval step. Both are fixed in v2.0.4.
What changed
start_reviewnow returns metadata-onlysessions[]:{session_id, doc_id, source_filename, entity_count, approved, has_overrides}. No raw text, no entities, no html.- New
get_review_payloadtool with_meta.ui.visibility: ["app"]- model-invisible. The iframe pulls the unredacted payload through it after mount. apply_review_overridesmoved to the sameregisterAppToolshape withvisibility: ["app"].anonymize_docxreturn shape whitelisted (paths + counts + note).
Regression test
npm run smoke seeds a session with three known canary substrings, calls start_review, stringifies the entire response, and asserts every canary is absent. Catches regressions at the protocol level.
Install
Download pii-shield-v2.0.4.mcpb below and install via Claude Desktop -> Settings -> Extensions -> Advanced Settings -> Install Extension.
Full testkit (with model installer scripts) in pii-shield-testkit-v2.0.4.zip.
Acceptance
Reproducing the original demo from #2 in Claude Desktop, Claude now answers "I don't actually know - and that's by design" when asked to name the parties before approval.
Full commit: 99650e9