Skip to main content
KadiCache
Browse 37 Docs Guides & Search

21-Tool OAuth 2.1 AI MCP Server, Safe Mode Simulator, Checkpoints & Pulse

Complete operational reference for KadiCache’s 21 MCP tools (20 Free Core incl. manage_script_manager + 1 Pro), 11 telemetry resources, 6 guided prompts, OAuth 2.1 + PKCE scopes, Safe Mode sandbox simulation, and 1-click rollback.

Integrations/Mcp/McpServer.phpIntegrations/Mcp/McpCatalog.phpIntegrations/Mcp/Catalog/McpSchemaRegistry.phpIntegrations/Mcp/McpSimulator.phpIntegrations/Mcp/McpCheckpoints.php
WP Admin -> KadiCache -> AI & MCP -> Connect & Quick Setup
MODULE 35 · 2X RETINA
1-Click MCP 2025-06-18 setup snippets for Claude Code, Cursor, VS Code, and Antigravity over Streamable HTTP.2880×1840 WebP
Quick Summary · 30-Second Operational SpecSource-Verified Guide
WP Admin Path
WP Admin -> KadiCache -> AI & MCP (5 Sub-Tabs)
Expected Outcome
21 Typed MCP Tools · 11 Live Resources · 6 Prompts · 1-Click Rollback
Key Marker / Engine
McpServer.php | McpSchemaRegistry.php | McpSimulator.php | McpCheckpoints.php
  • Ships an industry-first Model Context Protocol (MCP 2025-06-18) Streamable HTTP server right inside Free Core (+ Cloud Pro extension)—connecting Claude Code, Claude Desktop, Cursor, VS Code, ChatGPT, Antigravity, and KadiCache Pulse directly to WordPress.
  • Secured by OAuth 2.1 + PKCE (S256) and SHA-256 hashed scoped tokens across 4 strict permission tiers (read, operate, configure, destructive) with rate limiting (McpRateLimiter.php).
  • Zero-Blind-Edits Architecture: McpSimulator.php tests candidate settings and Script Manager rules in memory on live pages before saving, McpApprovals.php gates destructive actions behind human consent (ap_...), and McpCheckpoints.php writes atomic rollback snapshots (cp_...).
  • Exposes 21 typed tools (including manage_script_manager), 11 live JSON/Aurora UI resources, 6 guided diagnostic prompts, and an immutable Audit Log (McpAuditLog.php).
KadiCache AI MCP Governance Pipeline: OAuth 2.1 PKCE Scopes -> McpSimulator Safe Mode -> McpApprovals -> Atomic McpCheckpoints.Click to zoom

Safe AI & Fleet Operations Without Giving Bots Blind Root Access#

Giving an AI coding agent raw SSH or unrestricted wp_options write access on a live WooCommerce store is terrifying: a single hallucinated option could break jQuery on checkout or wipe your CDN cache during peak traffic.

KadiCache solves AI governance from first principles inside WP Admin -> KadiCache -> AI & MCP (McpServer.php, McpCatalog.php, McpSchemaRegistry.php, McpSimulator.php, McpApprovals.php, and McpCheckpoints.php). Every AI assistant and KadiCache Pulse connection operates through typed schemas, sandboxed simulation, human approval gates, and instant 1-click checkpoints.

FIG 01Copying 1-click Streamable HTTP setup snippets for Claude Code, Cursor, VS Code, and Antigravity inside WP Admin -> KadiCache -> AI & MCPZoom 2x

Authentication & The 4 Least-Privilege Permission Scopes (McpOAuth.php & McpTokenStore.php)#

Connect your AI client in 15 seconds either via OAuth 2.1 + PKCE (S256) browser consent (McpConsentRenderer.php) or by minting a Scoped Token (McpTokenStore::mint(), stored solely as a one-way SHA-256 hash with optional day expiration):

