# #8 Wire Coffee > A small coffee roaster in Geraldine, South Canterbury, New Zealand. Three coffees and an enamel mug, sold one-off or as a fortnightly subscription. Prices are NZD and include GST. We only ship within New Zealand. > This store runs on the Stripe sandbox: no real money moves and no coffee ships. Test card: 4242 4242 4242 4242, any future expiry, any CVC. This file explains how an agent can buy from us. Everything a person can do on the site, an agent can do with tools: in the browser through WebMCP, or headless through our MCP server. ## Catalog - [catalog.json](https://8wirecoffee.miller.cool/catalog.json): every product with sizes, grinds and prices in cents. Start here. - [/.well-known/ucp](https://8wirecoffee.miller.cool/.well-known/ucp): Universal Commerce Protocol profile with catalog search and lookup over REST. - Every page carries schema.org `Product`/`Offer` JSON-LD. - **No. 8 House Blend** (`no8-house-blend`): medium roast. Milk chocolate, Roasted hazelnut, Mandarin. Brazil, Colombia, Ethiopia. 250g $21.00 (fortnightly $18.90), 1kg $68.00 (fortnightly $61.20). https://8wirecoffee.miller.cool/coffee/no8-house-blend - **Southerly** (`southerly`): light roast. Blueberry, Bergamot, Mānuka honey. Hambela Wamena, Guji, Ethiopia. 250g $25.00 (fortnightly $22.50), 1kg $82.00 (fortnightly $73.80). https://8wirecoffee.miller.cool/coffee/southerly - **Black Singlet** (`black-singlet`): dark roast. Dark chocolate, Molasses, Toasted coconut. Papua New Guinea, Sumatra. 250g $20.00 (fortnightly $18.00), 1kg $64.00 (fortnightly $57.60). https://8wirecoffee.miller.cool/coffee/black-singlet - **Wire Enamel Mug** (`wire-enamel-mug`): Survives tramps, utes and the dog. $28.00. https://8wirecoffee.miller.cool/shop/wire-enamel-mug Grinds: `wholebean`, `espresso`, `stovetop`, `filter`, `plunger` (default `wholebean`). Sizes: `250g`, `1kg`. Purchase: `one_time` or `fortnightly` (subscription, 10% off, free delivery, charged every 14 days). ## Shipping - NZ Post courier $9.00, free on orders over $60.00. Rural delivery $14.00 ($5.00 over the threshold). - Subscriptions always ship free, including one-off items added to the first box. - Roasted Monday, shipped Tuesday, at most doors Wednesday. ## Buying in a browser (WebMCP) Every page registers WebMCP tools on `document.modelContext` (polyfilled where the browser lacks it; also mirrored on `navigator.modelContext` for the earlier API). The whole purchase can be done with tools, payment included. Payment happens on our own `/checkout` page with Stripe Elements, so the tools keep working through payment. - `list_products` (Every page): Every coffee and the mug, with sizes, grinds and one-off and fortnightly prices in cents. - `get_product` (Every page): One product by slug: tasting notes, origin, brew guide, prices. - `get_cart` (Every page): Cart lines, subtotal, shipping, total, and whether checkout will be one-off or a subscription. - `add_to_cart` (Every page): Add a coffee (slug, size, grind, purchase one_time or fortnightly, quantity) or the mug. - `update_cart_item` (Every page): Change the quantity, size, grind or purchase type of a cart line. Quantity 0 removes it. - `remove_from_cart` (Every page): Remove a cart line by line_id. - `clear_cart` (Every page): Empty the cart. - `begin_checkout` (Every page): Go to /checkout and start a Stripe checkout for the current cart. Payment happens on our own page, not Stripe's hosted page. - `get_account` (Every page): The signed-in shopper: email, saved cards, subscriptions, recent orders. - `manage_subscription` (Every page): Skip the next box, pause, resume or cancel a subscription for the signed-in shopper. - `get_checkout` (/checkout): Checkout state: items, totals, email, address, delivery options, saved cards, and what's still missing before paying. - `set_contact` (/checkout): Set the receipt email. - `set_shipping_address` (/checkout): Set the NZ delivery address (name, line1, line2, city, postal_code). - `select_shipping_option` (/checkout): Choose courier or rural delivery (one-off orders only). - `use_test_card` (/checkout (sandbox)): Attach Stripe's test Visa to the shopper so the agent can pay without typing card numbers. - `pay` (/checkout): Confirm payment with a saved card (payment_method_id) or the card typed into the form. Requires expected_total_cents. - `get_order_confirmation` (/order/complete): Order number, items, total and delivery address after payment. - `join_newsletter` (Every page (declarative form)): Sign up to the fortnightly roast-day email. A typical run: 1. `list_products`, then `add_to_cart` with `slug`, `size`, `grind`, `purchase` and `quantity`. 2. `begin_checkout`. The page navigates to `/checkout`; wait for ``, then re-read the tools. 3. `set_contact` (email) and `set_shipping_address` (name, line1, optional line2, city, 4-digit postal_code). 4. `get_checkout` to see the total and `missing` fields. Confirm the total with the buyer. 5. `pay` with `expected_total_cents` and either a saved `payment_method_id` from `get_checkout`, or `use_card_in_form: true` once card details are typed into the Stripe form. In this sandbox you can call `use_test_card` first to get a payment method id without typing card numbers. 6. When `` appears, `data-ew-order-number` and `data-ew-order-total` hold the receipt; `get_order_confirmation` returns it in full. Until then the payment has not completed: do not pay again. The tools exist only in a browser that loads the page with WebMCP: Chrome or Edge with WebMCP enabled, the MCP-B extension, or Playwright (`page.webmcp`). `` appears once a page's tools are registered. ## Buying headless (MCP) Remote MCP server, Streamable HTTP: `https://8wirecoffee.miller.cool/mcp` Public tools (no auth): - `list_products`: The catalog with prices in NZD cents. - `get_product`: Full details for one product. - `quote_cart`: Price a cart: lines, shipping options, total, and the fortnightly charge for subscriptions. - `create_checkout_link`: A link to our checkout with the cart pre-filled, for a person (or a browser agent with WebMCP) to pay. - `get_order_status`: Look up an order by number and email. - `get_shipping_info`: Delivery rates, roast days and timings. Account tools need an agent key, sent as `Authorization: Bearer 8wk_…` (or `?key=` for URL-only clients). The buyer creates one at https://8wirecoffee.miller.cool/account after their first checkout. Orders charge their saved card and ship to their saved address, up to the key's per-order limit. - `get_account`: Email, saved card, delivery address, subscriptions and recent orders for the key's owner. - `place_order`: Buy now on the saved card. Needs expected_total_cents from quote_cart. - `subscribe`: Start fortnightly delivery on the saved card. Needs expected_first_charge_cents from quote_cart. - `list_orders`: Recent orders. - `list_subscriptions`: Active, paused and cancelled subscriptions with next delivery dates. - `change_subscription`: Swap coffee, size, grind or bag count. - `skip_next_delivery`: Push the next box back a fortnight. - `pause_subscription`: Pause until resumed. - `resume_subscription`: Resume a paused or cancelling subscription. - `cancel_subscription`: Cancel at the end of the current fortnight (or immediately). - `get_billing_portal_link`: A Stripe billing portal link for the account owner to update their card. `place_order` needs `expected_total_cents` and `subscribe` needs `expected_first_charge_cents`, both from `quote_cart`. If the price has changed the call fails with `total_mismatch`: re-quote and check with the buyer. ## Before you buy - Confirm the total (and, for subscriptions, the fortnightly charge) with the buyer before paying. - Saving the card for later is the buyer's choice; it is what makes agent reorders possible. - Subscriptions can be skipped, paused, changed or cancelled any time. ## Contact hello@8wirecoffee.example