A platform agent shopping at a Shopify store
Point the reference's platform agent, the same program that shops at the five processor merchants, at a real Shopify store, and read what the store hands back: a checkout awaiting buyer input, a continue_url on the store, and the list of what the shopper must still provide.
What this run is
A platform agent belongs to someone other than the store. Here the store is remote and belongs to Shopify's platform, so nothing is started locally: scripts/platform_agent.py reads the store's discovery document, calls its tools over UCP (Universal Commerce Protocol, carried on MCP, the Model Context Protocol) with the agent profile Shopify requires on every call, and stops where the store stops it. The default store is the public demo store fakestore-ai.myshopify.com; SHOP_DOMAIN in platforms/shopify/.env points at another.
The scripted run
platforms/shopify/third-party/run.sh
On 8 September 2026 the run printed:
discovery: fakestore-ai.myshopify.com on Shopify · UCP 2026-04-08, 2026-01-23 · handlers []
picked: Workout Shirt · CAD 10.00 · variant gid://shopify/ProductVariant/43696939499542
cart: gid://shopify/Cart/…?key=… · total CAD 10.00
checkout: gid://shopify/Checkout/…?key=… · status requires_escalation · total 10.00
continue_url (variant 1, the shopper pays on the processor's page): https://fakestore-ai.myshopify.com/cart/c/…?key=…
payment handlers the merchant accepts (variant 2/3): []
the store still needs from the shopper before payment: ['buyer_identity_contact_method_required', 'extension_interaction_required', 'delivery_address_required', 'delivery_no_delivery_available_for_merchandise_line']
calls made:
discovery: fakestore-ai.myshopify.com on Shopify · UCP 2026-04-08, 2026-01-23 · handlers []
search_catalog({"catalog": {"query": "a shirt", "pagination": {"limit": 5}}}) → ok
create_cart({"cart": {"line_items": [{"item": {"id": "gid://shopify/ProductVariant/436969394) → ok
create_checkout({"checkout": {"line_items": [{"item": {"id": "gid://shopify/ProductVariant/43696) → needs buyer input
Three things in that output are the point of the run.
The checkout's status is requires_escalation. The store created the checkout and priced it, and it will go no further with a platform that has not supplied what a buyer supplies on the checkout page. Shopify's own client treats this answer as a checkout awaiting buyer input; the reference's script recognizes the shape (an error result that still carries the checkout document) and reports it instead of failing.
The continue_url is on the store: https://fakestore-ai.myshopify.com/cart/c/…. That is the redirect path, the shopper finishing on Shopify's page, and it is the one path a platform gets from a Shopify store without a token-tier credential. It is the same path the five processor merchants return, with the processor's page in place of Shopify's.
The messages say what is still missing: a contact method (buyer_identity_contact_method_required), a delivery address (delivery_address_required), an extension interaction the store's checkout requires (extension_interaction_required), and, until an address is known, no delivery available for the line. A platform that holds those details sends them with update_checkout; the scripted agent does not.
The discovery line names the store's handlers, com.google.pay and dev.shopify.card, read from the object the store's document keys by id. The checkout document lists no handler the script holds a credential for, so the line after it is empty and the platform's path is continue_url.
GOAL changes the search:
GOAL="a jacket" platforms/shopify/third-party/run.sh
Letting a model drive
platforms/shopify/third-party/run.sh --model
--model hands the store's tools to a model through the reference's provider contract and prints every call. Anthropic is the default (claude-sonnet-5, ANTHROPIC_API_KEY); --provider openai (gpt-5, OPENAI_API_KEY), --provider gemini (gemini-2.5-pro, GOOGLE_API_KEY), and --base-url http://localhost:11434/v1 for Ollama drive the same tools. The model is told to put one item in a cart, create a checkout, report the item, the total, the continue_url, and the handlers, and never claim to have paid. The create_checkout tool the model sees accepts a buyer_email, which the script sends as the buyer's contact when the model supplies one; the store's other requirements remain for the shopper.
Where a platform stops on Shopify
complete_checkout is on the store's tool list, and it is not available at the anonymous tier: Shopify's documentation places it, with the order tools, at the token tier, with a payment instrument such as a Shop Pay token, Google Pay, or a card (https://shopify.dev/docs/agents/checkout/mcp, https://shopify.dev/docs/agents/profiles/auth-and-rate-limiting, read 8 September 2026). Shop Pay delegated-payment client IDs were not self-serve as of 31 July 2026. The --complete flag of scripts/platform_agent.py therefore has no working target on a Shopify store from this folder; the demo credential it presents is one the reference's simulated gateway accepts, and Shopify would refuse it.
The reference's own merchants are the place to see the platform-completed path, on their simulated gateways, and its ACP (Agentic Commerce Protocol) endpoints exist only on those merchants; Shopify's stores serve UCP.
An MCP client such as Claude Code
The store's endpoint is an MCP server, https://fakestore-ai.myshopify.com/api/ucp/mcp, and a client can register it with claude mcp add --transport http. What this folder does not claim is that such a client shops successfully: every tools/call on a Shopify store must carry meta.ucp-agent.profile, which scripts/platform_agent.py and Shopify's example inject into each call, and a generic MCP client does not add it. That path was not run in this repository. The Claude Code walkthrough against the reference's own merchants, which accept calls without the profile, is in the Stripe folder's third-party README.
test.sh
The third-party check is the last step of platforms/shopify/test.sh: after Shopify's 91 recorded-response tests, the live discovery and tools/list, and the API boot, it runs the scripted agent against the store with the goal "a shirt" and passes when a checkout is staged. Its log is /tmp/commerce-agents-shopify-agent.log.
platforms/shopify/test.sh
== a scripted third-party agent shops at the store
PASS platform agent staged a checkout on Shopify
ALL PASS (Shopify)