# Gutenberg MCP: block pages, menus and site design from your AI agent

On a block site your AI agent builds and changes Gutenberg pages written as valid blocks, navigation menus, patterns and whole site scaffolds through Widejoin, all in the free plugin. In Direct mode each change applies at once as the agent's WordPress user and keeps its record; with Review first on, it waits in wp-admin.

## Can an AI agent write Gutenberg blocks that the editor accepts?

Widejoin lets your AI agent build Gutenberg pages as valid blocks, plus menus, patterns and site scaffolds, tested on WordPress 7.1.2. All of it is in the free plugin, and hosted [Pro from $99 a year](/pricing/) adds sites, calls and history. To see what an agent can build across a whole site, read the [WordPress AI website builder page](/wordpress-ai-website-builder/).

## Which block and site design tools does Widejoin have?

19 tools: 7 that read and 12 that write, each change with a record, most with a restore. Content, media and theme tools work on block sites too; see [the tools page](/tools/).

- Read: `block-types`, `list-block-patterns`, `list-designs`, `list-fonts`, `list-style-variations`, `read-block-template`, `read-blocks`.
- Write: `prepare-block-template`, `prepare-blocks`, `prepare-font-install`, `prepare-menu`, `prepare-navigation`, `prepare-permalinks`, `prepare-site-identity`, `prepare-site-scaffold`, `prepare-style-variation`, `prepare-synced-pattern`, `prepare-template-revert`, `prepare-widgets`.

## What can it change on a block site?

Post and page drafts, edits to existing and published content, publishing and scheduling, categories and tags, featured images, image uploads with alt text, saved block designs and global styles. For images already in the library, [bulk alt text with an AI agent](/blog/bulk-alt-text/) fills in up to 50 at a time. Block theme drafts with HTML, CSS and theme.json edits are previewed and published by a person in wp-admin, in either mode.

## Can I check a page before it goes live?

Yes, in Review first, or for any change the agent sends with `review: true`. The review page shows the page as a visitor sees it on desktop and on a phone width, and a table of what changed. Approving needs a valid nonce and edit rights, and a draft changed after the review page loaded is refused. In Direct mode the change applies in the agent's call instead, and its page in wp-admin keeps the record.

## How did Direct mode do on a block site?

On 23 October 2026 a fixed script of MCP calls, with no AI model in the loop, built a six page Gutenberg site on Twenty Twenty-Five in Direct mode. It took 38 tool calls and 19 seconds, and 14 changes applied inside the agent's own calls. Three waited for a person: the install allowlist, the Contact Form 7 activation and the contact form, whose mail is on the default ask-before list. The run had no gaps and no errors.

## What can it not do in the block editor?

Edit PHP in a classic theme on the live site, or delete a block theme's style.css, theme.json or templates/index.html. PHP in child theme drafts runs only on an isolated staging runtime before it can be published.

On our lab, a child theme draft with a syntax error in functions.php failed staging, and the publish attempt was refused with the site's theme unchanged. The on-site preview answered 403 for that draft the whole time.

## How do I undo a block edit?

In Direct mode the agent undoes it with one `restore-change` call, and a person can restore it from the change's page in wp-admin. Widejoin also reads native WordPress revisions, so older versions stay reachable.

Related: the [Elementor integration](/integrations/elementor/), the [WooCommerce integration](/integrations/woocommerce/), [how a change works](/how-it-works/) and the [install docs](/docs/).

## Questions

### Will the drafts break in the block editor?

On our lab they reopen as valid blocks and render on desktop and mobile.

### Can it edit my block theme?

Yes, as a theme draft that a person previews and publishes in wp-admin, in either mode. Essential files cannot be deleted.

### Can it schedule posts?

Yes. A scheduled date applies like any other edit, at once in Direct mode or after a person approves it in Review first.

### Can it run PHP on my site?

Not on the live site. Child theme PHP runs on an isolated staging runtime first, and publishing needs a passing run for the exact files.
