MCP Email
Product page
Description
Use the kowal_email_template tool to inspect the transactional email templates Magento Sales selects for a store view and to prepare revisions for review.
For whom
For Magento administrators and developers maintaining order, invoice, shipment and credit memo emails for customers and guests.
Features
- List the registered message types and inspect the variables declared in their module source.
- Read a store view’s effective template assignment and inspect the assigned database or file source.
- Clone a supported database template, review revisions to its subject, content or styles, and manage store-view assignment through separate change plans.
Installation
This component is included in Kowal MCP Server. Follow the suite installation instructions.
Configuration
- Follow the package installation instructions and enable
Kowal_McpEmailalongsideMagento_Email,Magento_ConfigandMagento_Sales. Run the Magento upgrade as part of deployment. - Grant
kowal_email_template/list_message_typesfor discovery. For assignment reads, grant bothkowal_email_template/get_assignmentsandkowal_email_template/scope_store_N, replacing N with the active store view ID. Renew OAuth consent after changing grants. - Call
get_assignmentswith the message type and store ID. To inspect the source, grant and useget_assigned_templatefor a database template orget_assigned_filefor a registered file reference.
Requirements / notes
A clone is saved as an unassigned database template. Review its preview and confirm the target store view before approving a separate assignment plan.
FAQ
Does get_variables show the values from a customer’s order?
It returns declarations from the registered module file. To review the template actually selected for a particular view, start with its assignment and inspect the corresponding source.
Verify the installation
bin/magento module:status Kowal_McpEmail
List the message types and select order_guest. Read its assignment for an active test store view and compare the template reference with the order email setting in Magento Admin. This check uses read actions only.