Shopify: the store's own checkout, with Shopify's example run unchanged

How this reference runs Shopify's example of Anthropic's Claude Commerce Agents blueprint against a real Shopify store, what a store needs to serve UCP, what Sign in with Shop adds, what was verified against the public demo store on 8 September 2026, and where a platform agent stops.

What this folder is

The five processor folders put a payment processor behind the blueprint's checkout handoff. This folder is the other case: the merchant's site is a Shopify store, Shopify owns the checkout, and the blueprint's shopping agent talks to the store over UCP (Universal Commerce Protocol, carried on MCP, the Model Context Protocol). Shopify published its own port of the blueprint for exactly this, Shopify/claude-for-commerce-examples, and setup.sh vendors it at commit d68c7fa (2 September 2026) into vendor/claude-for-commerce-examples. Nothing in that copy is modified; this folder's scripts set the environment and start it.

The store is any Shopify store that serves /.well-known/ucp. SHOP_DOMAIN names it, and the default is fakestore-ai.myshopify.com, a public demo store that served UCP on 8 September 2026. Shopify's example ships with demostore.mock.shop as its own default; that domain answered 404 on /.well-known/ucp, /api/ucp/mcp, and /api/mcp on 8 September 2026, which is why the reference sets a different default.

What the store serves

Read live from fakestore-ai.myshopify.com on 8 September 2026.

