- Ships a native Model Context Protocol (
MCP 2025-06-18) Streamable HTTP server inside Free Core exposing 20 typed tools (19Free Core +1Cloud Pro), 10 live resources, and 5 guided prompts. - Secures every AI client connection via RFC-compliant OAuth 2.1 + PKCE (
S256) browser consent or SHA-256 hashed scoped Bearer tokens (read,operate,configure,destructive). - Enforces Safe Mode dry-run previews (
McpSimulator.php), human-in-the-loop owner approvals (ap_...inMcpApprovals.php), and atomic 1-click rollback snapshots (cp_...inMcpCheckpoints.php). - Pairs with KadiCache Pulse (
/pulse) for managing unlimited Free Core and Cloud Pro sites via lightweight~2 KBevent-driven delta sync with zero idle cron polling.
Table of Contents (7 sections)
- Why WordPress Performance Management Needs Guardrailed AI & Zero-Polling Fleet Control
- Native MCP 2025-06-18 Server: Connect Claude Code, Cursor, VS Code & Antigravity
- Four Granular Permission Scopes & Complete Tool Catalog (McpSchemaRegistry.php)
- Three Production Safety Nets: Simulator, Human Approvals & Checkpoints
- KadiCache Pulse: Unlimited Multi-Site Fleet Management With Zero Polling
- Enterprise Security & Multi-Environment Governance Checklist
- Real-World AI Assistant & Agency Workflows With KadiCache MCP
Why WordPress Performance Management Needs Guardrailed AI & Zero-Polling Fleet Control#
Modern developers, technical SEOs, and WordPress agencies spend hours clicking through repetitive admin tabs across 10, 25, or 100 client sites: diagnosing why a WooCommerce landing page bypassed cache, checking Redis hit ratios, running PageSpeed audits after plugin updates, safelisting a new widget script, or rolling back a risky configuration tweak.
Giving an AI coding assistant raw SSH access or unrestricted wp eval database credentials to automate those tasks is far too dangerous in production—one hallucinated option key or unguarded DELETE query can take down checkout. Conversely, traditional multi-site WordPress management dashboards poll every connected site every 60 to 300 seconds via admin-ajax.php or XML-RPC, burning PHP worker CPU 24/7 even when nobody is looking at the dashboard!
KadiCache solves both challenges natively: Free Core includes a specification-compliant Model Context Protocol (MCP 2025-06-18) server right inside WordPress (WP Admin -> KadiCache -> AI & MCP) engineered with strict OAuth 2.1 security, dry-run simulation, human approval gates, and atomic checkpoints—paired with KadiCache Pulse for zero-polling multi-site fleet management.
Native MCP 2025-06-18 Server: Connect Claude Code, Cursor, VS Code & Antigravity#
Open WP Admin -> KadiCache -> AI & MCP -> Connect & Quick Setup to copy ready-to-paste Streamable HTTP connection snippets (/wp-json/kadicache/v1/mcp) for Claude Code, Claude Desktop, Cursor, VS Code Copilot, Windsurf, and Antigravity. Two first-class authentication standards are built in:
- OAuth 2.1 + PKCE (
S256) Interactive Consent (McpOAuth.php): Supports RFC-compliant/.well-known/oauth-protected-resourcediscovery and dynamic client authorization. When you connect an MCP client, WordPress displays a dedicated KadiCache OAuth 2.1 Consent Screen showing the exact client name and requested scopes so you can approve access in one click without copying raw API keys into config files. - SHA-256 Hashed Scoped Bearer Tokens (
McpTokenStore.php): For headless CI/CD pipelines, WP-CLI scripts, or CLI assistants, mint a scoped token with an optional expiration window (--days=30). The raw token is displayed once at creation; only its irreversibleSHA-256hash is stored on disk, backed by per-token rate limiting (McpRateLimiter.php).
Four Granular Permission Scopes & Complete Tool Catalog (McpSchemaRegistry.php)#
Every MCP credential is bound to explicit capability scopes so you can grant a junior developer or monitoring agent read-only diagnostics without allowing setting changes or database deletions:
| Permission Scope | Allowed Operations | Representative Typed MCP Tools | Built-In Safety Guardrail |
|---|---|---|---|
read | Read-only status, headers, RUM, settings & DB counts | get_status, diagnose_url, get_settings, get_preload_status, inspect_database, get_rum_analytics, get_approval_status | Zero state mutation; redacts encrypted API secrets |
operate | Routine cache purges, preload queues, repairs & audits | purge_cache, manage_preload, repair_runtime, verify_integrations, run_pagespeed_audit, manage_object_cache | Uses Soft Purge defaults & non-destructive runtime repair |
configure | Previewing, updating, optimizing & rolling back settings | simulate_settings, update_settings, optimize_site, manage_script_manager, rollback_checkpoint, manage_cloudflare, manage_pro_cloud | Auto-creates cp_... rollback checkpoint before saving |
destructive | Bounded database cleanup & full purge resets | clean_database (when dry_run = false), manage_script_manager (reset_all) | Requires human owner approval_token (ap_...) |
Alongside its 21 typed tools (20 Free Core + 1 Cloud Pro), KadiCache exposes 11 live MCP Resources—including kadicache://site/status, kadicache://site/settings, kadicache://assets/script-manager, kadicache://diagnostics/runtime, kadicache://analytics/visits, kadicache://vitals/pagespeed, kadicache://vitals/rum, and ui://kadicache/rendered/latest—plus 6 guided diagnostic prompts (including safe-script-audit) so AI assistants inspect real ground-truth telemetry rather than guessing.
Three Production Safety Nets: Simulator, Human Approvals & Checkpoints#
Every AI-driven or remote configuration workflow inside KadiCache passes through three deterministic safety layers:
- Dry-Run Settings Simulator (
McpSimulator.php->simulate_settings): Before applying any configuration change, an AI assistant callssimulate_settingsto compute an exact side-by-side setting diff, purge impact (Soft Purgevs none), and compatibility warnings (for example, verifying active WooCommerce cart policies or host Coexistence Mode) without writing a single byte to production. - Human-in-the-Loop Approval Gate (
McpApprovals.php): High-impact ordestructiveactions pause automatically and mint a pending approval request (ap_...) visible insideWP Admin -> KadiCache -> AI & MCP. Execution cannot proceed until a logged-in WordPress administrator explicitly approves that request. - Atomic 1-Click Rollback Checkpoints (
McpCheckpoints.php&McpAuditLog.php): Everyupdate_settingsoroptimize_sitecall automatically snapshots your complete prior configuration under an immutablecp_...checkpoint ID and logs the actor, tool name, elapsed milliseconds, and checkpoint reference in Checkpoints & Audit Log. Rolling back to any previous state takes one click inWP Admin—or one command (wp kadicache mcp rollback latest) in WP-CLI!
KadiCache Pulse: Unlimited Multi-Site Fleet Management With Zero Polling#
Whether you manage 2 personal blogs or 100 client WooCommerce stores, KadiCache Pulse connects unlimited Free Core and Cloud Pro sites in one unified console:
- Zero Idle Origin Pressure (
~2 KBEvent-Driven Delta Sync): Unlike legacy hub plugins that ping your WordPress sites every minute, KadiCache Pulse uses lightweight~2 KBevent-driven state deltas—meaning 0.00% background PHP/MySQL polling load on your servers when idle. - Speed Blueprints & Safe Fleet Rollouts: Apply proven configurations (such as WooCommerce High-Traffic Safe, Blog & Publisher Max Speed, or Managed Host Coexistence) across client sites with built-in checkpoint history.
- 7-Day No-Card Cloud Pro Trial & Flat Seat Management: Test 4 Cloud Pro engines plus 2 Pro Local real-browser engines across up to 10 URLs on any verified root domain for 7 days with zero credit card required, manage agency team RBAC roles, and generate instant VAT/tax-ready invoices. Check Pricing & Fleet Plans and our AI MCP, OAuth 2.1 & Checkpoints Guide to get started.
Enterprise Security & Multi-Environment Governance Checklist#
For agencies, enterprise publishers, and managed hosting teams deploying KadiCache MCP across staging and production fleets:
- HTTPS Transport Enforcement:
McpServer.phpchecks live HTTPS readiness (https_readyinwp kadicache mcp status) so OAuth 2.1 authorization codes and Bearer tokens never traverse unencrypted public HTTP links, while allowing local loopback development (localhost/127.0.0.1) cleanly. - Per-Environment Token Separation: Mint distinct, time-bounded tokens (
--days=30) per developer or CI runner rather than sharing a single permanent key—givingMcpAuditLog.phpexact per-actor attribution (actor_label,tool,status,elapsed_ms,checkpoint_id) on every action. - Read-Only Monitoring Agents: Connect automated Slack or uptime bots with
--scopes=readonly so external monitors can queryget_status,get_rum_analytics, anddiagnose_url24/7 with zero permission to mutate settings or purge caches. - WordPress Multisite & Staging Isolation: On WordPress Multisite networks, MCP tokens, OAuth 2.1 grants, and
cp_...rollback checkpoints remain cleanly isolated per subsite so an assistant authorized for a staging or regional subsite never modifies sibling network sites unexpectedly.
Real-World AI Assistant & Agency Workflows With KadiCache MCP#
Because KadiCache MCP exposes structured JSON schemas backed by WordPress runtime truth instead of brittle screen-scraping, engineering teams run complete diagnostic and tuning loops in seconds from Claude Code, Cursor, or Antigravity:
- "Why did
/checkout/or/de/shop/bypass cache?" -> Your AI assistant callsdiagnose_url(readscope), inspects live HTTP headers, cookie classifications, andX-KadiCache-Reasoncodes, and explains whether an active cart cookie, nonce ceiling, or path exclusion triggered the bypass. - "Check our 7-day mobile Core Web Vitals and fix the slowest template safely." -> The assistant reads
kadicache://vitals/rumandget_rum_analytics, runssimulate_settings(configurescope) to preview enabling Delay JS or Preload adjustments, creates an automaticcp_...rollback checkpoint, applies the verified change, and runsrun_pagespeed_audit(operatescope) to confirm the mobile score jump. - "Audit MySQL bloat across staging before Friday’s release." -> The assistant calls
inspect_database(readscope) to report exact candidate row counts across revisions, expired transients, and completed Action Scheduler logs—and if cleanup is requested, queues anap_...approval prompt for human sign-off before deleting a single row. - Instant Emergency Revocation (
McpCli.php): When rotating contractor credentials or offboarding a laptop, runwp kadicache mcp tokensandwp kadicache mcp revoke <id>(orwp kadicache mcp disconnect-all) to invalidate tokens and OAuth 2.1 grants immediately without restarting PHP.
Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.