A platform agent shopping at Northstar Outfitters, on Clover

Point a program that does not belong to the store at the Clover merchant's UCP endpoint, let it shop the Clover inventory and stage a checkout, and see what a Clover merchant can and cannot offer a platform.

What this run is

A platform agent belongs to someone other than the store. It reads Northstar Outfitters' discovery document, calls the merchant's tools over UCP (Universal Commerce Protocol) carried on MCP (the Model Context Protocol), and ends with the hosted page URL for the shopper, or, where the processor allows it, with an order the platform paid for. The merchant also serves ACP (the Agentic Commerce Protocol). Northstar Outfitters is fictional, and its merchant always runs on the simulated gateway (see the platform README).

The scripted run

third-party/run.sh starts the merchant API on 8010 if needed, prints the brand line, and runs scripts/platform_agent.py. The storefront is not started.

platforms/clover/third-party/run.sh

On 8 September 2026:

merchant: Northstar Outfitters · Clover · gateway simulated · checkout hosted
discovery: Northstar Outfitters on Clover · UCP 2026-04-08, 2026-08-25 · handlers ['com.google.pay']
picked: Basecamp 4-Person Family Tent · USD 219.00 · variant gid://northstar-outfitters/ProductVariant/NSTENT4P00001
cart: gid://northstar-outfitters/Cart/… · total USD 219.00
checkout: gid://northstar-outfitters/Checkout/cko_… · status incomplete · total 219.00
continue_url (variant 1, the shopper pays on the processor's page): http://localhost:8010/checkout/cko_…
payment handlers the merchant accepts (variant 2/3): ['com.google.pay']

The variant ids are Clover item ids, which is what a platform would see at a merchant whose catalog is a Clover inventory. The default goal is "a family tent under 250 dollars". GOAL names something else:

GOAL="a headlamp" platforms/clover/third-party/run.sh

Open continue_url and press a tender on the local hosted page; get_checkout then reports completed with the order. On a live Clover merchant the URL would be a Clover Hosted Checkout session; that path has not been run in this repository.

Letting a model drive

platforms/clover/third-party/run.sh --model

--model hands the merchant'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. A model id after --model overrides the default. The model is told to put one item in a cart, create a checkout, report the item, total, continue_url, and handlers, and never claim to have paid.

The platform pays by itself

platforms/clover/third-party/run.sh --complete gpay_demo

On 8 September 2026 the last line read platform-completed: status completed · order gid://northstar-outfitters/Order/ORD-…. That result needs a caveat the other four merchants do not. Northstar's gateway is built with build_gateway and simulates no particular processor, so it accepts every documented demo credential. The real Clover adapter declares no delegated providers and its authorize_delegated refuses every credential (psp_commerce/adapters/clover.py): a live Clover merchant would answer payment_handler_unsupported and name continue_url as the path, and its discovery document would list no handler, with store.completion.platform_completed reading "none: this processor charges no platform-presented credential here". A platform integrating a Clover merchant should plan on the redirect path only.

An MCP client such as Claude Code

platforms/clover/third-party/run.sh --serve

keeps the merchant up and prints the endpoints. The repository's .mcp.json registers lumen-home and aurora-escapes; this merchant is added with one command, from the directory where Claude Code will run:

claude mcp add --transport http northstar-outfitters http://localhost:8010/api/ucp/mcp

claude mcp get northstar-outfitters should then report it connected, and /mcp in a session lists twelve tools. For the one-shot form, write an MCP configuration file containing only this merchant ({"mcpServers": {"northstar-outfitters": {"type": "http", "url": "http://localhost:8010/api/ucp/mcp"}}}) and pass it:

claude -p --mcp-config northstar-outfitters.mcp.json --strict-mcp-config --allowedTools mcp__northstar-outfitters "Using only the northstar-outfitters tools, find a family tent under 250 dollars, create a checkout for one, and report the item, the total, the continue_url and the payment handlers. Do not claim to have paid."

The Claude Code flow was verified against the Stripe merchant on 6 and 7 September 2026; every merchant here serves the same endpoint from psp_commerce/thirdparty/ucp.py.

The endpoints on the merchant

Endpoint Protocol Purpose
GET /.well-known/ucp UCP discovery versions, the MCP endpoint, capabilities, payment_handlers, store.completion
POST /api/ucp/mcp UCP over MCP search_catalog, get_product, lookup_catalog, create_cart, get_cart, update_cart, create_checkout, update_checkout, get_checkout, cancel_checkout, complete_checkout, get_order
POST /api/mcp storefront MCP search_shop_policies_and_faqs (returns, pickup, shipping, Trailhead Rewards, gift cards)
GET /ucp/return return leg where the processor sends the shopper after a platform-created checkout
POST /acp/checkout_sessions and /{id}, /{id}/complete, /{id}/cancel ACP 2026-04-17 a session with checkout_url and capabilities.payment.handlers; item ids are Clover item ids such as NSTENT4P00001
GET /acp/feed.json ACP feed the items a platform indexes, with enable_search and enable_checkout flags

The payment handlers this processor advertises

On the simulated gateway psp_commerce/thirdparty/ucp.py advertises com.google.pay for every merchant, with PAYMENT_GATEWAY tokenization, the gateway id the code assigns to Clover, and gateway_merchant_id MID-100-NORTHSTAR; the ACP handler list shows dev.acp.tokenized.card with psp: mock. Those are the simulation's answers.

The real Clover adapter's delegated_providers is empty. Live, the UCP handler list would be empty, the ACP handler list would be empty, and every complete_checkout or ACP complete would be refused. Clover's hosted page and payment links are the whole third-party offer, which matches the redirect path Shopify's own stores use.