Make WordPress Core

Opened 4 weeks ago

Last modified 13 days ago

#66323 new enhancement

MCP setup on the Connectors screen

Reported by: bacoords Owned by:
Priority: normal Milestone: 7.3
Component: AI Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses:

Description

Problem

Settings → Connectors is WordPress's central place for setting up integrations and even promotes AI experiments and third-party proprietary AI connectors (with no inherent functionality).

The official MCP Adapter is now available in the WordPress.org plugin directory, but a site owner who wants to connect an MCP client still has to discover the adapter, find the correct endpoint for their site, create an Application Password, and translate those details into a client-specific configuration. Activating the plugin does not currently provide that path on the Connectors screen.

This is a different task from choosing which WordPress abilities are exposed over MCP. The proposed card helps a person connect a client to their own site; exposure controls can remain with the adapter or another dedicated interface.

Proposal

Add a first-party "WordPress MCP" card to Settings → Connectors. The card would guide an authorized user through:

  1. Installing and activating the official MCP Adapter (mcp-adapter) from the WordPress.org plugin directory through an explicit "Install and activate" action when it is missing, or an "Activate" action when it is installed but inactive. Use Core's existing Plugins REST API and normal installation and activation permissions. Show a useful explanation when installation is unavailable (for example, file modifications are disabled).
  2. Showing the site's actual MCP endpoint and whether Application Passwords are available for the current user. Resolve the endpoint from the active adapter/server registration so subdirectory installs and plain permalinks work.
  3. Choosing an MCP client and creating a separately named, revocable Application Password for that client through WordPress's existing API, only after the user requests it. Provide a copyable configuration for supported clients and a link to revoke the credential from the user's profile. (This part is debatable, perhaps it's just a link to the plugin documentation which can be updated more frequently.)
  4. Explaining what to do next, including a first test to run in the selected client and the "connected but no abilities available" state. Link to the adapter's documentation or diagnostics where appropriate.

The card should use the existing Connectors UI and WordPress design-system components. It should distinguish "adapter installed" and "ready to connect" from a verified client connection; merely showing an endpoint is not proof that a client has connected.

Application Passwords inherit the permissions of the WordPress account that creates them. The setup flow should make that clear, show the generated secret only at creation, and avoid storing it in connector settings or exposing it in subsequent page loads. If Application Passwords are unavailable, the card should explain the reason where WordPress can determine it and provide an actionable next step.

Why in Core?

Core owns the Connectors screen and already provides a path for discovering and installing connector plugins. A guide supplied only by MCP Adapter or AI Experiments cannot appear before the plugin is installed, which leaves the first step undiscoverable. A first-party MCP card would make the site-to-client setup available in the same place before and after installation. The MCP server would still come from the optional MCP Adapter plugin; this proposal does not add an MCP server to Core. It also allows plugins to remove their own custom MCP setup instructions and settings pages and centralize on one UI entry point.

The working prototype below demonstrates the flow on the Connectors screen. It registers a non-credential connector and adds a custom card, but relies on experimental @wordpress/connectors JavaScript exports. Core can use the prototype to test the interaction while settling the final ownership of client configuration templates and adapter status data.

Prototype: ​https://github.com/bacoords/mcp-connection-guide
Live WordPress Playground demo: ​https://playground.wordpress.net/?blueprint-url=https%3A%2F%2Fraw.githubusercontent.com%2Fbacoords%2Fmcp-connection-guide%2Fmain%2Fblueprint.json
Screenshots: ​https://github.com/bacoords/mcp-connection-guide/tree/main/docs/screenshots

Suggested acceptance criteria

  • The card is discoverable on Settings → Connectors and can install/activate the official MCP Adapter from the plugin directory when the user has the required capabilities. No plugin installation occurs merely from viewing the page.
  • Missing adapter, inactive adapter, failed installation, disabled file modifications, unavailable Application Passwords, and insufficient permissions each have a clear state and next step.
  • The endpoint is derived from the registered MCP server and works for subdirectory installs and plain permalinks.
  • Creating a credential requires an explicit action. A separate Application Password can be named for each client; its value is shown once, is not saved in Connector settings, and has a clear revocation path.
  • Generated setup instructions use the active site's endpoint and supported authentication method. They are accessible, keyboard-operable, localizable, and built with existing WordPress UI components.
  • A site with no abilities exposed over MCP has an understandable explanation rather than appearing silently broken.

Related work

Attachments (2)

mcp-connectors-adapter-ready.png​ (152.0 KB ) - added by bacoords 4 weeks ago.
Screenshot - connector ready
mcp-connectors-card.png​ (127.8 KB ) - added by bacoords 4 weeks ago.
Screenshot - connector card

Download all attachments as: .zip

Change History (10)

@bacoords
4 weeks ago

Screenshot - connector card

This ticket was mentioned in ​Slack in #core-ai by bacoords. ​View the logs.


4 weeks ago

#2 @gziolo
4 weeks ago

  • Milestone Awaiting Review → 7.3

This ticket was mentioned in ​PR #14348 on ​WordPress/wordpress-develop by ​@iamadisingh.


4 weeks ago
#3

  • Keywords has-patch has-unit-tests added

Registers the MCP Adapter as a default mcp_server connector so MCP setup is discoverable from the Connectors screen, reusing the existing install/activate flow. The connector uses authentication => none, so no credential is stored in connector settings.

Also exposes applicationPasswords availability (isSupported, isAvailable, isAvailableForUser, canCreate, username, profileUrl) in the Connectors script module data, so the UI can create an Application Password on request and explain why it's unavailable when it can't.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Sonnet 5.5
Used for: Draft implementation, tests, and this description; final code and tests were reviewed and verified by me.

This ticket was mentioned in ​Slack in #core-ai by gziolo. ​View the logs.


3 weeks ago

This ticket was mentioned in ​Slack in #core-ai by euthelup. ​View the logs.


3 weeks ago

#6 @euthelup
3 weeks ago

I'd like to propose a different shape for this, with the same goals and acceptance criteria.

The MCP Adapter isn't really a connector. Every connector today is a service this site uses: OpenAI, Anthropic, Google, Akismet. The screen says so too: "All of your API keys and credentials are stored here and shared across plugins." MCP goes the other way. It lets outside agents connect to this site, and it stores no credential here. The connector in ​PR 14348 even registers with authentication => none.

What a site owner actually decides is whether agents can connect at all. That's an on/off choice, closer to the old XML-RPC "Remote Publishing" setting than to an API key. A card with Install, Activate and Set up also has no way to turn it back off.

Proposal: give MCP its own panel on the Connectors screen, under the AI plugin callout and above the connector cards, with one toggle: "Allow AI agents to connect".

  • Turning it on installs the MCP Adapter if needed and activates it. Turning it off deactivates it. Nothing is installed just from viewing the page.
  • While it's on, the panel shows the endpoint and how apps sign in with an Application Password.
  • It's built with DataForm (a card with a toggle field), the same pattern as Gutenberg's experiments page, and in line with the plan to use DataForm for connector forms.
  • The page gets two tiers: panels for what the site does on top, cards for the credentials it uses below.
  • In my opinion, the OAuth buttons should not be on top; they depend on each provider, and they should be enabled after their plugin is installed.

Here is a disposable PR with what I want to say/propose (It also includes a video preview): ​https://github.com/WordPress/gutenberg/pull/85305

#7 @raftaar1191
3 weeks ago

Replying to euthelup:

Agreed that the MCP Adapter isn't really a connector. I'd go one step further than a panel, though: I think MCP should get its own menu.

The toggle framing works today because the adapter is new. It won't stay a single on/off choice. Once agents can connect, a site owner has to decide which abilities are exposed and to whom, see diagnostics for the "connected but no abilities" state, review what agents actually called, and name and revoke per-client credentials. That is a settings surface, not a card — and the Connectors screen is explicitly about "API keys and credentials stored here and shared across plugins", which none of it is.

It's also worth noting that the exposure half is already being proposed separately in ​AI PR 992 and the onboarding half in ​adapter issue 369. Two halves of the same screen living in two plugins is itself an argument that MCP needs one home rather than a section borrowed from another screen.

So: a dedicated MCP menu that owns setup, exposure, and diagnostics, with Connectors keeping a small pointer to it so it stays discoverable where people look first.

We don't have to settle this in Core first, though. We can experiment with it in the MCP Adapter plugin itself — add the menu there, move endpoint setup, Application Password creation, and ability exposure under it, and see how the information architecture holds up once real settings are in it. That gives us an actual answer instead of a guess: if it works, Core can adopt the shape with evidence behind it, and if a panel on Connectors turns out to be enough, nothing is lost.

#8 @iamadisingh
13 days ago

Thanks @euthelup for ​https://github.com/WordPress/gutenberg/pull/85305. The point that MCP is inbound, agents connecting to this site rather than a service the site uses, is a fair one, and a single on/off is a clearer model than Install → Activate → Set up. I'm happy to fold the application password part into #85305 (​https://github.com/WordPress/gutenberg/pull/85305) if that's the preferred directionor, or to adapt#84983(​https://github.com/WordPress/gutenberg/pull/84983).

Last edited 13 days ago by iamadisingh (previous) (diff)
Note: See TracTickets for help on using tickets.