Skip to main content
KadiCache
Commerce & Pulse MCPFree Core

21-Tool OAuth 2.1 AI MCP & KadiCache Pulse

Ships a full OAuth 2.1 + PKCE (S256) Model Context Protocol server with 20 Free Core tools (+1 Pro = 21 total), 11 live telemetry resources, 6 guided prompts including safe-script-audit, Safe Mode simulation before saving, human-in-the-loop approvals, and atomic 1-click checkpoints.

Native OAuth 2.1 MCP
21 Tools
Verified Source Entry
apps/wordpress-plugin/src/Integrations/Mcp/McpSimulator.php
Verified Engine Capabilities

Engineered for zero regressions.

  • 20 Free Core MCP tools (+1 Pro), 11 resources & 6 prompts covering cache, Cloudflare, Object Cache, RUM, PageSpeed & Script Manager
  • McpSimulator tests settings and Script Manager rules in isolated Safe Mode before publishing to visitors
  • McpCheckpoints writes atomic snapshots (settings + Script Manager rules) for instant 1-click rollback
  • Zero-polling KadiCache Pulse connects unlimited Free sites via 2 KB event-driven deltas
Managing Scoped MCP Credentials & Rollbacks via WP-CLI (McpCli.php)
# 1. Inspect MCP endpoint readiness, active token count, OAuth grants & checkpoints
wp kadicache mcp status --format=json

# 2. Mint a 30-day SHA-256 scoped token (secret shown once, stored hashed)
wp kadicache mcp mint --label="Claude Code Ops" --scopes=read,operate,configure --days=30

# 3. Inspect immutable MCP audit trail & restore the latest settings checkpoint
wp kadicache mcp activity --limit=25
wp kadicache mcp rollback latest
Inside the KadiCache WordPress Plugin

21-Tool OAuth 2.1 AI MCP & KadiCache Pulse — Plugin Interface

8 live 2x Retina plugin screens
KadiCache Pulse -> Fleet Overview
MODULE 16 · 2X RETINA
Manage unlimited Free Core and Cloud Pro WordPress sites from one zero-idle-load fleet overview with 2 KB event-driven delta sync.2880×1840 WebP
100% Source-Code Verified10 min engineering readUpdated 2026-11-23
Executive Summary · 30-Second SpecZero-Regressions Spec
WP Admin Path
WP Admin -> KadiCache -> AI & MCP
Measured Impact
20 Typed MCP Tools · OAuth 2.1 PKCE · 1-Click Rollback
Verification Marker
/wp-json/kadicache/v1/mcp | /.well-known/oauth-protected-resource
  • Ships a native Model Context Protocol (MCP 2025-06-18) Streamable HTTP server inside Free Core exposing 20 typed tools (19 Free Core + 1 Cloud 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_... in McpApprovals.php), and atomic 1-click rollback snapshots (cp_... in McpCheckpoints.php).
  • Pairs with KadiCache Pulse (/pulse) for managing unlimited Free Core and Cloud Pro sites via lightweight ~2 KB event-driven delta sync with zero idle cron polling.
Table of Contents (7 sections)

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:

  1. OAuth 2.1 + PKCE (S256) Interactive Consent (McpOAuth.php): Supports RFC-compliant /.well-known/oauth-protected-resource discovery 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.
  2. 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 irreversible SHA-256 hash 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 ScopeAllowed OperationsRepresentative Typed MCP ToolsBuilt-In Safety Guardrail
readRead-only status, headers, RUM, settings & DB countsget_status, diagnose_url, get_settings, get_preload_status, inspect_database, get_rum_analytics, get_approval_statusZero state mutation; redacts encrypted API secrets
operateRoutine cache purges, preload queues, repairs & auditspurge_cache, manage_preload, repair_runtime, verify_integrations, run_pagespeed_audit, manage_object_cacheUses Soft Purge defaults & non-destructive runtime repair
configurePreviewing, updating, optimizing & rolling back settingssimulate_settings, update_settings, optimize_site, manage_script_manager, rollback_checkpoint, manage_cloudflare, manage_pro_cloudAuto-creates cp_... rollback checkpoint before saving
destructiveBounded database cleanup & full purge resetsclean_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.

FIG 01Immutable MCP tool execution log and 1-click configuration rollback snapshots inside WP Admin -> KadiCache -> AI & MCPZoom 2x

Three Production Safety Nets: Simulator, Human Approvals & Checkpoints#

