Code Engine integration bridge for Royal MCP – working plugin available
-
Hi Royal Plugins team,
I’ve been using Royal MCP extensively to administer WordPress sites through ChatGPT, and I ran into one limitation: Royal MCP can edit WordPress content very well, but PHP snippets managed by Code Engine by Jordy Meow are outside its normal toolset.
To solve this, I created a small companion plugin called Royal MCP – Code Engine Bridge.
I developed it with the assistance of ChatGPT, which helped with implementation, review and regression testing.
It connects Royal MCP with Code Engine by Jordy Meow and exposes Code Engine snippets as a standard WordPress custom post type, so Royal MCP can manage them using its existing post and post-meta tools without requiring any changes to Royal MCP itself.
The WordPress custom post type acts as the source of truth, and the bridge synchronizes changes to Code Engine.
The current stable version is 1.0.0 and has been tested with:
Royal MCP 1.4.39
Code Engine by Jordy Meow 0.5.5
WordPressThe bridge has been tested for the following cases:
updating an active snippet preserves its ON state;
updating an inactive snippet preserves its OFF state;
new snippets are created OFF by default;
PHP syntax errors trigger a fail-closed state and disable the snippet;
fixing an invalid snippet does not automatically reactivate it;
scope changes synchronize correctly;
priority changes synchronize correctly;
deleting the WordPress bridge entry also deletes the linked Code Engine snippet;
recursive synchronization is guarded against.The bridge deliberately remains one-way:
WordPress CPT → Code Engine
Manual changes made directly inside Code Engine are therefore not treated as authoritative, which avoids synchronization conflicts and loops.
The stable 1.0.0 plugin ZIP is available here:
https://drive.proton.me/urls/RX6AS6D6D4#ebBh7r8Jme5T
The plugin was originally developed while automating WOJNA.info, and I also intend to use the same neutral version on Sudoizm Online, which is why the final release no longer contains site-specific branding.
If this integration is useful to you, I’d be happy to provide any additional details about the implementation or testing. It might also be an interesting candidate for a native Royal MCP integration in the future.
Thanks for building Royal MCP — it has become a very useful part of my WordPress automation workflow.
Best regards,
Roman “Sudoista Z” Mazur
You must be logged in to reply to this topic.