Skip to main content

OFFICIAL DOCUMENTATION · FREE & PRO V1.2

Cadyra Privacy & Audit for MCP – Manual

Chapter 1 · Setup

Quickstart: Install & Connect Your First AI Agent

Cadyra runs locally on your own WordPress server between external AI clients (Claude Desktop, Cursor, ChatGPT, n8n, or custom runners) and WordPress — with zero cloud relay.

1

Prerequisites

WordPress 6.9+, PHP 8.2+, HTTPS, and the official MCP Adapter plugin (mcp-adapter) active.

2

Install Free Core

Install and activate cadyra-privacy-and-audit-for-mcp under Plugins → Add New. Baseline guards start immediately.

3

Activate PRO (Optional)

Upload cadyra-privacy-and-audit-for-mcp-pro.zip and enter your Freemius key under Cadyra MCP → Dashboard.

4

Create Agent Credential

Create, disable, renew, or delete dedicated AI Application Passwords directly under Cadyra MCP → Settings.

// Sample MCP Client Configuration (Claude Desktop, Cursor, n8n, HTTP Runner)
Endpoint: https://your-domain.com/wp-json/mcp/mcp-adapter-default-server
Header: Authorization: Basic <base64(wp_username:app_password)>
Protocol: MCP-Protocol-Version: 2025-11-25
Dual-Plugin Architecture (Free Core vs. PRO Add-on): Every feature marked Free is included with zero usage limits inside the free open-source base plugin (WordPress.org). Features marked PRO are provided by the separate commercial add-on (cadyra-privacy-and-audit-for-mcp-pro) via WordPress hooks.
Area Free Core Free · $0 PRO Add-on PRO
Core Security Firewalls Free Gateway Quarantine, Kill-Switch (503), Loop Breaker (429), Options Guard, Privilege Guard, Media/SVG/SSRF Firewall, Prompt Injection Guard (OWASP LLM01), Secret Protector, Draft Sandbox, Ability Matrix & Self-Test Included in Core + PRO Granular Per-Agent Scoping (role profiles, CRUD switches, post-type filters, page ID allow/denylists)
Privacy & PII Free Unrestricted one-way redaction ([REDACTED]) across all MCP responses, cadyra/scrub-text, /cadyra/v1/scrub, Prompt Sanitizer & Editor Preflight (emails, 6-region phones, IPv4/IPv6, seed_names) PRO Reversible AES-256-GCM PrivacyVault ({{CADYRA_VAR_*}}), 6-region business & national IDs, structured shop fields, Strict Lock (403), Approval (202), Write-Corruption (409), Publication Guard (403) & alerts
Builders, Rollback & Shop Free Gutenberg block-balance & Stored-XSS validator + Editor Preflight button (Gutenberg, Elementor & Divi) PRO Divi 5/4 & Elementor AST + 3 MCP design abilities, 72h Rollback Time Machine, WooCommerce Multi-Currency Financial Guard, Human-in-the-Loop Approval Gates & signed compliance evidence
MCP Abilities 2 Free cadyra/get-system-conflicts, cadyra/scrub-text +6 PRO cadyra/tokenize-sensitive-data, cadyra/get-transaction-status, cadyra/get-approval-status, cadyra/get-site-design-brief, cadyra/get-builder-schema, cadyra/compose-builder-page
Chapter 2 · Overview & Control

Dashboard, Security Self-Test & Emergency Kill-Switch (Free)

Under Cadyra MCP → Dashboard, inspect audited MCP transactions, active PII protection mode, audit chain status, and all active guard modules at a glance.

  • Free Emergency Lockdown (Kill-Switch, EU AI Act Art. 14): One click immediately suspends all MCP and AI agent requests with HTTP 503 (or enforce permanently via CADYRA_MCP_EMERGENCY_LOCKDOWN in wp-config.php).
  • Free Built-in Security Self-Test: Verifies gateway isolation, options protection, loop breaker, audit chain integrity, and PII redaction (plus PrivacyVault when PRO is active) in seconds.
  • PRO Approval Queue Widget & License Status: Displays pending Human-in-the-Loop approvals directly on the dashboard and manages your Freemius license key.
