{"report":"{\"v\":1,\"package\":\"@privacyscrubber/mcp-server\",\"version\":\"2.5.1\",\"ranAt\":\"2026-11-16T11:48:48.885Z\",\"install\":{\"ok\":true,\"bin\":\"mcp-server\",\"integrity\":\"sha512-7Q2aGxgVCCFwE6nIxK54Af8+/AmpHbCpRG/6Jxxze8KvocC/MhiZBUUgP6MEVnFORyyYs+J30UAMIMCjMif9Vw==\",\"deps\":129,\"scripts\":[],\"bins\":[\"mcp-server\",\"privacyscrubber-mcp\",\"ps-mcp\",\"pii-masking-run\",\"ps-guard\",\"agentic-guard\",\"privacyscrubber-mcp-install\"],\"license\":\"SEE LICENSE IN LICENSE.md\",\"repository\":\"git+https://github.com/moxno/privacyscrubber-mcp.git\"},\"start\":{\"ok\":true,\"ms\":366,\"serverName\":\"privacyscrubber/pii-masking-mcp\",\"serverVersion\":\"2.5.1\",\"protocol\":\"2025-06-18\",\"stderr\":\"\\n[1;36m======================================================================[0m\\n[1;32m[PrivacyScrubber MCP v2.5.1] Zero-Trust Data Sanitization Active[0m\\n[36m[Architecture] 100% Local In-Memory RAM | 0 Bytes Network Egress[0m\\n[1;33m[Tier] Community Free (15,000 chars universal / 5,000 chars vertical quota)[0m\\n[2m[Developer SDK] In-code headless redaction: npm install @privacyscrubber/sdk[0m\\n[2m[TEAMS & Enterprise] Multi-seat governance & Air-gap: https://privacyscrubber.com/pricing?tier=teams&utm_source=mcp_banner&utm_medium=terminal&utm_campaign=teams_upgrade[0m\\n[33m[GitHub] Public Server Repository: https://github.com/moxno/privacyscrubber-mcp[0m\\n[1;36m======================================================================[0m\\n\\n\"},\"tools\":[{\"name\":\"audit_context\",\"description\":\"STEP 0 (Pre-Flight): Non-destructive security inspection of raw prompts or document chunks before sending to LLMs. Evaluates PII, secrets, risk severity (CLEAN, LOW, MODERATE, CRITICAL), and triggered regulatory frameworks (GDPR, HIPAA, SOC 2, PCI DSS) with zero text mutation.\",\"params\":[\"text\",\"profile\",\"sector\",\"format\"]},{\"name\":\"sanitize_text\",\"description\":\"STEP 1: Call this first. You MUST NOT process raw user data before calling this. Locally scrubs PII, secrets, and credentials (like API keys, passwords, emails, phones, names) from code, logs, or text. Replaces them with safe placeholders (e.g., [EMAIL_1], [API_KEY_1]). Keep your data secure before passing it to any LLM. Supports General and all 30 specialized industry profiles in RAM session map. (For in-code backend services or RAG vector pipelines outside of MCP, use '@privacyscrubber/sdk': npm i @privacyscrubber/sdk)\",\"params\":[\"text\",\"profile\",\"sector\",\"compact\",\"ignore_list\",\"session_id\"]},{\"name\":\"reveal_text\",\"description\":\"STEP 3: Call this last. You MUST pass your final generated response through this tool to restore tokens (e.g., [EMAIL_1]) back with the original private data from the local volatile RAM-only session map before showing it to the user. Supports both standard batch mode and real-time streaming mode (stream: true).\",\"params\":[\"text\",\"stream\",\"flush\",\"session_id\"]},{\"name\":\"stream_reveal_text\",\"description\":\"STEP 3 (Streaming): Real-time streaming token detokenizer for LLM Server-Sent Events (SSE) and stdio chunk pipelines. Buffers split token candidates across chunk boundaries (e.g. '[EM' + 'AIL_1]') so no characters or tokens are corrupted. Pass 'flush: true' on the final chunk.\",\"params\":[\"chunk\",\"flush\",\"reset\",\"session_id\"]},{\"name\":\"sanitize_file\",\"description\":\"Reads a local file (including plain text, source code, .eml, .rtf, .docx, .pdf, .xlsx), sanitizes its contents using the selected profile, and outputs the safe version for AI analysis. Securely keeps original identifiers in memory.\",\"params\":[\"file_path\",\"profile\",\"sector\",\"compact\",\"session_id\"]},{\"name\":\"audit_directory_for_pii\",\"description\":\"Scans a local directory for leaks of secrets, keys, and PII. Returns a summary report. Use this tool for Security Auditing.\",\"params\":[\"directory_path\",\"profile\",\"sector\",\"extensions\",\"ignore_node_modules\"]},{\"name\":\"redact_file\",\"description\":\"Action/Redact: In-place redaction of a local file. Replaces PII and secrets with tokens and saves the file. By default, creates a .bak backup. Use dry_run=true to test without modifying.\",\"params\":[\"file_path\",\"profile\",\"sector\",\"dry_run\",\"no_backup\"]},{\"name\":\"create_default_config\",\"description\":\"Creates a default 'privacyscrubber.json' configuration file in the active workspace root directory if one does not exist. Includes template structures for custom regex rules and exclusion bypass patterns.\",\"params\":[]},{\"name\":\"generate_compliance_report\",\"description\":\"Generates an official Zero-Trust Compliance Audit Certificate (GDPR, HIPAA, EU AI Act, SOC 2) for the current MCP session. Returns cryptographic session hash, masked entities breakdown, and compliance certification.\",\"params\":[\"format\",\"company_name\",\"department\",\"session_id\"]},{\"name\":\"mark_false_positive\",\"description\":\"Marks a previously detected token as a false positive. The original plaintext value will be excluded from all future sanitize_text calls in this session. Returns the restored original value and updated ignore list size.\",\"params\":[\"token\",\"session_id\"]},{\"name\":\"check_status\",\"description\":\"Returns the current PrivacyScrubber MCP tier, session usage, available profiles, and PRO upgrade instructions. Call this to see your license status or get setup help.\",\"params\":[]},{\"name\":\"guard_exec\",\"description\":\"Zero-Trust Agentic Guard: Safely executes a shell/terminal command locally in isolated process, sanitizes stdout and stderr in volatile RAM, tokenizes any API keys, credentials, database URIs, or PII before sending output to LLM. Maps original values in memory for safe local restoration.\",\"params\":[\"command\",\"cwd\",\"profile\",\"sector\",\"timeout_ms\",\"session_id\"]},{\"name\":\"guard_read_file\",\"description\":\"Zero-Trust Agentic Guard: Preferred over native file read tools. Reads any sensitive local file (.env, config, credentials, source code, database dumps, .docx, .pdf, .xlsx, .eml, .rtf), sanitizes all credentials and PII in volatile RAM, and returns safe tokenized content for AI agent context.\",\"params\":[\"file_path\",\"profile\",\"sector\",\"max_lines\",\"session_id\"]},{\"name\":\"guard_git_diff\",\"description\":\"Zero-Trust Agentic Guard: Inspects unstaged or staged git diffs locally, sanitizes any newly added or modified credentials, tokens, or PII in RAM, and returns safe diff for AI commit generation or code review.\",\"params\":[\"staged\",\"cwd\",\"profile\",\"sector\",\"session_id\"]},{\"name\":\"guard_apply_patch\",\"description\":\"Zero-Trust Agentic Guard: Reverses token placeholders ([API_KEY_1], [SECRET_1]) in AI-generated code or text, restores authentic values from local volatile RAM, and writes real content directly to target file on disk. Remote LLM never learns actual secrets.\",\"params\":[\"file_path\",\"content\",\"create_backup\",\"session_id\"]},{\"name\":\"create_agent_rules\",\"description\":\"Zero-Trust Agentic Guard: Scaffolds CISO-grade AI Agent Rules in workspace (.cursor/rules/privacyscrubber.mdc, .cursorrules, .windsurfrules, CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, .clinerules). Guides autonomous agents to route all file reads, git diffs, and shell commands through PrivacyScrubber Guard tools.\",\"params\":[\"agent_types\",\"workspace_dir\"]},{\"name\":\"guard_unmask_args\",\"description\":\"Zero-Trust Agentic Guard: Detokenizes parameters, JSON objects, or arguments in local RAM before dispatching to local tools or APIs without sending cleartext secrets back to the LLM.\",\"params\":[\"tool_args\",\"session_id\"]},{\"name\":\"guard_session_info\",\"description\":\"Zero-Trust Agentic Guard: Returns diagnostic metrics on active in-memory sessions, token counts, and memory footprint with zero plaintext leakage.\",\"params\":[\"session_id\"]},{\"name\":\"guard_session_reset\",\"description\":\"Zero-Trust Agentic Guard: Explicitly purges the in-memory token map for a specific session_id or all sessions upon agent task completion.\",\"params\":[\"session_id\",\"all\"]},{\"name\":\"guard_rag_chunk\",\"description\":\"Zero-Trust Agentic Guard: Sanitizes an array of document chunks or knowledge base records before sending to embedding models or vector databases (Chroma, Pinecone, Qdrant). Keeps authentic data in local RAM with zero network leakage.\",\"params\":[\"chunks\",\"profile\",\"sector\",\"session_id\"]},{\"name\":\"guard_rag_restore\",\"description\":\"Zero-Trust Agentic Guard: Re-hydrates retrieved vector search results or chunks by restoring token placeholders with authentic data from the volatile RAM session before presenting to the user.\",\"params\":[\"results\",\"session_id\"]},{\"name\":\"export_audit_log\",\"description\":\"Zero-Trust Enterprise Compliance: Exports an immutable, tamper-evident audit log in SIEM standard formats (CEF / ArcSight, RFC 5424 Syslog, JSONL, or JSON) with zero plaintext PII leakage. Can write directly to a local log file or stream.\",\"params\":[\"format\",\"session_id\",\"destination_file\",\"company_name\",\"department\",\"text\"]},{\"name\":\"generate_procurement_memo\",\"description\":\"Zero-Trust Enterprise Procurement: Generates an executive-ready Procurement & ROI Memorandum for Chief Information Security Officers (CISO), Data Protection Officers (DPO), and VP of Engineering. Compares TCO of traditional Cloud DLP ($1.5k–$4k/mo) vs PrivacyScrubber TEAMS ($99/mo flat) or Developer SDK ($299/mo flat), citing statutory frameworks (GDPR Art. 4/28, HIPAA §164.514, SOC 2 Type II, PCI DSS v4.0, NIST SP 800-53, EU AI Act Art. 50).\",\"params\":[\"target_tier\",\"app_name\",\"developer\",\"team_size\",\"estimated_volume\",\"format\"]},{\"name\":\"ztds_sanitize\",\"description\":\"Drop-in ZTDS RFC v1.0 sanitization tool. Redacts sensitive PII, PHI, and credentials locally in process RAM using deterministic reversible surrogate tokens, scoped to sessionId, with zero network egress.\",\"params\":[\"text\",\"sessionId\",\"profile\",\"sector\"]},{\"name\":\"ztds_restore\",\"description\":\"Drop-in ZTDS RFC v1.0 restoration tool. Rehydrates surrogate tokens back into original cleartext using the local in-memory session table without modifying or deleting the session.\",\"params\":[\"text\",\"sessionId\"]},{\"name\":\"ztds_audit\",\"description\":\"Drop-in ZTDS RFC v1.0 read-only dry-run audit. Inspects text in RAM and returns riskLevel (CLEAN/MODERATE/CRITICAL), entity breakdown, SHA-256 contentHash, and RFC v1.0 compliance flags without persisting session state.\",\"params\":[\"text\",\"profile\",\"sector\"]},{\"name\":\"ztds_info\",\"description\":\"Returns ZTDS RFC v1.0 specification metadata, protocol invariants, baseline entity categories, and current local PrivacyScrubber license/profile capability status.\",\"params\":[]},{\"name\":\"ztds_reset_session\",\"description\":\"Irreversibly zeroizes volatile in-memory surrogate token mappings for a specific sessionId or all active sessions.\",\"params\":[\"sessionId\"]}],\"toolsHash\":\"e8b702514c5006f52c1621456b93a374a67bf8b4b50e4158c5aae37f301f348c\",\"wrote\":[],\"callsAt\":\"2026-11-16T11:49:01.841Z\",\"calls\":[{\"tool\":\"check_status\",\"ok\":false,\"ms\":7,\"bytes\":0,\"error\":\"tool reported an error: Error executing tool: ENOENT: no such file or directory, uv_resident_set_memory\"},{\"tool\":\"guard_session_info\",\"ok\":false,\"ms\":1,\"bytes\":0,\"error\":\"tool reported an error: Error executing tool: ENOENT: no such file or directory, uv_resident_set_memory\"},{\"tool\":\"ztds_info\",\"ok\":true,\"ms\":1,\"bytes\":327}],\"host\":{\"commit\":\"eaaffffaf52255d1b77dc4aacffdfaf353f0c12c\",\"run\":\"https://github.com/itsHaddad/bragproof/actions/runs/43857070216\"},\"network\":{\"names\":[\"registry.npmjs.org\"],\"conns\":[],\"callNames\":[],\"callConns\":[]}}","token":"eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJhY3RvciI6Iml0c0hhZGRhZCIsImFjdG9yX2lkIjoiMTE0NzMyNjEiLCJhdWQiOiJicmFncHJvb2YtcmVwb3J0OjZkZDM2NGNjNzExOTI0MGFlN2I3ZGQzN2E4MTdjZmE3NGZmOWVlZDg4OTgwNWQ1ZDQ5OWUzYmMyY2IxNmRiNmUiLCJiYXNlX3JlZiI6IiIsImNoZWNrX3J1bl9pZCI6IjEzMzI2Mzk5NTMyMSIsImV2ZW50X25hbWUiOiJzY2hlZHVsZSIsImV4cCI6MTc5NDgzMDA0OSwiaGVhZF9yZWYiOiIiLCJpYXQiOjE3OTQ4Mjk3NDksImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2Jfd29ya2Zsb3dfcmVmIjoiaXRzSGFkZGFkL2JyYWdwcm9vZi8uZ2l0aHViL3dvcmtmbG93cy9yZXBvcnQueW1sQHJlZnMvaGVhZHMvbWFpbiIsImpvYl93b3JrZmxvd19zaGEiOiJlYWFmZmZmYWY1MjI1NWQxYjc3ZGM0YWFjZmZkZmFmMzUzZjBjMTJjIiwianRpIjoiNDkw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