=== PressMaestro ===
Contributors: supportnotch
Tags: ai, mcp, automation, abilities
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.1.0-beta.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Beta: Safe, token-efficient MCP bridge for AI agents to work on WordPress sites.

== Description ==

PressMaestro gives AI agents (Claude, ChatGPT, Cursor, Codex, and others) a **safe MCP bridge** to do website work on *your* WordPress site. Builder-agnostic: Elementor, Gutenberg, SEO plugins, and similar tools are optional, auto-detected modules.

PressMaestro is a product of Notch Solutions. Use of the PressMaestro name identifies the official publisher; it does not grant a trademark license and does not imply WordPress.org endorsement. GPL rights in the code are unchanged.

**What it does**

* Enrolls AI connections with fixed access ceilings (Connections v2 grants, invitations, OAuth 2.1 + Application Password paths).
* Exposes compact MCP tools (`context`, `discover`, `describe`, `run`, `batch`) behind an enrolled gateway with presets, audit, rate limits, approvals, and a kill switch.
* Supports draft content and page-model edits, **published Elementor pages and Theme Builder templates** via native document get/patch (snapshots + undo; not every Pro widget), Elementor Pro Custom Code when available, media, menus, SEO adapters, maintenance reads, safe updates with rollback, and owner Workboard / Resources review surfaces.
* Bundles on-demand guides via `guide-get` (Elementor draft build, Custom Code, native published documents). Guides grant no permissions. Separate client-side Agent Kit playbooks are published outside this plugin zip when available.

**MCP Adapter**

Requires the [official MCP Adapter](https://github.com/WordPress/mcp-adapter) when available. If it is missing, the site owner can consent to PressMaestro’s built-in namespace-prefixed copy (same MCP URL and gateway). Consent is revocable in Settings.

**Honest limits (read before installing)**

* **Beta (0.1.0-beta.1)** — experimental. Treat production use as owner-gated. Not a claim of full feature parity or WordPress.org approval.
* **Elementor native published edits** are tested on representative pages/templates; not a claim of universal Pro widget coverage.
* **Live GitHub** integration is **not** available in production (fails closed). Local mock evidence only; live tokens remain an owner gate.
* **Revoking** a connection stops future access; it does **not** erase historical plugin rows.
* **Uninstall** attempts best-effort cleanup of plugin-owned state (including Application Passwords discovered from grants and sessions) and fails closed if credential cleanup is incomplete. It is **not** a verified complete wipe of every database/file edge case; agent-written posts/media and `wp-content/pmae-backups/` are retained (delete backups manually if desired).
* WordPress Tools → Erase Personal Data does **not** remove PressMaestro tables (no exporters/erasers registered).
* No plugin phone-home telemetry and no mandatory Notch cloud service. Direct updates come from Notch release zips until/unless listed on WordPress.org (no custom Update URI in this package).
* External requests happen only when the owner/agent asks (e.g. media upload-from-URL, optional MCP Adapter install from wordpress.org/GitHub, invitation email via site `wp_mail`).

Official product page: https://notchsolutions.com/pressmaestro — Support / security: support@notchsolutions.com

== Installation ==

1. Install and activate the official **MCP Adapter** plugin (recommended).
2. Upload the `pressmaestro` folder to `/wp-content/plugins/` (or install from a release zip).
3. Activate PressMaestro.
4. Open **PressMaestro → Connections → Create connection**, then **Add AI agent** on that connection (or accept an invitation under **My connections**) and point your MCP client at `/wp-json/pressmaestro/v1/mcp`.
5. Always start agents with a site `context` read before writes. Prefer draft / preview modes until you trust the connection.

If MCP Adapter is absent, Overview offers Install (recommended) or a one-time consent screen for the built-in server.

== Frequently Asked Questions ==

= Is this production-ready? =

No. This is a **beta**. Write safety includes drafts, snapshots, undo, publish with approvals, and a kill switch — still treat live sites as an owner decision.

= Do I need to Composer-require mcp-adapter? =

No. Install the standalone MCP Adapter plugin. Bundling third-party adapters via Composer is deprecated upstream.

= Does uninstall erase everything? =

No. Uninstall is **best-effort** cleanup of plugin-owned tables/options/meta/files and Application Password refs. Revoke ≠ erase history. Complete wipe on a real database is not claimed here. `wp-content/pmae-backups/` and agent-created content stay unless you remove them yourself.

= Does PressMaestro send my site data to a vendor cloud? =

There is no PressMaestro telemetry phone-home. Enrolled agents receive only the site data their tools request. Optional owner-triggered Adapter install may download from wordpress.org or GitHub. Media upload-from-URL makes outbound requests only when asked.

= Are the Agent Kit playbooks installed into WordPress? =

No. Agent Kit Markdown playbooks ship separately from this plugin zip (client-side). Bundled Elementor draft-build and Custom Code guides inside the plugin are readable via `guide-get` (allowlisted ids only). Guides grant no permissions.

= Is live GitHub supported? =

Not in production. Production resolves to unavailable; mock providers are for local tests only.

== Screenshots ==

1. Overview — site status, MCP endpoint, and connection health.
2. Add an AI agent — guided setup for an issued connection.
3. Connections — create and manage connections (empty state shown).
4. Approvals — administrators decide agent publish/update requests.
5. Settings — kill switch, built-in MCP consent status, rate limit and audit retention.

== Changelog ==

= 0.1.0-beta.1 =
* Public beta packaging for direct distribution via Notch: GPL `LICENSE`, `COPYRIGHT.md` / `THIRD_PARTY_NOTICES.md`, beta labeling. Experimental — not WordPress.org approved.
* Native Elementor document get/patch for published pages and Theme Builder templates (`elementor-document-get` / `elementor-document-patch`) with snapshots/undo; pm-patch remains draft-only compact abstraction (ELEM-002).
* Elementor Pro Custom Code inspect/update retained for enrolled code-tier connections (CODE-001).
* Contributors `supportnotch`, Plugin/Author URI, Agent Kit not claimed inside the zip, Update URI omitted.
* Align GA4 inventory stringFilter schema with Site Kit validator (omit unsupported `caseSensitive`).
* OAuth token errors use RFC 6749 JSON; refresh mints before rotate.
* Prior 0.1.0-dev aggregate reporting, report-access recovery, and Connections v2 work retained.

= 0.1.0-dev =
* Aggregate WooCommerce Analytics and Site Kit reporting (inventory/query, access recovery, pagination/data_quality honesty).
* Native Elementor Pro Custom Code inspect/update (`elementor-snippet-get` / `elementor-snippet-update`) and Elementor draft create + guides via `guide-get`.
* Connections v2 (grants, invitations, Connect wizard, permission acceptance) plus Workboard/Resources.
* MCP Adapter one-click install + built-in fallback with owner consent; core MCP gateway (context/discover/describe/run/batch), drafts/snapshots/undo, approvals, lifeline rescue, content/media/menus/SEO, page model, maintenance and safe updates.
* Privacy/uninstall honesty in listing copy; Agent Kit remains client-side outside the plugin zip; live GitHub unavailable in production.

Full per-commit history lives in the project git repository. This trimmed section is for wordpress.org readme parser length limits.
