Shopify's example, run unchanged
What Shopify's port of the blueprint is, why Shopify is the special case among the platforms here, what it needs to run against a real store, and what a platform agent gets back when it shops at a Shopify store.
Anthropic's Claude Commerce Agents blueprint was ported by Shopify within days of its launch: Shopify/claude-for-commerce-examples (Apache-2.0, commit d68c7fa of 2 September 2026) runs the blueprint's shopping agent against a real Shopify store through the store's UCP (Universal Commerce Protocol) endpoints, and its merchant agent over the same store's Admin API. This reference implementation vendors that repository at that commit, pinned to the same blueprint commit (fd4d5922), and runs it unchanged. The only additions are a platform folder, platforms/shopify/, with a run.sh for each agent, a test.sh, and an .env.example.
The five fictional demo merchants elsewhere in this reference (Lumen Home, Aurora Escapes, Beacon Wireless, Encore Seats, Northstar Outfitters) each run on a payment processor. Shopify's example runs against a real store, which is why it needs its own article. Companion pieces: 04-third-party-agents.md for the protocols, and 05-payment-processors.md for the processors.
What Shopify shipped
Two examples, each self-contained. storefront/ is the blueprint's shopping agent over UcpClient, a thin MCP (Model Context Protocol) client for one shop's two tool surfaces, with ShopifyStorefrontBackend implementing the blueprint's StorefrontBackend on top. merchant/ is the merchant agent over the Admin GraphQL API, with a local in-process store for running without an account. Shopify changed nothing in the blueprint; both examples install its packages from Anthropic's repository at the pinned commit (vendor/claude-for-commerce-examples/README.md).
The storefront maps the blueprint's methods onto the store's tools (storefront/api/shopify_backend.py):
| Blueprint method | Shopify tool | Endpoint |
|---|---|---|
search_products |
search_catalog |
/api/ucp/mcp |
get_product_details, get_products |
get_product, lookup_catalog |
/api/ucp/mcp |
get_cart, add_to_cart, update_cart_item, remove_from_cart |
create_cart, get_cart, update_cart |
/api/ucp/mcp; update_cart replaces the line list, so every write re-reads the cart and sends the full desired state |
| checkout handoff | create_checkout, update_checkout, get_checkout |
/api/ucp/mcp; the document's continue_url is the button |
get_orders, get_order |
get_order |
/api/ucp/mcp, with an agent token carrying the read_global_api_orders scope |
search_policies |
search_shop_policies_and_faqs |
/api/mcp |
Products come back under gid://shopify/Product/… and variants under gid://shopify/ProductVariant/…, so both enter the blueprint's provenance gates; cart lines carry the variant id. Preferences are a static guest profile, and fulfillment is empty because shipping is quoted on Shopify's page.
Why Shopify is the special case
Every other platform folder in this reference is a merchant that hosts its own UCP endpoint and points continue_url at a processor's page. Shopify collapses three roles into one. The platform serves the endpoint for every store, the checkout is Shopify's own page, and the payment runs through Shopify Payments or a third-party gateway configured as a payments app inside that page. A processor has no page, API call, or component of its own on a Shopify store; it is one tender the shopper picks on Shopify's checkout.
That has one consequence for the agent: checkout is always a handoff. The storefront lazily stages a non-empty cart as a UCP checkout with create_checkout, re-syncs it with update_checkout after cart writes, and returns the document's continue_url for the shopper to finish on Shopify's page. complete_checkout is never called; in the words of the backend's own docstring, it "places the order and takes payment, and nothing in this repo charges anyone". Shopify's stores do complete checkouts inside Google, Copilot, and Meta with dev.shopify.shop_pay, dev.shopify.card, and com.google.pay handlers, but that is the platform's direct-checkout path, and this example does not use it.
What it needs
The guest path needs one variable. SHOP_DOMAIN names any domain that serves /.well-known/ucp and is not gated by a storefront password; discovery resolves the rest. Shopify's README puts it plainly: without app credentials, "the guest path is identical to running with no credentials at all". ANTHROPIC_API_KEY is needed for chat turns only; the web app browses the store and the smoke script runs without it.
Sign in with Shop is optional. With a Dev Dashboard app's SHOPIFY_UCP_CLIENT_ID and SHOPIFY_UCP_CLIENT_SECRET (issued at https://shopify.dev/docs/agents) plus a registered SHOP_OAUTH_REDIRECT_URI and WEB_APP_URL, buyers can sign in and search_catalog returns personalized results; the buyer-linked token is held server-side, keyed by session, and paired with the buyer's IP on catalog calls. Without the pair, the sign-in routes answer 503 and every session is a guest. The same credentials unlock get_order: until the key carries the read_global_api_orders scope, the shop answers orders_not_allowed, the backend turns its order tools off, and the agent points the customer at the confirmation email. Shopify's rate-limiting page describes the anonymous tier as catalog, cart, and checkout build tools at the lowest limits, with complete_checkout and order tools unavailable (https://shopify.dev/docs/agents/profiles/auth-and-rate-limiting, read on 8 September 2026).
Two more knobs matter. UCP_AGENT_PROFILE_URL is the agent profile every UCP call carries; the default is Shopify's published 2026-04-08 profile. CATALOG_WARMUP=0 disables the start-up warm-up of the product grid, which reads the tokenless Storefront GraphQL API and tolerates failure.
Development stores and the password gate
The natural instinct is to point SHOP_DOMAIN at a development store. Shopify's documentation, read on 8 September 2026, makes that harder than it sounds, and some of it is unconfirmed.
- A development store's password page cannot be removed, and orders can be tested only with the Bogus Test gateway or a provider's test mode (https://shopify.dev/docs/storefronts/themes/tools/development-stores). Partner documentation says private mode cannot be deactivated and real transactions are not supported.
- When the Online Store password is enabled,
/api/ucp/mcpsits behind the same gate and answers a 302 to/password; Shopify staff wrote on 20 May 2026 that there is no supported way to expose that endpoint while keeping the password, and suggested a store with the password disabled (https://community.shopify.dev/t/storefront-ucp-access-for-password-protected-store/34499). Whether/.well-known/ucpand the GraphQL warm-up are gated too is not stated; probe the store. - Agentic storefronts are active by default for eligible stores and managed under Sales channels > Agentic, after the merchant accepts the Supplemental Terms (https://help.shopify.com/en/manual/online-sales-channels/agentic-storefronts). Whether development stores are eligible is not stated anywhere Shopify publishes; a staff post from 29 January 2026 called development-store access "inconsistent" during the early rollout.
- Shopify Catalog, which feeds ChatGPT, Google, Copilot, and Meta, needs the Starter plan or higher and a store that is not in private mode (https://help.shopify.com/en/manual/shopify-catalog/requirements). That is a different surface from the per-store
/api/ucp/mcpthe example uses; a development store will not appear in AI channels either way. - Whether a checkout's
continue_url(a/cart/c/…link) bypasses a development store's password page is not documented.
The practical reading: a stock development store will answer /api/ucp/mcp with a redirect to its password page. Use a store on a plan with Agentic Storefronts on, or probe both URLs on the specific store before setting SHOP_DOMAIN.
The public demo store
fakestore-ai.myshopify.com is the store Shopify's recorded fixtures were captured from, and it serves UCP anonymously. Probed on 8 September 2026: /.well-known/ucp answers 200 with ucp.version 2026-08-25 and 2026-04-08 and 2026-01-23 under supported versions, and declares the com.google.pay and dev.shopify.card payment handlers; tools/list on /api/ucp/mcp returns thirteen tools (the five checkout tools, four cart tools, get_order, search_catalog, lookup_catalog, get_product); tools/list on /api/mcp returns search_shop_policies_and_faqs only. Anonymous search_catalog, create_cart, and create_checkout calls succeed, and a checkout comes back requires_escalation with a continue_url on the store.
The example's own default, demostore.mock.shop, no longer serves UCP: on 8 September 2026 its discovery document, /api/ucp/mcp, and /api/mcp all answered 404, and Shopify's post about mock.shop (3 September 2026, https://www.shopify.com/ca/blog/mock-shop) does not mention UCP. The platform folder therefore defaults SHOP_DOMAIN to fakestore-ai.myshopify.com.
The Storefront MCP and the UCP shopping service
A Shopify store has two tool endpoints, and the example reads both. /api/ucp/mcp is the UCP shopping service: catalog, cart, checkout, and order tools, every call carrying meta.ucp-agent.profile. /api/mcp is the older Storefront MCP server, which requires no authentication and now serves policies only. Its cart tools were deprecated on 24 June 2026 and sunset on 31 August 2026 in favor of the UCP cart tools (https://shopify.dev/changelog/storefront-mcp-cart-tools-are-being-deprecated-in-favour-of-ucp-cart-mcp), and search_shop_catalog was replaced by UCP's search_catalog around 10 April 2026. The example already uses only the surviving tools, which is why UcpClient.call_storefront handles one tool name.
UCP versions
UCP 2026-08-25 was released on 25 August 2026 with seventeen breaking changes (location, fractional quantities, 3-D Secure, payments moved under dev.ucp.common.payment.*, signing_keys renamed to keys; https://github.com/Universal-Commerce-Protocol/ucp/releases), and Shopify has advertised it since 4 September 2026 with 2026-04-08 still supported (https://shopify.dev/changelog/08-25-is-now-supported). The example's fixtures and default profile are 2026-04-08. To negotiate the new version, set UCP_AGENT_PROFILE_URL to https://shopify.dev/ucp/agent-profiles/2026-08-25/valid-with-capabilities.json (https://shopify.dev/docs/agents/profiles). The reference's own merchants speak 2026-04-08 and list 2026-08-25 under supported versions, as 04-third-party-agents.md describes.
Running it
Set up once from the repository root; setup.sh clones Shopify's example at the pinned commit and installs its web app.
./setup.sh
cp platforms/shopify/.env.example platforms/shopify/.env
The example file lists SHOP_DOMAIN (defaulting to the public demo store), ANTHROPIC_API_KEY, the optional Sign in with Shop pair, SHOP_OAUTH_REDIRECT_URI, and WEB_APP_URL. Then:
./platforms/shopify/first-party/run.sh
The script loads the folder's .env, puts the example's own vendor/ copy first on the Python path (the example resolves its skills and host code from there), starts the API with uvicorn storefront.api.main:app --port 8004, and starts the branded web app on port 3005. --api-only skips the web app. Expected output:
Sign in with Shop: off (guest sessions); set SHOPIFY_UCP_CLIENT_ID and SHOPIFY_UCP_CLIENT_SECRET to enable
store: fakestore-ai.myshopify.com
API http://localhost:8004 (health, brand, chat)
Web http://localhost:3005
Ctrl-C stops everything.
The web app brands itself from the store (name, logo, colors, best sellers). Shopify's README suggests three turns: a gift under $50, adding the first one to the cart, and the return policy. The grid, cart drawer, and checkout button stay in sync with the conversation, and the checkout button opens the store's hosted checkout page. Nothing in the example places an order or takes payment.
A platform agent shopping at a Shopify store
The reference's platform agent, scripts/platform_agent.py, shops at a Shopify store the same way it shops at the reference's own merchants: read /.well-known/ucp, call tools on /api/ucp/mcp with Shopify's agent profile on every call, and stop at the checkout. The store is remote, so nothing is started locally.
./platforms/shopify/third-party/run.sh
GOAL="a jacket" ./platforms/shopify/third-party/run.sh changes the shopping goal, and --model lets Claude drive the store's tools (--provider openai or gemini for other models, as in 04-third-party-agents.md).
The scripted run on 8 September 2026 went search_catalog, then create_cart (a CAD 40 cart; the demo store prices in Canadian dollars regardless of the buyer context), then create_checkout. The store answered the checkout as a tool result with isError: true that nonetheless carried the checkout document: status requires_escalation, a continue_url of the form https://fakestore-ai.myshopify.com/cart/c/<token>?key=…, and messages listing what the shopper must still provide before payment (a contact method, a delivery address, and an extension interaction). Shopify's own client treats exactly that shape as a checkout awaiting buyer input (UcpClient.call_ucp with document_error_ok), and the reference's script does the same, printing:
checkout: gid://shopify/Checkout/… · status requires_escalation · total 40.00
continue_url (variant 1, the shopper pays on the processor's page): https://fakestore-ai.myshopify.com/cart/c/…
payment handlers the merchant accepts (variant 2/3): […]
the store still needs from the shopper before payment: [...]
That is Shopify's escalation path in one screen: the platform agent found the product, built the cart, and staged the checkout; the shopper finishes on Shopify's page, where the store's own gateway takes the payment. --complete makes no sense here, because nothing in this reference holds a dev.shopify.card or dev.shopify.shop_pay credential.
The tests
platforms/shopify/test.sh runs four checks. First, Shopify's own storefront tests, 91 of them, against recorded responses with no network: storefront/data/recorded_responses.json holds eighteen raw JSON-RPC responses recorded from fakestore-ai.myshopify.com under UCP 2026-04-08 (a search for "shirt", one product's detail and lookup, the cart's create, read, and three update shapes, the shop's answers for a cart it no longer knows, a checkout's create, update, read, and cancel, the policies search, and get_order answering orders_not_allowed), plus hand-written order_fixtures.json and discovery.json. storefront/api/tests/replay.py serves them through an httpx.MockTransport keyed by path, tool, and argument, and errors on anything else, so a search for a term other than "shirt" fails loudly rather than inventing a product. storefront/scripts/record_fixtures.py re-records from a live store.
Second, the live store: discovery at SHOP_DOMAIN and a tools/list that names search_catalog. Third, the example's API boots against the store and serves its brand. Fourth, the scripted platform agent stages a checkout on the store.
./platforms/shopify/test.sh
PASS pytest (91 passed …)
PASS discovery at fakestore-ai.myshopify.com
PASS UCP tools/list
PASS API :8004 healthy
PASS brand from the store
PASS platform agent staged a checkout on Shopify
ALL PASS (Shopify)
The merchant half has its own 140 tests against the local store and canned Admin API responses, run with pytest merchant inside the vendored repository; SHOPIFY_LOCAL_STORE=1 runs that half with no account and no network.
The reverse test lives with the reference's own merchants: tests/test_thirdparty.py runs Shopify's UcpClient and ShopifyStorefrontBackend, unchanged, against Lumen Home's UCP endpoint, which is the proof that a merchant on a processor serves the same shapes Shopify's client was written for.