Endpoint What it answers
GET /.well-known/ucp UCP version 2026-08-25, supported versions 2026-04-08 and 2026-01-23, the shopping service endpoint, and two payment handlers, com.google.pay (with Shopify as the gateway) and dev.shopify.card
POST /api/ucp/mcp 13 tools: search_catalog, lookup_catalog, get_product, create_cart, get_cart, update_cart, cancel_cart, create_checkout, get_checkout, update_checkout, complete_checkout, cancel_checkout, get_order
POST /api/mcp search_shop_policies_and_faqs only; the older cart tools on this endpoint were sunset on 31 August 2026 (https://shopify.dev/changelog/storefront-mcp-cart-tools-are-being-deprecated-in-favour-of-ucp-cart-mcp)

Every tools/call must carry meta.ucp-agent.profile, a URL naming the agent's capability profile. Shopify publishes https://shopify.dev/ucp/agent-profiles/2026-04-08/valid-with-capabilities.json, which both Shopify's example (UCP_AGENT_PROFILE_URL) and the reference's platform agent send; a 2026-08-25 profile exists at the same path pattern for stores negotiating the newer version (https://shopify.dev/docs/agents/profiles). Catalog, cart, checkout staging, and policy calls need no authentication at the anonymous tier; complete_checkout and order tools are not available at that tier (https://shopify.dev/docs/agents/profiles/auth-and-rate-limiting).

Checkout on Shopify

There is one model. A non-empty cart is staged as a UCP checkout (create_checkout, re-synced with update_checkout after cart writes) and the customer finishes on the store's own checkout page through the document's continue_url. Shopify's example never calls complete_checkout, which places the order and takes payment (shopify_backend.py in the vendored copy). The processor-neutral adapters in this reference are not involved: on Shopify a payment provider is a tender inside Shopify Checkout, and the page is Shopify's.

Against the public demo store, both the store's assistant and the platform agent stop at the staged checkout with its continue_url; whether a test payment can be completed on that store's page was not checked in this repository. On a development store, Shopify documents test orders through the Bogus gateway or a payment provider's test mode (https://shopify.dev/docs/storefronts/themes/tools/development-stores).

Using your own store

Two Shopify facts decide whether a store works here, both read on 8 September 2026.

Agentic Storefronts must be on. Shopify states it is active by default for eligible stores, managed under Sales channels, Agentic, after the merchant accepts the Supplemental Terms (https://help.shopify.com/en/manual/online-sales-channels/agentic-storefronts). Shopify staff wrote on 29 January 2026 that the UCP manifest is generated when Agentic Storefronts is enabled and that development-store access during the early rollout can be inconsistent (https://community.shopify.dev/t/how-to-get-well-known-ucp-on-shopify-plus-with-a-custom-headless-storefront/28470). No Shopify page read states that development stores are eligible today.

The storefront password must be off. Shopify staff wrote on 20 May 2026 that /api/ucp/mcp sits behind the same password gate as the storefront, answering a 302 to /password, and that there is no supported way to open the endpoint while the password stays on (https://community.shopify.dev/t/storefront-ucp-access-for-password-protected-store/34499). Shopify's development-store documentation says the password page cannot be removed from a development store, so a stock development store will not serve UCP to this folder. Use a store on a plan with Agentic Storefronts on, and probe https://<store>/.well-known/ucp and https://<store>/api/ucp/mcp before pointing SHOP_DOMAIN at it.

Sign in with Shop

Without credentials every session is a guest, and Shopify's example states that the guest path is identical to running with no credentials at all. With a Dev Dashboard app's client ID and secret in SHOPIFY_UCP_CLIENT_ID and SHOPIFY_UCP_CLIENT_SECRET, buyers can sign in with Shop and search_catalog returns personalized results; the sign-in is authorization-code against Shop, server-side, and buyer tokens are keyed by session and never reach the model, the browser, or the logs. Order tracking (get_order) needs the read_global_api_orders scope on that credential; without it the store answers orders_not_allowed and the example disables its order tools and points the customer at the confirmation email. A client secret starts with shpss_; it is a secret, and it is never an access token (https://shopify.dev/docs/apps/build/authentication-authorization/client-secrets).

The variables

Variable Default in .env.example Meaning
SHOP_DOMAIN fakestore-ai.myshopify.com any store serving /.well-known/ucp
ANTHROPIC_API_KEY empty the assistant's model; the web app browses the store without it, chat turns do not run
SHOPIFY_UCP_CLIENT_ID, SHOPIFY_UCP_CLIENT_SECRET empty optional, Sign in with Shop; without them the sign-in routes answer 503
SHOP_OAUTH_REDIRECT_URI http://localhost:8004/api/auth/shop/callback the callback registered with the app
WEB_APP_URL http://localhost:3005 where the browser is sent after sign-in

Shopify's example also reads UCP_AGENT_PROFILE_URL and CATALOG_WARMUP (set to 0 to skip the startup catalog warm-up on a store that blocks tokenless Storefront GraphQL), documented in the vendored copy's .env.example.

First party and third party

The first-party run is Shopify's storefront example: first-party/run.sh starts its API on 8004 and its branded web app on 3005 against SHOP_DOMAIN (--api-only for the API alone). The web app brands itself from the store, the assistant searches the live catalog and builds a real cart, and the checkout button opens the store's checkout page. The walkthrough is in first-party/README.md.

The third-party run points the reference's platform agent, the same script that shops at the five processor merchants, at the store over UCP: third-party/run.sh, scripted or --model. It ends with a checkout in requires_escalation, a continue_url on the store, and the list of what the buyer must still provide. That run and what it returns are in third-party/README.md.

test.sh

platforms/shopify/test.sh

It runs four checks. First, Shopify's own storefront test suite, 91 tests that replay recorded store responses through an httpx.MockTransport (storefront/data/recorded_responses.json, 18 recorded MCP responses at UCP 2026-04-08 from fakestore-ai.myshopify.com, plus a discovery document and order fixtures), with no network. Second, the live store: GET /.well-known/ucp and a tools/list on /api/ucp/mcp that must name search_catalog. Third, Shopify's storefront API booted on 8004 against the store, its /api/health and /api/brand answering. Fourth, the scripted platform agent staging a checkout on the store.

== Shopify's storefront tests, recorded responses
PASS  pytest (91 passed in …s)
== the live store serves UCP
PASS  discovery at fakestore-ai.myshopify.com
PASS  UCP tools/list
== Shopify's storefront API boots against the store
PASS  API :8004 healthy
PASS  brand from the store
== a scripted third-party agent shops at the store
PASS  platform agent staged a checkout on Shopify
ALL PASS (Shopify)

What was verified live

On 8 September 2026, against fakestore-ai.myshopify.com: the discovery document, the storefront MCP and the UCP shopping service as described above, Shopify's storefront API booting and branding itself from the store, and the scripted platform agent running search_catalog, create_cart, and create_checkout, the last answering requires_escalation with a continue_url and messages naming a contact method, a delivery address, and an extension interaction as what the shopper still has to provide. Shopify's own tests passed on the recorded responses. Nothing was paid.

Troubleshooting

Symptom Cause What to do
discovery at <store> fails the store does not serve /.well-known/ucp: Agentic Storefronts off, a password-gated store, or demostore.mock.shop use the default demo store or a store that meets the two conditions above
/api/ucp/mcp answers a 302 to /password the storefront password is on turn it off; a development store cannot
a tool call is refused meta.ucp-agent.profile missing both the example and the platform agent send it; a client of your own must too
handlers ['com.google.pay', 'dev.shopify.card'] in the platform agent's discovery line, and an empty list after the checkout the store's document keys payment_handlers by id and the script reads both that and the 2026-04-08 list shape; the checkout document itself lists no handler the script can use, so the platform's only path is continue_url informational
sign-in routes answer 503 no SHOPIFY_UCP_CLIENT_ID and secret expected without credentials; sessions are guests
order tools unavailable after sign-in the credential lacks read_global_api_orders add the scope in the Dev Dashboard app
the web app did not start the example's npm workspace is not installed run ./setup.sh again; it runs npm install in the vendored copy