Early idea — this will need significant exploration before building. The questions below need answers and the scope may change substantially during investigation.
Explore integrating MCP prompts into Gutenberg's Command Center (Cmd+K / Ctrl+K) via the @wordpress/commands package, so users can trigger Claude actions without opening the sidebar.
Commands to Register
Register commands using wp.data.dispatch('core/commands') or the useCommand hook:
- "Proofread with Claude" — submits
proofread command
- "Review with Claude" — submits
review command
- "Edit with Claude..." — opens a prompt for editing focus, then submits
edit command
- "Translate with Claude..." — opens a prompt for target language, then submits
translate command
- "Respond to notes with Claude" — submits
respond-to-notes command
- "Draft with Claude..." — submits
draft command (this one creates a new post, so it works differently from the sidebar actions which operate on the current post)
Exploration Questions
- How well does
@wordpress/commands support commands that need follow-up input (language, editing focus, topic)? Can we open a modal from a command, or does the command palette handle sub-prompts?
- Should
draft create a new post in a new tab, or navigate away from the current editor? How does the MCP handle this (it would need to create the post and then open it)?
- Should commands be contextual (only registered when Claude is connected), or always visible with a "Claude not connected" error on invocation?
- Can we register commands on non-editor screens (e.g., Posts list) for actions like
draft?
Acceptance Criteria
Part of #28.
Explore integrating MCP prompts into Gutenberg's Command Center (
Cmd+K/Ctrl+K) via the@wordpress/commandspackage, so users can trigger Claude actions without opening the sidebar.Commands to Register
Register commands using
wp.data.dispatch('core/commands')or theuseCommandhook:proofreadcommandreviewcommandeditcommandtranslatecommandrespond-to-notescommanddraftcommand (this one creates a new post, so it works differently from the sidebar actions which operate on the current post)Exploration Questions
@wordpress/commandssupport commands that need follow-up input (language, editing focus, topic)? Can we open a modal from a command, or does the command palette handle sub-prompts?draftcreate a new post in a new tab, or navigate away from the current editor? How does the MCP handle this (it would need to create the post and then open it)?draft?Acceptance Criteria
Cmd+K)@wordpress/datastore and hooks from AI Actions sidebar panel #32Part of #28.