Medusa released an MCP server for its commerce stores on October 20. It allows connected AI agents to analyze orders, generate sales reports and investigate cloud deployment issues through interfaces already used by commerce teams.
The key architectural consideration is that agents can interact with the administrative API surface. The permissions assigned to those interfaces therefore help determine the actions agents can perform.
What the Medusa MCP server provides
MCP is a protocol for describing tools to a model in a way the model can discover and call for itself. Medusa has published a server that exposes its own operations through it. Nothing about your store changes. What changes is that the operations you already had are now legible to something that can chain forty of them together in a second without getting bored, tired or suspicious.
That last clause is the whole subject of this article.
Designing agent permissions
When a human operator has access to bulk price updates, the practical limit on the damage is that a person has to sit there and do it. They get bored. They notice when the third screen looks wrong. They stop and ask someone.
An agent has none of those brakes. It has a goal, a set of tools, and no sense that something feels off. Give it the role your ops lead has and you have not granted the same access. You have granted a different thing that happens to share a name.
So the first job is not connecting the agent. It is walking your roles and asking, for each permission, what the worst version of forty rapid calls looks like.
Low-risk use cases to start with
- +Reporting and analysis. Read-only queries across orders, customers and inventory. The value is high and the blast radius is zero. An agent that can answer which SKUs had the biggest gap between sessions and conversions last week, without anyone building a report, earns its keep in a day.
- +Deployment and log triage. Reading build logs and deployment state to narrow a failure. Read-only again, and it compresses the most tedious twenty minutes of an incident.
- +Draft and await approval. An agent that prepares a change and leaves it for a human to approve is a genuine productivity gain, and it keeps a person on the hook for the decision.
Actions that require additional safeguards
- +Refunds and payment operations. The failure is irreversible and it lands on a customer.
- +Price publishing. A wrong decimal that reaches the storefront costs real money in the minutes before anyone notices.
- +Bulk status changes. The property that makes bulk operations efficient is the property that makes them dangerous.
- +Customer data export. Not because the agent is malicious, but because an exfiltration path that exists will eventually be driven by something other than you.
Building an agent audit trail
If an agent makes a change, three things need to be true afterwards. You can tell an agent made it rather than a person. You can tell which agent, acting on whose instruction. And you can reconstruct what it saw at the time it decided.
Most admin audit logs handle the second and third badly even for humans. Before you connect anything that writes, check what your log actually captures, and ask whether "modified by: api" will be enough when you are reading it back under pressure in four months.
Protecting commerce systems from prompt injection
An agent that reads your orders is an agent that reads text your customers wrote. Order notes, gift messages, custom fields, support tickets. If any of that reaches the model through the same channel as its instructions, you have a path where a customer writes something and your agent treats it as a command.
This is not theoretical and it is not solved. Treat anything that came from outside your organization as data and never as instruction, and prefer a tool that cannot take a destructive action at all over a tool that has been told politely not to.
A controlled implementation process
Point it at a staging dataset with a production-shaped copy of your catalog. Give it read-only credentials. Spend a week asking it the questions your team actually asks on a Monday morning, and keep a note of where the answer was wrong rather than merely slow.
Then, and only then, pick one write operation with a cheap failure and an obvious undo, and add it with approval in the loop.
The implications for commerce operations
A lot of agent tooling has been pointed at shoppers this year. Shop MCP, agentic checkout in search, instant checkout inside assistants. All of it aims at the buying side, where the merchant is mostly a passive participant in someone else’s flow.
This points the other way. It treats the store as a system an operator drives, and asks whether that operator has to be a person. That is a far bigger question, it arrived with much less noise, and it is the one that will actually change how commerce teams are staffed.
If you want to connect an AI assistant to your Medusa backend, Sobefy can help design the MCP integration, permissions and monitoring around the actual work your team needs to perform.
