
Spoko Content Editor for MCP
v2.0.2spokospace · 2026年11月24日 上架
Lets AI agents read and edit posts block by block over MCP, with a hash check, a dry run and a revision on every save.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 41
- 最近更新
- 2026年11月24日
贡献者
Spoko Content Editor for MCP gives AI agents (Claude, Cursor or any other MCP client) safe, block-level tools for WordPress content. It runs on the official MCP Adapter and the Abilities API that ships with WordPress 6.9.
An agent that rewrites a whole post to change one paragraph can break blocks it never meant to touch, or overwrite an edit someone made a minute ago. This plugin gives it smaller, safer steps:
- Edit one block, not the whole post. Blocks are addressed by a path (for example
12.0.3), so a change replaces, inserts, moves or deletes exactly that block and leaves the rest of the post byte for byte. - No lost edits. Every read returns a content hash and every write needs it. If the post changed in the meantime, the write is refused.
- Look before you save. Every write takes
dry_run. - Always a way back. Every save is a normal post update with a revision.
- Valid blocks only. Before saving, the new content is checked for broken block structure; if the check fails, nothing is saved.
Tools
find-posts: search posts and pages by title, slug or ID.get-outline: the block tree with paths, names and text previews, plus the content hash.get-blocks: the markup of blocks by path.validate-post: report broken block structure.find-media: search the media library.replace-block,insert-blocks,delete-block,move-blocks,unwrap-block: edit blocks by path.link-images: link every unlinked image of a post to its full-size file, so a lightbox can open it.
Every tool runs with the capabilities of the WordPress user the agent signs in as (edit_post for the post, upload_files for the media library). The plugin adds no settings screen and stores no data of its own.
Headless sites
If your frontend serves the uploads under its own address, link-images can link there instead of to WordPress. Set the address in wp-config.php:
define( 'SPOKO_CONTENT_MCP_MEDIA_BASE', 'https://example.com/images' );
or with the spoko_content_mcp_media_base filter. Older media hosts to rewrite as well can be added with the spoko_content_mcp_media_aliases filter.
Development happens on GitHub. Made by spoko.space.