Connect OpenCode to Magento 2.X
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Magento 2.X
A preset of real Magento 2.X operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Magento 2.X
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
Magento 2.X
23 toolsCreate a simple product with the store's required attribute set.
Update selected product fields; omitted fields are not sent.
Create a customer without a password; Magento may send its account email.
Save customer identity fields; email and names are required by Magento.
Add order history with explicit customer-notification and storefront visibility choices.
Read the category tree to a bounded depth.
Read a category by its internal ID.
List products using the matching Magento REST endpoint.
Get product using the matching Magento REST endpoint.
Delete product using the matching Magento REST endpoint.
List customers using the matching Magento REST endpoint.
Get customer using the matching Magento REST endpoint.
List orders using the matching Magento REST endpoint.
Get order using the matching Magento REST endpoint.
Cancel order using the matching Magento REST endpoint.
Hold order using the matching Magento REST endpoint.
Unhold order using the matching Magento REST endpoint.
List order comments using the matching Magento REST endpoint.
List invoices using the matching Magento REST endpoint.
Get invoice using the matching Magento REST endpoint.
List shipments using the matching Magento REST endpoint.
Get shipment using the matching Magento REST endpoint.
Get stock item using the matching Magento REST endpoint.
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use Magento 2.X with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Magento 2.X wired in as tools. Connect your account and run.