| 开发者 | anselbrandt |
|---|---|
| 更新时间 | 2026年10月2日 01:07 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
agent-publisher/get-capabilities (read-only): what the site allowsagent-publisher/list-terms (read-only)agent-publisher/get-post (read-only; any status, including published)agent-publisher/create-post (as a draft, for review, or published in one step with its featured image)agent-publisher/update-draft-postagent-publisher/upload-mediaagent-publisher/find-media (read-only: find images in the Media Library)agent-publisher/request-upload (a one-time link where the user uploads their own image)agent-publisher/get-upload (read-only: the image from an upload link)agent-publisher/submit-for-reviewagent-publisher/publish-post (publish now or schedule)agent-publisher/unpublish-postagent-publisher/update-published-post (including replacing the featured image)/wp-json/wp-abilities/v1/; read-only abilities use GET, the others POST) and, as one MCP tool each, at the plugin's MCP endpoint /wp-json/acadium-agent-publisher/mcp for clients such as claude.ai, Claude Desktop and Claude Code.
For developers
Filters:
agent_publisher_post_types: post types the post abilities work on (default: post).agent_publisher_post_meta: custom field keys agents may read and write (default: none).agent_publisher_upload_mimes: accepted image types (default: JPEG, PNG, GIF, WebP).agent_publisher_max_upload: maximum upload size in bytes (default: 10 MB).Only if you choose "Publish" or "Publish and edit live posts" under Settings > Agent Publisher. By default it can only create drafts, and a person publishes them.
No. The AI Agent role has no publishing capabilities, so the regular REST API refuses to publish or edit live posts for it in every mode. Only this plugin's abilities can do that, after checking your settings.
Yes. Turn on "Allow OAuth connections" under Settings > Agent Publisher and add your site as a custom connector in claude.ai. Connectors added there are also available in the Claude mobile apps.
No. The plugin includes the official MCP Adapter (https://github.com/WordPress/mcp-adapter) library. If the MCP Adapter plugin, or another plugin that includes it (such as WooCommerce), is also active, WordPress loads the newest copy once, so they do not conflict. The MCP Adapter's default endpoint, /wp-json/mcp/mcp-adapter-default-server, keeps working for connections made with version 1.2 or earlier.
Only administrators. The connection always acts as the AI Agent user the administrator picks, never as the administrator. Disconnect it under Settings > Agent Publisher > Connected apps.
No. It does not contact any server on its own. The upload ability downloads an image only when the agent supplies an image URL, and only from public https addresses. With OAuth on, apps such as claude.ai call your site's OAuth endpoints; your site does not call them.
They are published by WordPress' scheduler (WP-Cron), like posts you schedule yourself. If your site disables WP-Cron, make sure a server cron job runs it.
Revoke the agent's Application Password under Users > (agent) > Application Passwords, or delete the agent user. Deactivating the plugin removes the abilities.
Check that "Allow OAuth connections" is on and that https://your-site/.well-known/oauth-authorization-server shows a JSON document. OAuth discovery requires WordPress to be installed at the root of its domain, not in a subdirectory. A firewall or CDN must pass /.well-known/ and /agent-publisher-oauth/ requests to WordPress, and must forward the Authorization header.
Your web server may be removing the Authorization header, which is common with Apache and CGI/FastCGI. Add SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 to your .htaccess, and make sure security plugins allow Application Passwords and REST API access for logged-in users.
create-post replaces create-draft-post. In one call it creates the post with categories, tags and a featured image (featured_image uploads it), and can submit it for review or publish or schedule it when the site mode allows. An agent now needs one approval for a finished post instead of up to three.create-post creates nothing (including the uploaded image), so the agent can fix its input and try again./wp-json/acadium-agent-publisher/mcp lists each ability as its own tool. The MCP Adapter default endpoint keeps working, including with OAuth.