Overview of MailPoet Dev MCP Server
trunkThe MailPoet Dev MCP Server is an experimental Model Context Protocol (MCP) server that exposes MailPoet local development tooling to AI agents like Claude Code or Claude Desktop.
It works through a hybrid architecture:
- TS MCP server: Runs on the host machine, handling MCP protocol communication, shell commands (pnpm/Robo/Docker), and Mailpit calls.
- PHP companion mu-plugin: A dev-only plugin located at
.wp-env/mu-plugins/mailpoet-dev-companion.phpthat provides REST endpoints under/wp-json/mailpoet-dev/v1/. These endpoints are backed by MailPoet's Dependency Injection (DI) container and Doctrine repositories. - Shared Secret: A secret stored at
.wp-env/.mailpoet-dev-companion-secretis used to authenticate requests between the TS server and the PHP companion plugin.