A commerce backend your AI tools can build against
Let the AI tool build the storefront, and keep the money, stock and keys in the backend. Omnislice gives your coding agent a GraphQL storefront API with a public key, an MCP server with scoped access to one project, and a checkout whose amounts the frontend never computes.
- MCP tools, each tied to a scope
- 13
- Storefront API with a public key
- GraphQL
- What any one key can reach
- 1 project
- TypeScript clients, not on npm yet
- Alpha
The MCP server
13 tools, grouped by the scope that unlocks them.
read
Read the project
Granted by the read scope.
- store_overview
- Counts and structure of the project, and the setup checklist a key can see.
- describe_models
- The content models: every field, its type, and how documents are templated.
- search_products
- Search or page through the catalogue, returning product summaries.
- get_product
- Full detail of one product, fields and variants included.
- check_stock
- Per-warehouse stock for one product.
- blueprint_export
- The project's setup as a Blueprint document, to read or edit and re-apply.
- blueprint_dry_run
- Validate a Blueprint and preview exactly what applying it would change.
orders:read · customers:read
Orders and customers, trimmed
Only with scopes granted on purpose. Read never implies them.
- list_orders
- Order history: reference, status, total and buyer name. No addresses, emails or payment details.
- get_order
- One order with lines, totals, shipping and tracking. The address is reduced to city and country.
- get_customer
- One customer by id. Never their email, phone, street address or VAT number.
catalogue:write · config:write
Change the catalogue and setup
Write scopes, granted per key.
- import_products
- Create or update up to 500 products a call; rows sharing an externalId upsert.
- draft_collection
- Create a curated, ordered grouping of products.
- blueprint_apply
- Apply a Blueprint: models, warehouses, stores and collections. Missing store addresses are reported, not invented.
How an agent gets in
- A project key, created in the dashboard under the project’s API keys, shown once and stored only as a hash. Send it as a Bearer token.
- Or the sign-in flow: an MCP client signs in, and only an owner of the project, or an owner or admin of its organisation, can complete it. The key it issues starts read-only and can be raised in the dashboard to catalogue and setup writes, never to orders or customers.
- Every key is bound to one project. An agent connected to one client cannot see another.
What no agent can do
- Change, refund or fulfil an order, or contact a customer.
- List or search customers, or read their contact details.
- Reach billing, plans, Stripe Connect or team membership.
- Touch deployments or integration settings, which hold provider secrets.
Claude Code
claude mcp add --transport http omnislice https://app.omnislice.com/api/mcp \
--header "Authorization: Bearer project_key_..."Claude Desktop or Cursor
{
"mcpServers": {
"omnislice": {
"url": "https://app.omnislice.com/api/mcp",
"headers": { "Authorization": "Bearer project_key_..." }
}
}
}The storefront API
What the generated frontend talks to.
GraphQL, with a key that is safe in a browser
- One public deployment key per storefront, sent as ?api_key=. It identifies the project, store and warehouse, carries no admin rights and is safe in a browser.
- Queries for products (by id or slug), content documents, delivery options, the storefront and the signed-in customer’s account, orders and promo codes.
- Mutations for sign-up and sign-in, profile, cart, promotions, checkout sessions, placing orders and requesting a trade account.
- It works server to server, so server-rendered frameworks such as Next.js, Astro or TanStack Start can fetch on the server.
- Offset pagination with page and limit. Introspection is switched off in production; the schema ships in the client library repository.
- An older REST API under /api/v1 covers most of the same ground, including filtering items by collection and tag.
A first request
curl "https://api.omnislice.com/graphql?api_key=YOUR_DEPLOYMENT_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"{ products(limit: 12) { docs { id slug name } } }"}'Typed clients, honestly labelled
@omnislice/core0.0.3, GraphQL client, schema types, cart state, money helpers@omnislice/react0.0.1, React provider and hooks on top of core@omnislice/js0.0.1, Web Components for any page with a script tag
Alpha, and not published to npm, so npm install will fail. The source is on GitHub, and its queries are tested in CI against a copy of the server's schema.
Checkout the AI never writes
The backend owns the amount and the payment.
- 1
The storefront calls createCheckoutSession. The backend prices the cart, applies promotions and creates the Stripe payment on the store’s connected Stripe account.
- 2
The storefront renders Stripe’s payment element with the returned client secret. Card details go to Stripe, not to Omnislice or to your code.
- 3
The storefront calls placeOrder. MB WAY, Multibanco and invoice terms for trade buyers go through the same flow.
Omnislice takes no fee on store orders; a store pays only Stripe's own processing on card payments, as explained on pricing.
The quick path
Five steps with what is shipped today.
- Step 1
Model the store with the agent
Connect Claude Code or Cursor to the project over MCP. Have it describe the content models and catalogue, draft a Blueprint for what is missing, and dry-run it before applying.
- Step 2
Generate the frontend against the schema
Point the coding agent at the storefront GraphQL API and have it fetch on the server.
- Step 3
Leave checkout to the backend
createCheckoutSession, Stripe’s payment element with the returned secret, then placeOrder. Do not let the agent compute totals.
- Step 4
Wire a deploy target
Add the host’s deploy hook (Vercel, Netlify, Cloudflare Pages, Render, Coolify or any webhook) so a rebuild is one click from the dashboard.
- Step 5
Review what the agent wrote
Especially anything touching keys, cookies or customer data. Scoped keys limit the damage; they do not make generated code correct.
What is not there yet
This audience punishes over-claiming, so here it is.
Missing today
- Guest checkout. Shoppers must sign in to buy.
- Keyword search in the storefront API. The GraphQL products query accepts query, tags and collection arguments but ignores them today.
- SDKs on npm. The clients are alpha and install from the GitHub repository.
- A sandbox or test environment separate from the live project.
- Outbound event webhooks. Deploy hooks fire when you trigger them; nothing notifies your storefront of catalogue changes.
- A starter storefront, a hosted checkout page, draft previews and SEO fields on products.
Read more
The longer argument is in what an AI-built storefront needs from its backend. How keys and data are protected is on security, and what is planned is on the roadmap.
FAQ
Tools, permissions, code and SDKs.
Which AI tools work with Omnislice?
Any MCP client that supports remote HTTP servers with a header, such as Claude Code, Claude Desktop and Cursor, can connect to the MCP server. Any tool that writes code can build against the GraphQL storefront API.
Can an agent change prices or refund orders?
With a catalogue write scope it can create and update products, including their prices. It can never refund, change or fulfil an order, contact a customer, or reach billing or deployments.
Do I need to write code?
Yes, or have an AI tool write it. There are no hosted themes, so every storefront is code built against the API. The MCP server helps with the store setup, not the frontend.
Is there a starter storefront?
Not yet. Headless starter kits are on the roadmap as something we are exploring.
Are the SDKs on npm?
No. @omnislice/core, @omnislice/react and @omnislice/js are alpha (0.0.x) and not published to npm. Install them from the GitHub repository, or call the GraphQL API directly.
Connect an agent to your first project
Create a project, mint a key with the scopes you want, and point Claude Code or Cursor at it. Agencies running many client stores should start with Omnislice for agencies.