Cadyra Dashboard showing Emergency Kill-Switch, PrivacyVault status, and active guard modules
Fig. 1: Cadyra Dashboard – Central security posture (Free), emergency kill-switch (Free), PrivacyVault status (PRO), and active module overview.
Chapter 3 · Privacy & Compliance

PII Protection: One-Way Redaction (Free) vs. AES-256-GCM PrivacyVault (PRO)

Before WordPress responses leave your server toward an external LLM, Cadyra inspects payloads, HTTP headers, and error messages locally for personal data and credentials.

Scope Free Core Free Cadyra PRO PRO
Covered Surfaces Free Unrestricted across all MCP responses, cadyra/scrub-text, POST /wp-json/cadyra/v1/scrub, interactive Prompt Sanitizer & Editor Preflight (Gutenberg, Elementor, Divi) PRO Adds structured WooCommerce order, customer & user profile fields, UserNameSeeder, cadyra/tokenize-sensitive-data, plus /cadyra/v1/tokenize & /detokenize (browser admin only)
Method & Policies Free Permanent one-way redaction ([EMAIL_REDACTED], [PHONE_REDACTED], [IP_REDACTED]) PRO Reversible AES-256-GCM PrivacyVault ({{CADYRA_VAR_EMAIL_...}}) with local inbound de-tokenization, Write-Corruption Guard (409), Publication Guard (403), Strict Lock (403), PII Approval (202) & email/webhook alerts
Detectors Free Emails, phone numbers (EU/DACH, FR, CH, UK, US/CA NANP, AU & +CC), IPv4/IPv6, seed_names & API secrets PRO Street addresses & postcodes/ZIP+4, personal names, dates of birth, EU IBAN (Mod-97), payment cards (Luhn), DE Tax ID/SVNR, CH AHV, UK NINO/UTR, US SSN/EIN, CA SIN/BN, AU TFN & GDPR Art. 17 crypto-shredding
Honest Engineering Note: Cadyra combines regex patterns, checksum validators (Luhn, IBAN Mod-97), and contextual heuristics as a technical safeguard. Unusually formatted free text can still slip through — pair PII scrubbing with PRO Human-in-the-Loop Approval Gates or Strict Lock (HTTP 403) for high-sensitivity workflows.
Cadyra Settings & Policies screen for privacy mode, gateway quarantine, sandbox, and PRO modules
Fig. 2: Settings & Policies – Core Free module toggles plus (when PRO is installed) PrivacyVault, WooCommerce & Agent Scoping.
Chapter 4 · Access Governance

Gateway Quarantine (Free), Direct REST API & Agent Scoping (PRO)

