Overview
Create a WordPress plugin that adds UI to the Gutenberg editor, allowing users to trigger MCP actions (review, proofread, edit, translate, etc.) directly from within WordPress — without switching to the Claude Code terminal.
Architecture
The MCP server becomes a Claude Code Channel, pushing WordPress commands into Claude's context via channel notifications. WordPress acts as the message broker between the browser and the MCP server.
Three connection layers:
- Authentication (
wp_connect / auto-connect) — existing
- Command Listener (SSE primary, REST polling fallback) — new, runs independently of sync loop
- Post Editing (
wp_open_post / Yjs sync) — existing, triggered by commands
Key design decisions:
- Commands scoped to the authenticated WordPress user (single user per Claude Code instance)
- One post at a time (consistent with current MCP design)
- Custom post type (
wpce_command) for command storage (no custom DB tables — WordPress.com compatible)
- Plugin lives in
wordpress-plugin/ subdirectory of this repo
- Bundled plugin zip in npm package for easy installation before wordpress.org listing
Phases
Phase 1: Foundation
Phase 2: Editor UI
Phase 3: Note Enhancements
Phase 4: Installation and Compatibility
Phase 5: Polish
Overview
Create a WordPress plugin that adds UI to the Gutenberg editor, allowing users to trigger MCP actions (review, proofread, edit, translate, etc.) directly from within WordPress — without switching to the Claude Code terminal.
Architecture
The MCP server becomes a Claude Code Channel, pushing WordPress commands into Claude's context via channel notifications. WordPress acts as the message broker between the browser and the MCP server.
Three connection layers:
wp_connect/ auto-connect) — existingwp_open_post/ Yjs sync) — existing, triggered by commandsKey design decisions:
wpce_command) for command storage (no custom DB tables — WordPress.com compatible)wordpress-plugin/subdirectory of this repoPhases
Phase 1: Foundation
Phase 2: Editor UI
Phase 3: Note Enhancements
Phase 4: Installation and Compatibility
Phase 5: Polish