=== FocusWeb MCP ===
Contributors: upi
Tags: mcp, mcp-server, ai-agent, claude, chatgpt
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Secure MCP server for WordPress. Connect Claude, ChatGPT or n8n with OAuth or API keys. Read-only by default, with approvals and an audit log.

== Description ==

FocusWeb MCP turns your WordPress site into an MCP (Model Context Protocol) server, so AI agents such as Claude, ChatGPT, n8n or your own apps can read and manage the site through one secure address.

It is built for site owners and agencies who want AI help without handing an agent the keys to everything.

**Safe by default**

* **Monitor & Guide mode (read-only) is the default.** Connected agents can read and advise, but every tool that changes the site is blocked until an administrator chooses Full access. The current mode is always visible in the admin bar.
* **Approvals for risky actions.** Destructive tools are off by default and, when enabled, wait in an approval queue until an administrator approves them.
* **Full audit log.** Tool calls, approvals, refusals, OAuth sign-ins and access-mode changes are recorded with who, what and when.
* **Every connection acts as a WordPress user** and can never do more than that user's role allows.

**Easy to connect**

* **OAuth sign-in for Claude and other MCP clients.** Paste the connector address shown on the settings page; the client signs in through a WordPress consent screen. Built-in OAuth 2.1 server with dynamic client registration, PKCE, refresh-token rotation and revocation.
* **API keys for automation tools** such as n8n or custom scripts: bound to a user, stored only as a hash, revocable at any time.
* Standard MCP over HTTP (JSON-RPC 2.0, plain JSON responses).

**What agents can work with**

* Posts, pages, media (including uploads), categories, tags and every public custom post type
* WooCommerce products and orders, when WooCommerce is active
* Yoast SEO title, meta description, focus keyphrase, canonical and noindex, when Yoast SEO is active
* Elementor's own AI abilities (Elementor 4.2+, WordPress 6.9+ and the MCP Adapter plugin), with a backup of the page before every Elementor change
* Abilities registered by other plugins through the WordPress Abilities API (WordPress 6.9+): read-only abilities can be enabled, others stay off and need approval
* Every tool can be switched on or off individually under Capabilities & Permissions

FocusWeb MCP does not call any AI service and sends no data to FocusWeb or anyone else. The only outgoing request it ever makes is downloading an image when a connected agent asks to upload media from a URL.

== Installation ==

1. Install and activate FocusWeb MCP from Plugins > Add New.
2. Open FocusWeb MCP > Settings & Status and copy the connector address.
3. In your MCP client (for example Claude: add a custom connector), paste the address and sign in when asked. For automation tools, create an API key under FocusWeb MCP > API Keys and send it as an `Authorization: Bearer` header.
4. When you are ready to let the agent make changes, switch the access mode to Full access on the same page.

== Frequently Asked Questions ==

= Can a connected AI change or delete my content? =

Not until you allow it. New sites start in Monitor & Guide (read-only) mode. In Full access mode, destructive tools are still off by default and go through the approval queue when you enable them. Each connection is also limited to the capabilities of the WordPress user it signed in as.

= Which AI tools work with it? =

Clients that support remote MCP servers over HTTP, for example Claude (claude.ai, Claude Desktop, Claude Code), n8n and custom apps. Clients that cannot sign in with OAuth can use an API key.

= Does the plugin send my data anywhere? =

No. It calls no AI service and has no tracking. Data only leaves your site when an agent you connected asks for it, and those requests are in the audit log.

= I used AI Site Manager before. What happens to my connections? =

FocusWeb MCP is its successor. Install FocusWeb MCP, then deactivate AI Site Manager: your API keys, connected AI agents, settings, approval queue, audit log and Elementor backups are copied over automatically, and the old endpoint address (/wp-json/wp-mcp/v1/mcp) keeps working, so nothing has to be reconnected. AI Site Manager's own data is not changed; you can delete that plugin afterwards.

= Can other plugins' tools run in read-only mode? =

Only if you allow them. In Monitor & Guide mode, this plugin's own read tools always run and anything that changes the site is blocked. Tools added by other plugins are blocked too, unless the plugin declares the tool read-only and you allow that tool under Capabilities & Permissions > In Monitor mode.

= What happens when I delete the plugin? =

Its tables, settings and Elementor backups are removed. Deactivating keeps everything so you can turn it back on later.

== Screenshots ==

1. Settings & Status: the connector address to give your AI agent, and the current access mode (read-only by default).
2. Capabilities & Permissions: every tool with its risk level and its own on/off switch.
3. Audit log: every agent call with key, tool, status and result, including actions blocked by read-only mode.
4. The sign-in screen an AI agent shows when it connects with OAuth.

== Changelog ==

= 1.4.1 =
* First release on WordPress.org as FocusWeb MCP (previously distributed privately as AI Site Manager 1.3.6).
* New: automatic move-over from AI Site Manager. API keys, OAuth clients and tokens, settings, approval queue, audit log and Elementor backups are copied once AI Site Manager is deactivated, and the old endpoint address keeps working.
* Changed: updates now come from WordPress.org; the GitHub update checker is removed.
* Changed: new endpoint address /wp-json/focusweb-mcp/v1/mcp; new API keys start with focumcp_ (older keys keep working).
* Changed: uninstall also removes the access-mode, namespace and import settings, rate-limit data and Elementor backups.
* New: in Monitor & Guide mode, an administrator can allow individual tools that another plugin declares read-only (for example FocusWeb AI Visibility or UpiCRM reports) under Capabilities & Permissions. Off by default.
* Changed: FocusWeb AI Visibility 1.6.0 and 1.6.1 search is recognised as read-only in Monitor mode.
* Changed: admin scripts and styles are loaded as files; the OAuth consent screen is translatable.
* Fixed: abilities from other plugins whose input schema is not a plain object (for example ACF's) are now listed as valid MCP tools, so clients such as Claude no longer reject the whole tool list.
* Security: polling an approval request now only returns it to the user who queued it or to an administrator.

== Upgrade Notice ==

= 1.4.1 =
First WordPress.org release. Coming from AI Site Manager? Install this, then deactivate AI Site Manager; everything is carried over.