MCP Permission ScopeAllowed OperationsSafety Boundary
readRead status, URL diagnostics, Script Manager asset inspection (inspect_url/list_rules), settings (secrets stripped!), preload queue, DB candidate counts, RUM, and Cloudflare analytics100% read-only — cannot mutate any setting or purge cache
operatePurge cache (all / urls), start/pause/resume preload, repair runtime drop-in, probe object cache, and run PageSpeed auditsOperational maintenance without altering optimization configuration
configureRun simulate_settings, apply verified update_settings / optimize_site presets, manage Script Manager rules (simulate_rules/upsert_rules/delete_rules/set_mode), manage Cloudflare settings, and rollback cp_* checkpointsAutomatically creates a McpCheckpoints rollback snapshot (settings + Script Manager rules) before saving!
destructiveQueue clean_database, manage_script_manager reset_all, or full manage_cloudflare purge_zoneStill requires a single-use human approval_token (ap_...) approved by a site admin in WP Admin!
FIG 02Browsing all 21 typed MCP tools, 11 telemetry resources, and 6 guided prompts inside WP Admin -> KadiCache -> AI & MCPZoom 2x

Complete Reference: All 21 KadiCache MCP Tools (McpSchemaRegistry.php)#

#Tool NameRequired ScopeExact Capability & Key Parameters
01get_statusreadLive cache health, Early Drop-In state, Script Manager status, storage usage, 24h/7d hit ratios, RUM 24h p75, preload, CDN/Cloudflare/Varnish & runtime guards
02diagnose_urlreadProbes any same-site url across Desktop & Mobile cache states, anonymous loopback headers, cookies, jQuery inline protection & conflict advice
03get_settingsreadReads sanitized settings (section: all, cache, preload, optimization, lazy, fonts, cloudflare, cdn, bloat, database, advanced) + modified_keys
04get_preload_statusreadSitemap warmup progress, queue counts, pace, uncacheable URLs & discovered XML sitemaps
05inspect_databasereadNon-destructive candidate counts across all 8 DatabaseCleanupItems categories
06get_approval_statusreadPolls whether an administrator approved or denied a gated approval_token (ap_...)
07purge_cacheoperatePurges scope: "all" (with optional preload_after) or up to 50 urls in soft or hard mode
08manage_preloadoperateRuns start, pause, resume, or queue_urls (up to 50 public URLs)
09repair_runtimeoperateRepairs site bootstrap, verifies advanced-cache.php, and optionally runs enable_early
10verify_integrationsoperateLive probe for browser_cache, cloudflare, varnish, cdn, or all
11run_pagespeed_auditoperateRuns Google PageSpeed v5 + CrUX (mobile/desktop, optional compare_bypass: true speedup delta)
12simulate_settingsconfigureSandbox Safe Mode: tests candidate changes in memory on up to 3 public URLs without touching live options or visitor cache!
13update_settingsconfigureValidates, runs simulate_first (default: true), records a cp_* checkpoint, and atomically saves changes
14optimize_siteconfigureBuilds conflict-aware safe, balanced, or woocommerce_safe preset (dry_run supported), simulates, checkpoints, and applies
15rollback_checkpointconfigureAtomically restores KadiCache settings and Script Manager rules from checkpoint_id (cp_... or "latest")
16get_rum_analyticsreadQueries real-visitor p75 Core Web Vitals (1h/24h/7d/30d, mobile/desktop, hit/miss, path, country, culprit selectors)
17manage_cloudflareread / configure / destructiveReads analytics/25 zone settings (get_state), toggles edge_html / wp_waf rules, updates APO, applies preset, or runs purge_zone (ap_* gated)
18manage_object_cacheread / operate / configureRuns get_state, live probe, subsite/full flush, enable, or disable across all 7 drivers + AutoloadAnalyzer
19clean_databasedestructiveQueues bounded cleanup for selected items—strictly gated by owner approval_token (ap_...)
20manage_script_managerread / configure / destructiveAction-scoped Per-Page Script Manager: inspect_url (with is_critical_layout flags & /uploads/ owner mapping), list_rules, simulate_rules (blocks orphaned_dependents & critical_layout_disabled), upsert_rules (with simulate_first: true, auto checkpoint, and signed 10-minute preview_url when testing_mode: true), delete_rules, set_mode, or reset_all (ap_* gated)
21manage_pro_cloudread / operate (Cloud Pro)Inspects Cloud Pro connection status, optimization queue KPIs, and triggers safe page reprocessing