Free By default, Gateway Quarantine (cadyra_isolate_agent_app_passwords) confines AI agent credentials strictly to /wp-json/mcp/* and /wp-json/wp-abilities/*. Direct calls to /wp-json/wp/v2/* or XML-RPC are rejected with HTTP 403 and logged.

  • Free Direct REST API without MCP: Keep the password classified as an Agent and simply turn off Gateway Quarantine in Settings. Kill-switch, anti-tamper, audit logging, PII scrubbing, sandbox staging, and WordPress kernel hooks stay active across direct REST routes (/wp/v2/*, /wc/v3/*).
  • Free Full Credential Lifecycle inside Cadyra: Directly from the Agent table, you can Disable / Enable any credential (instant HTTP 403 block across all channels), Renew it (rotates password while preserving scopes & PRO policies), or Delete it permanently.
  • PRO Granular Agent Scoping Matrix: Assign per-agent role profiles (Read-Only, Content Writer, SEO Specialist, Shop Manager), CRUD rules, post-type filters, and page ID allow/denylists enforced at both the gateway and WordPress kernel hooks.
Chapter 5 · Write Safety, Commerce & Recovery

Sandbox (Free), 72h Rollback, WooCommerce & Page Builders (PRO)

  • Free AI Sandbox & Draft Staging: Forces new AI-authored posts into draft status and intercepts destructive deletes until reviewed.
  • Free Gutenberg Guard & Editor Preflight: Validates Gutenberg block comments, tag balance & Stored-XSS, and provides the Preflight check button inside Gutenberg, Elementor & Divi editors.
  • PRO 72h Rollback Time Machine: Captures a local pre-mutation snapshot before writes to posts, pages, products, orders, coupons, or options with one-click & cascade rollbacks plus cadyra/get-transaction-status.
  • PRO WooCommerce Financial Guard: Protects base currency and multi-currency fields (WPML/WCML, CURCY, FOX/WOOCS, Aelia) against zero-price writes, steep price drops, runaway coupons, negative stock, and unapproved refunds.
  • PRO Divi 5/4 & Elementor AST Guard + Design Engine: Validates Divi 5 block AST, Divi 4 shortcodes & Elementor JSON plus 3 native MCP design abilities (get-site-design-brief, get-builder-schema, compose-builder-page).
Cadyra 72h Rollback Center showing reversible snapshots and one-click restore
Fig. 3: 72h Rollback Center (PRO) – Automatic pre-mutation snapshots with one-click restore, cascade rollback, and latency telemetry.
Chapter 6 · Compliance Evidence & Automation

Audit Log (Free), Evidence Reports (PRO) & WP-CLI

Free Every AI operation is logged locally with timestamp, authenticated credential context, ability name, status, execution latency, and an HMAC-SHA-256 hash (30-day retention, PII filter, CSV/JSON export, WordPress Privacy Exporter/Eraser). PRO adds HMAC-signed Compliance Evidence Reports (JSON/HTML) and GDPR Art. 17 vault crypto-shredding.

Cadyra Audit Log with SHA-256 chain verification, PII filter, and CSV/JSON export
Fig. 4: Audit Log – Cryptographic hash-chain verification, PII-only filter & CSV/JSON export (Free) plus signed compliance evidence (PRO).
# WP-CLI Commands — Free Core:
$ wp cadyra status
$ wp cadyra verify-chain

# WP-CLI Commands — PRO Add-on (72h Rollback):
$ wp cadyra snapshots list
$ wp cadyra rollback <snapshot_id>
Chapter 7 · Tools & Diagnostics (Free + PRO)

Pre-Flight Prompt Sanitizer & Conflict Scanner (Free)

Free The Pre-Flight Gateway (Prompt Sanitizer) lets teams scrub emails, tickets, or text locally (manually, via cadyra/scrub-text, or /wp-json/cadyra/v1/scrub in redact mode; with PRO also reversibly in token mode). The 6-Pillar Conflict Scanner (Free, cadyra/get-system-conflicts) checks caching, WAFs, stripped Authorization headers, JSON cleanliness, and MCP Adapter readiness.

Cadyra Pre-Flight Gateway & Prompt Sanitizer tool
Fig. 5: Pre-Flight Gateway – Local PII scrubbing for prompts prior to sharing with external AI tools.
Cadyra Compatibility Sentinel & Conflict Scanner
Fig. 6: Conflict Scanner – Automated diagnostics for header stripping, security plugin conflicts, and MCP reachability.
Chapter 8 · Self-Service Troubleshooting

Troubleshooting: Solve Common Issues in Minutes

1. HTTP 401 / Missing Authorization Header

Apache with FastCGI/PHP-FPM often strips the Authorization header. Cadyra automatically checks REDIRECT_HTTP_AUTHORIZATION; on strict hosts add this line to .htaccess:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

2. HTTP 403 “Gateway Isolation Violation”

Your AI agent credential called a direct Core REST route (e.g. /wp/v2/posts) instead of /wp-json/mcp/....

Fix: Point your client to the MCP endpoint — or turn off Gateway Quarantine in Settings while keeping the credential classified as an agent.

3. HTTP 503 “Emergency Lockdown Active”

The Emergency Kill-Switch is active. Turn it off on the Cadyra Dashboard or remove CADYRA_MCP_EMERGENCY_LOCKDOWN from wp-config.php.

4. Moving a PRO License to a New Domain

Uninstalling the PRO add-on on the old site automatically releases the site activation slot, or manage activations anytime in the Freemius Customer Portal.

5. Staging & Localhost Domains

Standard non-production hosts (localhost, *.local, *.test, staging.*) are recognized automatically by Freemius and never consume a paid slot.

6. Still Need Assistance?

Run the built-in Conflict Scanner first, then email the summary along with your WordPress & PHP versions to support@cadyra.com.