Every AI-driven or remote configuration workflow inside KadiCache passes through three deterministic safety layers:

  1. Dry-Run Settings Simulator (McpSimulator.php -> simulate_settings): Before applying any configuration change, an AI assistant calls simulate_settings to compute an exact side-by-side setting diff, purge impact (Soft Purge vs none), and compatibility warnings (for example, verifying active WooCommerce cart policies or host Coexistence Mode) without writing a single byte to production.
  2. Human-in-the-Loop Approval Gate (McpApprovals.php): High-impact or destructive actions pause automatically and mint a pending approval request (ap_...) visible inside WP Admin -> KadiCache -> AI & MCP. Execution cannot proceed until a logged-in WordPress administrator explicitly approves that request.
  3. Atomic 1-Click Rollback Checkpoints (McpCheckpoints.php & McpAuditLog.php): Every update_settings or optimize_site call automatically snapshots your complete prior configuration under an immutable cp_... 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 in WP 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 KB Event-Driven Delta Sync): Unlike legacy hub plugins that ping your WordPress sites every minute, KadiCache Pulse uses lightweight ~2 KB event-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.php checks live HTTPS readiness (https_ready in wp 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—giving McpAuditLog.php exact 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=read only so external monitors can query get_status, get_rum_analytics, and diagnose_url 24/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 calls diagnose_url (read scope), inspects live HTTP headers, cookie classifications, and X-KadiCache-Reason codes, 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/rum and get_rum_analytics, runs simulate_settings (configure scope) to preview enabling Delay JS or Preload adjustments, creates an automatic cp_... rollback checkpoint, applies the verified change, and runs run_pagespeed_audit (operate scope) to confirm the mobile score jump.
  • "Audit MySQL bloat across staging before Friday’s release." -> The assistant calls inspect_database (read scope) to report exact candidate row counts across revisions, expired transients, and completed Action Scheduler logs—and if cleanup is requested, queues an ap_... approval prompt for human sign-off before deleting a single row.
  • Instant Emergency Revocation (McpCli.php): When rotating contractor credentials or offboarding a laptop, run wp kadicache mcp tokens and wp kadicache mcp revoke <id> (or wp kadicache mcp disconnect-all) to invalidate tokens and OAuth 2.1 grants immediately without restarting PHP.
Gergis — Lead Systems & Cache Architect
Principal WordPress & Cloud Edge Architect
E-E-A-T Source Verified

Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.

apps/wordpress-plugin/src/Integrations/Mcp/Catalog/McpSchemaRegistry.phpapps/wordpress-plugin/src/Integrations/Mcp/McpSimulator.phpapps/wordpress-plugin/src/Integrations/Mcp/McpCheckpoints.phpapps/wordpress-plugin/src/Integrations/Mcp/McpApprovals.phpapps/wordpress-plugin/src/Cli/McpCli.php

Technical FAQ

Is the 20-tool OAuth 2.1 AI MCP Server included free in KadiCache Core?

Yes! The complete MCP 2025-06-18 Streamable HTTP server (20 Free Core tools including manage_script_manager, plus manage_pro_cloud when Pro is active = 21 total), OAuth 2.1 + PKCE authorization, SHA-256 scoped tokens, Safe Mode dry-run simulator, human approval gates, and 1-click rollback checkpoints are included 100% free in KadiCache Core.

How are MCP tokens stored in the WordPress database?

Raw MCP tokens are never stored in plaintext. KadiCache hashes every token with SHA-256 at creation time (showing the secret only once when minted), enforces granular read/operate/configure/destructive scopes, and supports instant revocation via WP Admin or wp kadicache mcp revoke.

Can an AI assistant accidentally delete database rows or wipe my settings without permission?

No. Destructive operations require both the destructive scope and an explicit human owner approval token (ap_...), while every configuration change automatically creates a cp_... checkpoint that you can roll back in one click.

Which AI coding assistants and IDEs work with KadiCache MCP?

Any MCP 2025-06-18 compatible client works out of the box—including Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Antigravity, and KadiCache Pulse.

Does connecting my sites to KadiCache Pulse slow down my WordPress hosting server?

Zero slowdowns. KadiCache Pulse uses ~2 KB event-driven delta updates instead of background cron polling, adding 0.00% idle CPU or database load to your origin server.

How many Free Core WordPress sites can I connect to KadiCache Pulse?

Unlimited Free Core sites forever at $0—you only need a Cloud Pro seat on sites where you choose to enable Cloud Pro CSS, LCP, Layout Stability, Lazy Render, WebP, and Cloud Font engines.