Add @wordpress/editor-mcp: MCP server for the Site Editor#77046
Closed
dinhtungdu wants to merge 2 commits into
Closed
Add @wordpress/editor-mcp: MCP server for the Site Editor#77046dinhtungdu wants to merge 2 commits into
dinhtungdu wants to merge 2 commits into
Conversation
Implements an MCP (Model Context Protocol) server that gives AI agents structured access to the Gutenberg Site Editor via 15 tools: - Block CRUD: get/insert/update/remove/replace blocks - Editor state: get state, open documents, save, export - Block catalog: lookup block schemas from block-library - Styles: read/write theme.json global styles - Visual: screenshots, computed layout (CDP only) - Parsing: validate block markup Two transports: - CDP: connects to live browser via Chrome DevTools Protocol, executes wp.data selectors/dispatchers for real-time editing - REST: headless mode via WP REST API for batch/CI workflows CLI: npx @wordpress/editor-mcp --cdp ws://localhost:9222 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Size Change: 0 B Total Size: 7.74 MB ℹ️ View Unchanged
|
|
Flaky tests detected in d7ca7c2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23975053204
|
- Add context=edit to REST template requests so raw content is returned - Preserve namespaced block names (e.g. woocommerce/product-title) in REST markup parser instead of blindly prefixing with core/ - Pass full CDP target URL when a specific WebSocket path is provided, so the correct browser tab is targeted Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just experimenting for now...