Skip to content

v2.0.4 - security: keep raw PII out of MCP responses (#2)

Choose a tag to compare

@gregmos gregmos released this 23 May 04:32
· 11 commits to main since this release

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_review now returns metadata-only sessions[]: {session_id, doc_id, source_filename, entity_count, approved, has_overrides}. No raw text, no entities, no html.
  • New get_review_payload tool with _meta.ui.visibility: ["app"] - model-invisible. The iframe pulls the unredacted payload through it after mount.
  • apply_review_overrides moved to the same registerAppTool shape with visibility: ["app"].
  • anonymize_docx return 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