WP Manifestindependent plugin directory
manifest / ai / lh-mcp-block-transformer

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

0stars
0forks

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.zip

Converts 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

  1. Upload and activate the plugin.
  2. From the plugin directory, run composer install to fetch automattic/blocks-engine-php-transformer (requires PHP 8.1+).
  3. 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/