=== WP Claude Bridge ===
Contributors: duck-empire
Tags: rest-api, automation, ai, claude, mcp
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Stable tag: 1.0.0-rc7
License: MIT
License URI: https://opensource.org/licenses/MIT

Secure bridge that lets Claude Code (via the claude-wp-mcp server) manage WordPress content, SEO, analytics and code remotely.

== Description ==

WP Claude Bridge exposes a REST API protected by short-lived, scoped JWT tokens. Pair it with the `claude-wp-mcp` server on your local machine and Claude Code can read, write, audit and operate the site through scoped tools.

This is the Phase 0 release: foundations only. The full feature set (content, media, SEO, analytics, code, site building) lands across phases 1–6. See the project documentation for the roadmap.

== Installation ==

1. Upload the plugin folder to `wp-content/plugins/`.
2. Activate via `Plugins`.
3. Open `Settings → WP Claude Bridge`. Copy the suggested `WPCB_JWT_SECRET` line into `wp-config.php`.
4. Reload the page and generate a token. Save it — it is shown once.
5. Install the `claude-wp-mcp` server on your machine and register it with Claude Code.

== Frequently Asked Questions ==

= Where is the JWT secret stored? =

In `wp-config.php` only. Never in the database.

= How do I revoke a leaked token? =

Open `Settings → WP Claude Bridge → Active tokens → Revoke`. The token is rejected immediately on the next request.

== Changelog ==

= 0.1.0-dev =
* First skeleton: REST namespace, JWT auth, audit log, admin page, `wp_health_check` MCP tool.
