A platform agent shopping at Lumen Home, on Stripe
Point a program that does not belong to the store at the Stripe merchant's UCP endpoint, let it search, build a cart, and stage a checkout, and see what Stripe lets a platform do from there.
What this run is
A platform agent is the other program: it belongs to a shopping platform, an assistant product, or a developer's terminal, and it never uses the store's own chat. It reads the merchant's discovery document, calls the merchant's tools over UCP (Universal Commerce Protocol) carried on MCP (the Model Context Protocol), and ends with one of two things: Stripe's payment page URL for the shopper, or an order it paid for with a credential Stripe accepts from a platform. Lumen Home, the fictional Stripe merchant, also serves ACP (the Agentic Commerce Protocol) for platforms that speak OpenAI's shape.
The scripted run
third-party/run.sh starts the merchant API on 8016 if it is not already up, prints the brand line, and runs scripts/platform_agent.py against it.
platforms/stripe/third-party/run.sh
Without --model the agent is scripted: discovery, a search for the goal, the first in-stock product, a cart, a checkout. On the simulated gateway the output on 8 September 2026 was:
merchant: Lumen Home · Stripe · gateway simulated · checkout hosted
discovery: Lumen Home on Stripe · UCP 2026-04-08, 2026-08-25 · handlers ['com.google.pay', 'com.stripe.payments']
picked: Lumen Home Kids Rocket Table Lamp · USD 22.00 · variant gid://lumen-home/ProductVariant/AR-2107
cart: gid://lumen-home/Cart/… · total USD 22.00
checkout: gid://lumen-home/Checkout/cko_… · status incomplete · total 22.00
continue_url (variant 1, the shopper pays on the processor's page): http://localhost:8016/checkout/cko_…
payment handlers the merchant accepts (variant 2/3): ['com.google.pay', 'com.stripe.payments']
With STRIPE_SECRET_KEY in platforms/stripe/.env, the same run creates a Checkout Session in Stripe's test mode and continue_url is Stripe's page (https://checkout.stripe.com/c/pay/cs_test_…, seen on 6 September 2026). Open it, pay with 4242 4242 4242 4242, and Stripe returns the shopper to a short page at /ucp/return that says the agent which created the checkout will read the result. get_checkout then reports completed with the order.
GOAL changes what the agent looks for:
GOAL="a chef's knife" platforms/stripe/third-party/run.sh
Letting a model drive
--model hands the merchant's tools to a model through the reference's provider contract, and the script prints every call the model makes. The default provider is Anthropic (claude-sonnet-5, read from ANTHROPIC_API_KEY); --provider openai uses gpt-5 with OPENAI_API_KEY, --provider gemini uses gemini-2.5-pro with GOOGLE_API_KEY, and --base-url points the OpenAI provider at an OpenAI-compatible endpoint such as Ollama at http://localhost:11434/v1.
platforms/stripe/third-party/run.sh --model
The system prompt tells the model to report the item, the total, the continue_url, and the handlers, and never to claim it paid. Claude was run live this way on 6 September 2026; the OpenAI and Gemini providers are unit-tested against their documented wire shapes and were not run live.
The platform pays by itself
platforms/stripe/third-party/run.sh --complete gpay_demo
On the simulated gateway the agent presents gpay_demo as a com.google.pay credential and the last line reads platform-completed: status completed · order gid://lumen-home/Order/ORD-…. Against live Stripe the same flag makes Stripe refuse the demo token, which is the correct outcome: com.google.pay needs a real Google Pay payload tokenized for Stripe as the gateway, and com.stripe.payments needs a shared payment token minted in Stripe's program. The script prints the processor refused the credential: … with Stripe's own words (on 8 September 2026: a 400 naming the missing shared payment token), the checkout stays incomplete, and its continue_url remains the path to take.
An MCP client such as Claude Code
platforms/stripe/third-party/run.sh --serve
keeps the merchant up and prints the three endpoints. The repository's .mcp.json already registers this merchant as lumen-home (and Aurora Escapes as aurora-escapes), so starting Claude Code in the repository root and approving the project servers is enough. To register it anywhere else:
claude mcp add --transport http lumen-home http://localhost:8016/api/ucp/mcp
Then, in a session, /mcp shows lumen-home connected with twelve tools, and a prompt such as "Using only the lumen-home tools, find a table lamp under 80 dollars, create a checkout for one unit, and report the item, the total, the continue_url and the payment handlers; do not claim to have paid" does the whole flow. The one-shot form needs no approval prompt:
claude -p --mcp-config .mcp.json --strict-mcp-config --allowedTools mcp__lumen-home "Using only the lumen-home tools, find a table lamp under 80 dollars, create a checkout for one unit, and report the item, the total, the continue_url and the payment handlers. Do not claim to have paid."
Verified on 6 and 7 September 2026 with Claude Code on macOS; the recording is in docs/media/.
The endpoints on the merchant
| Endpoint | Protocol | Purpose |
|---|---|---|
GET /.well-known/ucp |
UCP discovery | versions (2026-04-08 served, 2026-08-25 listed), the MCP endpoint, capabilities, payment_handlers, and a store.completion block |
POST /api/ucp/mcp |
UCP over MCP (JSON-RPC) | initialize, tools/list, tools/call: 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 |
the storefront MCP | search_shop_policies_and_faqs |
GET /ucp/return |
return leg | where Stripe sends the shopper after a platform-created checkout |
POST /acp/checkout_sessions, POST …/{id}, GET …/{id}, POST …/{id}/complete, POST …/{id}/cancel |
ACP 2026-04-17 | a checkout session priced from the catalog, with checkout_url (Stripe's page) and capabilities.payment.handlers |
GET /acp/feed.json |
ACP feed | the products a platform indexes |
The payment handlers this processor advertises
psp_commerce/thirdparty/ucp.py builds the handler list from the adapter's delegated_providers, which for Stripe are stripe and google_pay (psp_commerce/adapters/stripe.py).
| Handler | Config | What the adapter does with it |
|---|---|---|
com.google.pay (2026-01-23) |
PAYMENT_GATEWAY tokenization, gateway stripe, gateway_merchant_id MID-700-LUMEN |
charges the Google Pay token as payment_method_data[card][token] on a PaymentIntent |
com.stripe.payments (2026-06-25) |
Stripe's tokenize endpoint; instruments card, link, google_pay, apple_pay | charges a shared payment token with payment_method_data[shared_payment_granted_token] |
On ACP the capabilities.payment.handlers entry is dev.acp.tokenized.card with psp: stripe and credential type spt on live Stripe; on the simulated gateway it reads psp: mock.