Creating a configurable product draft through MCP in Magento 2. What should you check before adding variants?

2 min read

A black bottle on a cork stand with three differently colored caps

After executing a product draft plan through Kowal MCP Server for Magento 2 1.3.51, the response includes product_id, sku, and type_id. Open the product by the returned ID and inspect its fields before creating variants. In the local trial, S4-MCP-CONF-01 was configurable, assigned to Website 2, and disabled.

Check the website and write scope before execution

In a test environment, use the kowal_product action prepare_create with a new SKU, type_id=configurable, a product attribute set, and weight="0". The field store_id=0 sets default values. The website_id assigns the product to a website. Review the plan and, once approved under the configured policy, execute it through kowal_changes using the returned change_set_id. MCP Catalog documentation.

Compare the plan with the saved draft

The local trial ran the original persistence operation with a simulated Magento database and product model. The plan showed the website and status. ID 42 appeared in the response after the save. The operation stored quantity 0 and is_in_stock=0. The simulated save covered the parent product. In the table, status 2 means disabled and a dash indicates a field with no value at that stage.

Trial for draft S4-MCP-CONF-01
Product IDWebsite IDStatusQuantityLinked variants
— · Read before planning————
— · Values in the plan22——
42 · Read after saving2200

Prepare the configurations in Magento Admin

After saving, check the SKU, type, attribute set, Product in Websites, and the Enable Product switch. In Configurations, choose the variation attributes. Check their Global scope and each simple product’s own SKU and stock before enabling the parent product. Adobe guide to configurable products.

If the MCP client cannot see the action or website, see the Magento 2 MCP permissions guide.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)