Product context
System overview
Section titled “System overview”SitePilot MCP is a self-hosted WordPress policy-enforcement plugin and MCP server. It lets an authorized AI client inspect a site and propose guarded changes without receiving PHP, SQL, shell, filesystem, or server-secret access.
People and systems
Section titled “People and systems”| Actor or system | Relationship to SitePilot MCP |
|---|---|
| WordPress administrator | Installs the plugin, grants credentials and scopes, reviews high-risk changes, and performs rollback. |
| Site operator | Inspects sites, stages drafts, and reviews changes within assigned WordPress capabilities. |
| MCP client or AI agent | Calls the published tool schemas through OAuth or another claimed credential. |
| WordPress Core and database | Authenticate users and persist content, settings, change sets, approvals, snapshots, and audit events. |
| Builder extensions | Elementor, Enfold, Gutenberg, and WooCommerce provide their public runtime APIs and native document formats. |
| Optional orchestration service | Routes explicitly authorized operations through /ops/{ability} but remains outside the WordPress trust boundary. |
Primary journeys
Section titled “Primary journeys”Inspect and stage
Section titled “Inspect and stage”- A client authenticates to the WordPress MCP endpoint.
- The plugin checks the WordPress capability and the credential’s scopes.
- The client inspects site and builder capabilities.
- The client submits a bounded change plan with an idempotency key and expected site version.
- Tier 0 and Tier 1 work remains read-only or draft-only; higher tiers wait for approval.
Approve, execute, and recover
Section titled “Approve, execute, and recover”- WordPress stores an immutable change set and pre-mutation recovery data.
- An eligible WordPress actor approves the exact change-set hash when approval is required.
- The plugin rechecks scope, capability, approval, expiry, and site version before execution.
- Adapters write through public WordPress or extension APIs.
- Validation records the result. Rollback replays compensating operations in reverse order.
Context diagram
Section titled “Context diagram”flowchart LR Agent["MCP client / AI agent"] -->|OAuth or claimed credential| Plugin["SitePilot MCP WordPress plugin"] Admin["WordPress administrator"] -->|Capabilities, approvals, audit review| Plugin Orchestrator["Optional orchestration service"] -->|POST /ops/{ability}| Plugin Plugin --> Core["WordPress Core and database"] Plugin --> Builders["Gutenberg / Elementor / Enfold / WooCommerce"]Related documentation
Section titled “Related documentation”Public normalization derived from product commit 00c30de825b68dc14535f6455e82c927ad256b47, file docs/c4-context.md. See source-manifest.json for the source digest and declared normalization classes.