Dummy test shop. Nothing here is for sale and no real payment is ever taken. Checkout is simulated.
Storefront
| Method | Path | What it does |
|---|
| GET | / | Shop homepage, product grid and search |
| GET | /products/{id} | Product page |
| GET | /cart | Cart page (uses the ds_cart cookie or ?cart_id=) |
| POST | /cart/add | Add to cart (form: product_id, quantity) |
| GET | /checkout | Checkout page (simulated payment) |
| POST | /checkout | Submit simulated checkout |
| GET | /order/{id} | Order confirmation page |
| GET | /tasks | Guided tasks for agent testing |
| GET | /health | Health check |
JSON product API
| Method | Path | What it does |
|---|
| GET | /api/products?q=&category=&max_price= | List products |
| GET | /api/products/{id} | Product detail |
OAuth 2.0
| Method | Path | What it does |
|---|
| GET | /.well-known/oauth-authorization-server | Discovery metadata |
| GET | /oauth/authorize?client_id&redirect_uri&response_type=code&scope&state | Authorization page (demo user auto-filled) |
| POST | /oauth/authorize | Approve or deny (form post) |
| POST | /oauth/token | Token endpoint: authorization_code, refresh_token, client_credentials |
| GET | /oauth/userinfo | User info (Bearer token) |
| POST | /oauth/introspect | Token introspection (client auth) |
| GET | /oauth/callback | Demo redirect target that displays the code |
UCP-shaped commerce
| Method | Path | What it does |
|---|
| GET | /ucp | Capability document |
| GET | /ucp/products | List products |
| GET | /ucp/products/{id} | Product detail |
| POST | /ucp/carts | Create a cart |
| GET | /ucp/carts/{id} | Get cart with totals |
| POST | /ucp/carts/{id}/items | Add item {product_id, quantity} |
| DELETE | /ucp/carts/{id}/items/{product_id} | Remove item |
| POST | /ucp/carts/{id}/checkout | Simulated checkout, returns an order |
| GET | /ucp/orders/{id} | Get order |
Conversations
| Method | Path | What it does |
|---|
| POST | /conversations | Start a thread {title?, cart_id?} |
| GET | /conversations | List threads |
| GET | /conversations/{id} | Read a thread |
| POST | /conversations/{id}/messages | Post a message {role, content}; a user message gets an agent reply |
| DELETE | /conversations/{id} | Delete a thread |
MCP (streamable HTTP)
| Method | Path | What it does |
|---|
| POST | /mcp | MCP 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.