LH MCP Block Transformer
Converts HTML or Markdown content into native Gutenberg block markup (and back) via automattic/blocks-engine-php-transformer, exposed as MCP abilities for AI-authored content.
by Peter Shaw · github.com/lhero-org/lh-mcp-block-transformer · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lhero-org/lh-mcp-block-transformer/archive/refs/heads/main.zipConverts content between HTML, Markdown and native Gutenberg block markup, in both directions, exposed as MCP abilities for AI-authored content. It can also convert and save an existing post's content in one server-side step, so block markup never has to be transcribed by hand. Backed by automattic/blocks-engine-php-transformer.
Installation
- Upload and activate the plugin.
- From the plugin directory, run
composer installto fetchautomattic/blocks-engine-php-transformer(requires PHP 8.1+). - Flush the object cache / opcache if applicable.
Step 2 is required, not optional housekeeping. The transformer is a Composer dependency rather than bundled code, and vendor/ is deliberately not committed to this repository, so a fresh clone has no library at all until that command is run. Three of the four abilities return a clear error until it is present. Repeat it after any WordPress zip install, since that wipes vendor/.
Documentation
Full documentation: https://lhero.org/portfolio/lh-mcp-block-transformer/
Changelog: https://lhero.org/portfolio/lh-mcp-block-transformer/changelog/