All 11 Live MCP Resources & 6 Guided Diagnostic Prompts#

  • 11 Readable MCP Resources: kadicache://site/status, kadicache://site/settings, kadicache://assets/script-manager, kadicache://diagnostics/runtime, kadicache://analytics/visits, kadicache://vitals/pagespeed, kadicache://vitals/rum, kadicache://edge/cloudflare, kadicache://cloud/status (Cloud Pro), plus interactive Aurora HTML/SVG UI cards (ui://kadicache/card and ui://kadicache/rendered/latest).
  • 6 Built-In Guided Prompts: diagnose-url, safe-speed-tune, boost-hit-ratio, safe-delay-js, safe-script-audit, and analyze-real-user-vitals.
FIG 03Reviewing immutable MCP tool execution logs and 1-click atomic rollback checkpointsZoom 2x

Connecting Unlimited Free Sites to KadiCache Pulse (/pulse)#

Every Free Core and Cloud Pro installation can also link to KadiCache Pulse—giving agencies and multi-site owners a single fleet dashboard displaying cache hit rates, p75 RUM Core Web Vitals, object-cache health, remote purge/preload triggers, and 1-click checkpoint rollbacks via lightweight event-driven deltas (0 background polling load on your WordPress server).

Example Guided Prompt Workflows in Claude Code, Cursor & Antigravity#

Instead of typing multi-step instructions from scratch, invoke any of KadiCache’s 6 built-in MCP prompts directly in your editor (diagnose-url, safe-speed-tune, boost-hit-ratio, safe-delay-js, safe-script-audit, or analyze-real-user-vitals): each prompt instructs the assistant to inspect live telemetry first, validate candidate changes in simulate_settings or manage_script_manager(action="simulate_rules"), and report the resulting checkpoint_id (cp_...).

Frequently Asked Operational Questions

Are raw API keys, Cloudflare tokens, or WordPress salts ever exposed to AI assistants via get_settings?
Never! McpCatalog::toolGetSettings() and kadicache://site/settings return strictly sanitized public configuration booleans and lists—all encrypted tokens, secrets, and salts are completely omitted.
What happens if update_settings detects an unguarded inline jQuery error during simulation?
Because simulate_first defaults to true on update_settings, McpSimulator catches the conflict in memory before writing to wp_options and returns actionable script_advice without breaking your live site!
How do I undo an AI-applied setting or Script Manager change if I change my mind?
Either click Restore next to any cp_... snapshot inside WP Admin -> KadiCache -> AI & MCP -> Checkpoints & Audit Log, ask the AI to call rollback_checkpoint with "latest", or run wp kadicache mcp rollback latest in SSH.
Is the 20/21-Tool MCP Server locked behind a paid plan?
No! All 20 Free Core MCP tools (including manage_script_manager), 10 Free Core resources, 6 guided prompts, OAuth 2.1 + PKCE, Safe Mode simulation, and atomic checkpoints are 100% free in KadiCache Core (with Cloud Pro adding manage_pro_cloud and kadicache://cloud/status).
Does enabling MCP add overhead to normal visitor pageviews?
Zero overhead. Early cached pageviews return before WordPress loads, and MCP routes initialize only when an authenticated request hits the MCP REST endpoint.
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/McpServer.phpapps/wordpress-plugin/src/Integrations/Mcp/McpCatalog.phpapps/wordpress-plugin/src/Integrations/Mcp/Catalog/McpSchemaRegistry.phpapps/wordpress-plugin/src/Integrations/Mcp/McpSimulator.phpapps/wordpress-plugin/src/Integrations/Mcp/McpCheckpoints.php
Was this engineering guide helpful?