Hal's Dummy Store

ShopCartGuided tasksAPI docs

Dummy test shop. Nothing here is for sale and no real payment is ever taken. Checkout is simulated.

Storefront

MethodPathWhat it does
GET/Shop homepage, product grid and search
GET/products/{id}Product page
GET/cartCart page (uses the ds_cart cookie or ?cart_id=)
POST/cart/addAdd to cart (form: product_id, quantity)
GET/checkoutCheckout page (simulated payment)
POST/checkoutSubmit simulated checkout
GET/order/{id}Order confirmation page
GET/tasksGuided tasks for agent testing
GET/healthHealth check

JSON product API

MethodPathWhat it does
GET/api/products?q=&category=&max_price=List products
GET/api/products/{id}Product detail

OAuth 2.0

MethodPathWhat it does
GET/.well-known/oauth-authorization-serverDiscovery metadata
GET/oauth/authorize?client_id&redirect_uri&response_type=code&scope&stateAuthorization page (demo user auto-filled)
POST/oauth/authorizeApprove or deny (form post)
POST/oauth/tokenToken endpoint: authorization_code, refresh_token, client_credentials
GET/oauth/userinfoUser info (Bearer token)
POST/oauth/introspectToken introspection (client auth)
GET/oauth/callbackDemo redirect target that displays the code

UCP-shaped commerce

MethodPathWhat it does
GET/ucpCapability document
GET/ucp/productsList products
GET/ucp/products/{id}Product detail
POST/ucp/cartsCreate a cart
GET/ucp/carts/{id}Get cart with totals
POST/ucp/carts/{id}/itemsAdd item {product_id, quantity}
DELETE/ucp/carts/{id}/items/{product_id}Remove item
POST/ucp/carts/{id}/checkoutSimulated checkout, returns an order
GET/ucp/orders/{id}Get order

Conversations

MethodPathWhat it does
POST/conversationsStart a thread {title?, cart_id?}
GET/conversationsList threads
GET/conversations/{id}Read a thread
POST/conversations/{id}/messagesPost a message {role, content}; a user message gets an agent reply
DELETE/conversations/{id}Delete a thread

MCP (streamable HTTP)

MethodPathWhat it does
POST/mcpMCP endpoint. Send initialize, then tools/list and tools/call. Stateless: no session ID needed.
Tools: search_products, get_product, add_to_cart, view_cart, checkout

Examples

OAuth token (client credentials)

curl -X POST https://hal.jordanrs.co.uk/oauth/token -d 'grant_type=client_credentials&client_id=demo-client&client_secret=demo-secret&scope=products:read'

OAuth token (authorization code)

curl -X POST https://hal.jordanrs.co.uk/oauth/token -d 'grant_type=authorization_code&code=CODE&redirect_uri=https://hal.jordanrs.co.uk/oauth/callback&client_id=demo-client&client_secret=demo-secret'

UCP checkout

curl -X POST https://hal.jordanrs.co.uk/ucp/carts -d '{}' -H 'Content-Type: application/json'
curl -X POST https://hal.jordanrs.co.uk/ucp/carts/CART_ID/items -d '{"product_id":"prod_001","quantity":1}' -H 'Content-Type: application/json'
curl -X POST https://hal.jordanrs.co.uk/ucp/carts/CART_ID/checkout -d '{"customer":{"name":"Demo","email":"demo@hal.jordanrs.co.uk"}}' -H 'Content-Type: application/json'

MCP tools/list

curl -X POST https://hal.jordanrs.co.uk/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Demo OAuth client: demo-client / demo-secret. Scopes: products:read cart:write checkout conversations:write.