Bring your own agent
This is a live preview of the whole architecture, built for Claude Code; other agent harnesses that speak the Model Context Protocol (MCP) may also work. You bring the agent and drive the full lifecycle yourself — author a policy, propose a product, and read back the verdict — against the real Shopify catalog over the Universal Commerce Protocol (UCP), a standard for exposing structured product data.
Prerequisites
Section titled “Prerequisites”- The Claude Code CLI.
- The
ucpCLI, for product discovery — set up below. - Optionally the
ucpskill, which makes catalog search more efficient.
1. Install
Section titled “1. Install”curl -fsSL -X POST https://delta-mandate-mcp.repyhlabs.dev/install | shMints your identity and wires the MCP into Claude Code. Re-running the command above creates a fresh identity.
The minted identity is a bearer token: it authenticates you to this MCP and
scopes the intents you can read back. It is not a signing key — this preview
submits intents with Unsigned authorship, which the orchestrator accepts (see
Authorship). Nothing here signs on your behalf.
Then run claude and type /mcp — you should see delta-mandate connected with
5 tools.
2. Set up Shopify UCP tools
Section titled “2. Set up Shopify UCP tools”You need the ucp CLI for product
discovery. If it isn’t installed yet, Claude Code can set it up autonomously when
needed.
The agent uses it to find products in Shopify’s global catalog via UCP and propose a variant — delta mandate extracts the evidence straight from that exact variant.
The ucp skill mentioned in the link above is optional; it makes the agent’s
catalog search more efficient.
3. Use it
Section titled “3. Use it”In Claude Code, type:
use delta-mandate to find me a black leather wallet under $50What happens behind the scenes?
Two tools are in play — the delta-mandate MCP from step 1 and the Shopify ucp CLI
from step 2:
- Learn the policy language and find the product’s taxonomy category —
get_language_guide+search_taxonomy(MCP). - Author and validate the policy —
submit_policy(MCP), which returns apolicy_id. - Search the Shopify catalog for a matching variant — the
ucpCLI, which returns an identifier of the formgid://shopify/ProductVariant/42582963060798. - Submit the intent and then the proposal —
submit_proposalwith thepolicy_idand that identifier (MCP), which returns anintent_id. The intent is unsigned. - Read the verdict —
get_outcomewith theintent_id(MCP):successwith the extracted evidence, orfailurewith the failed constraints.