sales
Magento MCP Integration for OpenAI Agents SDK
Connect Magento to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Magento to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Magento MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-magento": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=magento",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=magento --write=deny Why Use KosmoKrator Here
Expose only Magento instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Magento Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Magento integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__magento__magento_list_products | magento.magento_list_products | Read | List products from the Magento catalog. Returns a list of products with support for search criteria filtering and pagination. |
integration__magento__magento_get_product | magento.magento_get_product | Read | Get details of a specific Magento product by its SKU. Returns the full product object including attributes, pricing, and stock information. |
integration__magento__magento_create_product | magento.magento_create_product | Write | Create a new product in the Magento catalog. Requires SKU, name, price, and attribute set ID. Returns the created product object. |
integration__magento__magento_list_orders | magento.magento_list_orders | Read | List orders from the Magento store. Returns a list of orders with support for search criteria filtering and pagination. |
integration__magento__magento_get_order | magento.magento_get_order | Read | Get details of a specific Magento order by its ID. Returns the full order object including items, addresses, payment, and totals. |
integration__magento__magento_list_customers | magento.magento_list_customers | Read | List customers from the Magento store. Returns a list of customers with support for search criteria filtering and pagination. |
integration__magento__magento_get_current_user | magento.magento_get_current_user | Read | Verify Magento API connectivity and retrieve current user information. Useful as a health check to confirm the integration is properly configured. |