WIP: Start work on integrating the new WordPress MCP Adapter #1010
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.
Description of the Change
Note
This is branched from #1003 as the WordPress MCP Adapter requires the Abilities API. And similar to that PR, this is an early test of adding MCP support to ClassifAI; opening this PR both for discussion and as an example of how we may want to implement this.
This PR brings in the WordPress MCP Adapter as a new composer dependency and creates a new MCP server with the Title Generation Feature as it's only tool for now. With this code in place, a new REST endpoint is registered (
local.test/wp-json/classifai/mcp
), that allows you to see all available tools and run individual tools.Worth noting by default, the MCP server requires you to be logged in (this can be overridden but I've left that for now). And the Generate Titles Feature requires you to be logged in and have access, so there are two separate permission checks that you must pass here.
How to test the Change
Changelog Entry
Credits
Props @dkotter
Checklist: