VEYNDO
Handbook
templates/shopper-guide/README.mdView source ↗

English source · 2 min

Shopper-facing MCP App

A product guide that a shopping assistant shows as an interactive view. The shopper view (storefront.assistant) reads public product-care records with read-only MCP tools; merchants edit them in the product tab and see private merchandising notes in their own assistant (admin.assistant).

Part Where
Product tab editor admin.product.tab, list_entries / save_entries
Shopper view in an assistant storefront.assistant, public read tool list_entries
Merchant view in Studio's assistant admin.assistant, list_merchant_entries (apps.read)

It is the Product Guide package with a new app ID; that guide explains the two views and how a JavaScript host calls them.

A catalog document for the shopper view

contract.json, the package contract next to the manifest, declares views.shopper: a card from the shared component catalog (veyndo:components/1) per content language. Veyndo's chats render it in place instead of the framed view. It binds only the read the view ran: /rows/0/title is the first record's title in the shopper's language (the shop's main language fills gaps), /arguments/… the tool's declared input. Review and installation (POST /api/apps/review, then POST /api/apps with manifest and contract) refuse unknown components, markup, actions and bindings outside that read, with a JSON pointer such as /views/shopper/de. The sandbox deploy script installs the manifest only, so there the framed view stays. See App view documents.

Test, deploy, see it

npm test
VEYNDO_URL=https://api.veyndo.ai VEYNDO_SHOP=<shop id> VEYNDO_TOKEN=<personal session> npm run deploy

In the sandbox, add a care entry to a product, then ask the storefront assistant about that product. MCP clients find the tool with tools/list on the sandbox's POST /mcp. Build your first app.

scripts/deploy-sandbox.mjs and tests/manifest.test.mjs are shared by all app templates; keep them unchanged so veyndo app new can refresh them.