Adobe Commerce MCP
v0.2.0Offline Adobe Commerce PHP docs, config files, bin/magento CLI, Web API and module scaffolding
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search-docs Search Adobe Commerce docs
Search the official Adobe Commerce (Magento Open Source) developer documentation bundled offline: PHP extensions, frontend core, Web APIs and operations. Use it first for any "how do I" question about modules, plugins, DI, events, declarative schema, layouts, caching, indexers, queues or configuration. Returns excerpts with title, public URL and source path; follow up with read-doc.
| Parameter | Type | Description |
|---|---|---|
query * | string | Keywords to look for in the official Adobe Commerce docs (e.g. "plugin around method", "declarative schema foreign key", "message queue consumer", "full page cache private content") |
area | string | Restrict to one doc set: php (PHP extensions), frontend (themes, layouts, UI components, JS), webapi (REST and GraphQL guides), operations (configuration, CLI, installation, performance) |
limit | integer | Max results (default 5, max 20) |
read-doc Read an Adobe Commerce doc page
Read a full page, or one section, of the bundled Adobe Commerce documentation by id (from search-docs), source path or public developer.adobe.com / experienceleague.adobe.com URL. Use it after search-docs, or when the user pastes a docs link.
| Parameter | Type | Description |
|---|---|---|
ref * | string | Document id as returned by search-docs (e.g. "php/development/components/plugins.md"), source path (e.g. "commerce-php/src/pages/development/components/plugins.md") or public URL. Append "#anchor" to… |
section | string | Section anchor or heading to read only that section (e.g. "around-methods") |
explain-config-file Explain a module config file
Explain an Adobe Commerce module configuration file (di.xml, events.xml, webapi.xml, db_schema.xml, crontab.xml, routes.xml, system.xml, acl.xml, config.xml, layout, ui_component, schema.graphqls, requirejs-config.js and more): what it is for, where it goes (folder and area), the XSD URN from the docs, and the documentation pages. Use it before creating or editing one of these files.
| Parameter | Type | Description |
|---|---|---|
file * | string | Config file name or path inside a module (e.g. "di.xml", "etc/adminhtml/system.xml", "db_schema.xml", "crontab.xml", "webapi.xml", "view/frontend/layout/catalog_product_view.xml", "requirejs-config.js… |
lookup-cli-command Look up a bin/magento command
Look up a bin/magento command of Adobe Commerce on-premises: description, usage, arguments and options, from the official CLI reference. Accepts full names, Symfony shortcuts (s:up) or keywords. Use it before suggesting or running a bin/magento command.
| Parameter | Type | Description |
|---|---|---|
command * | string | A bin/magento command, full or with Symfony shortcuts (e.g. "setup:upgrade", "bin/magento s:up", "indexer:reindex"), or keywords to find one (e.g. "static content deploy", "maintenance") |
lookup-webapi Look up REST endpoints and GraphQL operations
Look up Adobe Commerce Web API: REST endpoints (path, method, parameters, body, which tokens can call it) from the official OpenAPI schema, and GraphQL queries and mutations (arguments, return type, example, guide). Accepts a GraphQL name, a REST path or keywords. Use it when writing integrations or storefront calls.
| Parameter | Type | Description |
|---|---|---|
query * | string | GraphQL query or mutation name (e.g. "products", "addProductsToCart"), REST path (e.g. "/V1/products/{sku}", "V1/orders"), or keywords (e.g. "cart coupon", "customer address") |
api | string | Limit to REST or GraphQL |
limit | integer | Max results for keyword search (default 10) |
method | string | REST only: HTTP method |
scaffold-module Scaffold an Adobe Commerce module
Generate registration.php, etc/module.xml and composer.json for a new Adobe Commerce module (Vendor_Module), adapted from the official docs. Returns the files (path and content) for the caller to write; the server never writes to disk. Use it when starting a module.
| Parameter | Type | Description |
|---|---|---|
module * | string | Module name as Vendor_Module (e.g. "Acme_Reviews"), as registered in registration.php |
basePath | string | Module directory relative to the Commerce root (default "app/code/<Vendor>/<Module>") |
description | string | composer.json description |
license | array | composer.json license list (default ["proprietary"]) |
packageName | string | Composer package name (default "<vendor>/module-<module>", lowercase) |
php | string | PHP constraint for composer.json require (e.g. "~8.3.0||~8.4.0"). Omitted when not given. |
sequence | array | Modules that must load before this one, for <sequence> in module.xml (e.g. ["Magento_Catalog"]) |
version | string | composer.json version (default "1.0.0") |
add-plugin Add a plugin (interceptor)
Generate a before, after or around plugin class and its di.xml declaration for a public method of a class or interface, adapted from the official plugins docs. Returns the files for the caller to write. Use it to change the behavior of a core or third-party method without rewriting the class.
| Parameter | Type | Description |
|---|---|---|
method * | string | Public method to intercept (e.g. "getName", "save") |
module * | string | Module name as Vendor_Module (e.g. "Acme_Reviews"), as registered in registration.php |
targetClass * | string | Class or interface whose public method is intercepted (e.g. "Magento\Catalog\Model\Product") |
type * | string | Plugin type. The docs advise after over around unless the chain must be stopped. |
area | string | di.xml area: global (etc/di.xml) or an area folder (default global) |
basePath | string | Module directory relative to the Commerce root (default "app/code/<Vendor>/<Module>") |
pluginClass | string | Plugin class name inside <Module>\Plugin (default "<TargetShortName>Plugin") |
pluginName | string | Plugin name in di.xml (default "<vendor>_<module>_<target>_<method>") |
sortOrder | integer | sortOrder attribute in di.xml |
add-observer Add an event observer
Generate an observer class and its events.xml subscription (global or per area), adapted from the official events and observers docs. Returns the files for the caller to write. Use it to react to a dispatched event.
| Parameter | Type | Description |
|---|---|---|
event * | string | Event name to observe (e.g. "catalog_product_save_after", "checkout_cart_add_product_complete") |
module * | string | Module name as Vendor_Module (e.g. "Acme_Reviews"), as registered in registration.php |
area | string | global (etc/events.xml, all areas) or one area folder (default global) |
basePath | string | Module directory relative to the Commerce root (default "app/code/<Vendor>/<Module>") |
observerClass | string | Observer class name inside <Module>\Observer (default derived from the event name) |
observerName | string | Observer name in events.xml (unique per event) |
add-controller Add a controller and route
Generate routes.xml, an action controller (GET page or POST JSON) and, for pages, the layout handle and template, for the frontend or adminhtml area (with ADMIN_RESOURCE and acl.xml for the Admin), adapted from the official routing docs. Returns the files for the caller to write.
| Parameter | Type | Description |
|---|---|---|
area * | string | frontend (storefront) or adminhtml (Admin) |
frontName * | string | URL front name: the first URL segment, <frontName>/<controller>/<action> (e.g. "reviews") |
module * | string | Module name as Vendor_Module (e.g. "Acme_Reviews"), as registered in registration.php |
aclResource | string | adminhtml only: ACL resource for ADMIN_RESOURCE (default "<Vendor_Module>::<controller>") |
action | string | Action class (default "Index") |
basePath | string | Module directory relative to the Commerce root (default "app/code/<Vendor>/<Module>") |
controller | string | Controller folder (default "Index") |
method | string | HTTP method: GET renders a page with a layout handle, POST returns JSON (default GET) |
routeId | string | Route id in routes.xml and first part of the layout handle (default: frontName) |
title | string | Page title for GET actions |
add-db-schema Add a table to db_schema.xml
Generate a declarative schema etc/db_schema.xml table with columns, primary key, unique constraints, foreign keys and indexes, adapted from the official declarative schema docs, plus the whitelist and setup:upgrade steps. Returns the file for the caller to write.
| Parameter | Type | Description |
|---|---|---|
module * | string | Module name as Vendor_Module (e.g. "Acme_Reviews"), as registered in registration.php |
table * | string | Table name (e.g. "acme_review") |
basePath | string | Module directory relative to the Commerce root (default "app/code/<Vendor>/<Module>") |
columns | array | Columns. Without columns the table gets an entity_id int unsigned identity primary key. |
comment | string | Table comment |
engine | string | SQL engine, default "innodb" |
foreignKeys | array | |
indexes | array | |
primaryKey | array | Primary key columns (default: the identity column) |
resource | string | Database resource (shard), default "default" |
unique | array | Unique constraints, each a list of columns |