Valaritas / MCP

Model Context Protocol · Streamable HTTP · JSON-RPC 2.0

Autonomous commerce tools for licensed athletes.

One MCP server gives Shopify Sidekick, UCP, and autonomous commerce agents every merchant capability: discover cleared athletes, enforce footwear and category exclusions, quote 70/30 or 70/15/15 splits, attach products, settle in test mode, and verify Ed25519 receipts.

Endpointhttps://www.valaritasports.com/mcp
TransportStreamable HTTP · JSON-RPC 2.0 · Accept: application/json, text/event-stream
Protocol2025-06-18 (supports 2025-03-26, 2024-11-05)
AuthAuthorization: Bearer vk_test_... or vk_live_... (get a test key)
Discovery/.well-known/mcp.json · /.well-known/oauth-protected-resource
Methodsinitialize, ping, tools/list, tools/call

Live Protocol Probe · Read-Only · Zero Auth Required

Test HTTP 402 payment vs HTTP 403 category firewall live.

Run two real read-only probes in parallel against the production rail: a cleared commercial ask returning HTTP 402 Payment Required with the 7000/3000 bps Stripe split payload, side by side with a blocked Gambling ask refused with HTTP 403 category_blocked and charged: false.

Ready · 2 live endpoints
GET /v1/rights/demo-402
402 Payment Required -- ms
Clearanceallow
Stripe Split7000 / 3000 bps
Chargedfalse
// Click "Run Live Probe" to execute GET /v1/rights/demo-402
// Returns HTTP 402 Payment Required + WWW-Authenticate: Payment
// + database fee-schedule 7000/3000 bps Stripe Connect split.
GET /v1/rights/demo-402?category=Gambling
403 category_blocked -- ms
Error Codecategory_blocked
Meaningconsent_blocked
Chargedfalse
// Click "Run Live Probe" to execute GET /v1/rights/demo-402?category=Gambling
// Returns HTTP 403 category_blocked before any payment challenge
// with charged: false and zero WWW-Authenticate header.

Copy-Ready SDK & Agent Quickstarts

Connect any MCP client or test the Rights API in ten seconds.

Switch between cURL, TypeScript, and Claude / MCP JSON. Every snippet wraps cleanly with zero mobile overflow and runs against your scoped key with idempotency, rate-limit headers, and audit logging.

mcp-config.json
{
  "mcpServers": {
    "valaritas": {
      "url": "https://www.valaritasports.com/mcp",
      "transport": "streamable-http",
      "headers": {
        "Authorization": "Bearer vk_test_REPLACE_WITH_YOUR_KEY"
      }
    }
  }
}

Interactive Agent Sandbox

Walk the autonomous commerce flow step by step.

Inspect deterministic JSON-RPC payloads and responses immediately, browse the public /api/agentic-mirror manifest, or paste a vk_test_ key from /developers to execute live calls against /mcp.

POST /mcp · JSON-RPC 2.0

        
Server response category_blocked

        

Deterministic Enforcement

One server rule across discovery, clearance, quoting, and checkout.

Every store tool evaluates storeEligibility in the exact same order. Footwear exclusions (including Nike, Puma, and adidas brand conflicts) cannot be bypassed by relabeling a product or mutating a brief before payment.

STEP 01 · AVAILABILITY

athlete_not_available

Unavailable, delisted, or needs_review athletes are omitted from listings and refused on clearance, quote, brief, and checkout.

STEP 02 · EXCLUSIONS

category_blocked

Blocked categories (such as footwear or alcohol) and competitor brand exclusions (Nike, Puma, adidas) always win over offered categories — returning HTTP 400 on quote/brief and HTTP 409 on checkout re-check.

STEP 03 · OFFERED

category_not_offered

Any category outside the athlete’s offered groups is refused deterministically with a plain reason_message for merchant UIs and agents.

End-to-End Agent Recipe

From store discovery to verified settlement receipt.

Autonomous commerce agents follow this eight-step loop. No tool can approve on an athlete’s behalf or override a blocked category.

  1. 01
    list_store_athletes — Fetch athletes cleared for the shop alongside the exact Shopify product GIDs they are eligible to appear with.
  2. 02
    check_product_clearance — Verify one athlete and one product right now. Stop on any refusal (category_blocked, athlete_not_available, category_not_offered, licence_taken_down).
  3. 03
    quote_athlete — Price the licence in integer cents with the 70/30 direct split (or pass "agency": true for the 70/15/15 represented split). Files nothing.
  4. 04
    attach_athlete_to_product — File a one-line brief (brf_...) or attach additional cleared products to an existing brief.
  5. 05
    sample_campaign — Render a photo-first watermarked creative alongside sizes, channels, term, territory, and terms_version.
  6. 06
    POST /v1/briefs/{brief_id}/checkout — Settle in test mode with a vk_test_ key. Server re-checks every product exclusion (HTTP 409 if blocked), activates the licence, records the 70% split, and issues a signed Ed25519 receipt. Live keys are refused (HTTP 400 livemode_not_supported).
  7. 07
    get_campaign — Read active licence state, charges with basis-point split, signed receipt, order attribution, and delivered ad.
  8. 08
    verify_receipt — Confirm the Ed25519 signature against the published public key and verify Valaritas holds the receipt on record.

Tool Reference

All 12 MCP tools.

Four core Rights API outcome tools followed by eight Shopify Commerce store tools. Every tool wraps exactly one /v1 endpoint and publishes both inputSchema and outputSchema.

price_athleteREAD
POST /v1/quotes

Price one licence for an athlete and a use. Returns the rate-card quote in integer cents, basis, qualification status, and athlete value score.

Arguments
{
  "athlete": "ath_test_clears",
  "category": "sportswear",
  "territory": "US",
  "term_months": 12
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"price_athlete","arguments":{"athlete":"ath_test_clears","category":"sportswear","territory":"US","term_months":12}}}'
check_clearanceREAD
POST /v1/clearances

Check whether an athlete is cleared for a brand category, territory, and channel. Returns cleared or blocked with the deterministic reason code.

Arguments
{
  "athlete": "ath_test_clears",
  "use": "ad",
  "category": "sportswear",
  "territory": "US",
  "channel": "social"
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"check_clearance","arguments":{"athlete":"ath_test_clears","use":"ad","category":"sportswear","territory":"US","channel":"social"}}}'
request_licenseWRITE
POST /v1/licenses

Book a licence for an athlete, use, category, and territory. Blocked categories and takedowns stay enforced; nothing is approved on the athlete’s behalf.

Arguments
{
  "athlete": "ath_test_clears",
  "use": "ad",
  "category": "sportswear",
  "territory": "US",
  "term_months": 12
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"request_license","arguments":{"athlete":"ath_test_clears","use":"ad","category":"sportswear","territory":"US","term_months":12}}}'
get_approved_assetsREAD
GET /v1/licenses

List the licences your organization holds, with status, athlete, category, territory, and term.

Arguments
{
  "limit": 20
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_approved_assets","arguments":{"limit":20}}}'
list_store_athletesREAD
GET /v1/stores/{shop}/athletes

List athletes a Shopify store can license, each with the store products cleared for their categories. Unavailable athletes and blocked categories are excluded.

Arguments & curl example
Arguments
{
  "shop": "valaritas-demo.myshopify.com"
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":5,"method":"tools/call","params":{"name":"list_store_athletes","arguments":{"shop":"valaritas-demo.myshopify.com"}}}'
quote_athleteREAD
POST /v1/briefs/quote

Price one store licence in integer cents with the 70/30 split (or pass "agency": true for the 70/15/15 split where agency is paid from the platform share). Refuses blocked categories with category_blocked.

Arguments & curl example
Arguments
{
  "shop": "valaritas-demo.myshopify.com",
  "athlete": "ath_example",
  "product_ids": ["gid://shopify/Product/1001"],
  "agency": false
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":6,"method":"tools/call","params":{"name":"quote_athlete","arguments":{"shop":"valaritas-demo.myshopify.com","athlete":"ath_example","product_ids":["gid://shopify/Product/1001"]}}}'
attach_athlete_to_productWRITE
POST /v1/briefs

Attach an athlete to store products. With brief_id it appends products to that brief; otherwise it files a new one-line brief. Blocked categories and brand exclusions return category_blocked.

Arguments & curl example
Arguments
{
  "shop": "valaritas-demo.myshopify.com",
  "athlete": "ath_example",
  "product_ids": ["gid://shopify/Product/1001"],
  "line": "Game-day jersey."
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":7,"method":"tools/call","params":{"name":"attach_athlete_to_product","arguments":{"shop":"valaritas-demo.myshopify.com","athlete":"ath_example","product_ids":["gid://shopify/Product/1001"],"line":"Game-day jersey."}}}'
check_product_clearanceREAD
POST /v1/stores/{shop}/clearance

Check whether an athlete can appear with one store product right now. Answers cleared: true, or a refusal code with reason_message: athlete_not_available, category_blocked, category_not_offered, or licence_taken_down.

Arguments & curl example
Arguments
{
  "shop": "valaritas-demo.myshopify.com",
  "athlete": "ath_example",
  "product": "gid://shopify/Product/1001"
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":8,"method":"tools/call","params":{"name":"check_product_clearance","arguments":{"shop":"valaritas-demo.myshopify.com","athlete":"ath_example","product":"gid://shopify/Product/1001"}}}'
get_campaignREAD
GET /v1/briefs/{brief_id}

Read one brief: licence state, charges with basis-point split, signed Ed25519 receipt once settled, order attribution, and delivered ad.

Arguments & curl example
Arguments
{
  "brief_id": "brf_example"
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":9,"method":"tools/call","params":{"name":"get_campaign","arguments":{"brief_id":"brf_example"}}}'
get_athlete_assetsREAD
GET /v1/stores/{shop}/athletes/{athlete}/assets

List servable media an athlete has approved for brands: their own real self-hosted photos with direct links. Nothing is generated.

Arguments & curl example
Arguments
{
  "shop": "valaritas-demo.myshopify.com",
  "athlete": "ath_example"
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":10,"method":"tools/call","params":{"name":"get_athlete_assets","arguments":{"shop":"valaritas-demo.myshopify.com","athlete":"ath_example"}}}'
sample_campaignREAD
GET /v1/briefs/{brief_id}/sample

Render the photo-first campaign ad a brief would deliver, watermarked “Sample · not licensed”, alongside sizes, channels, term, territory, and terms_version. Charges nothing.

Arguments & curl example
Arguments
{
  "brief_id": "brf_example"
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":11,"method":"tools/call","params":{"name":"sample_campaign","arguments":{"brief_id":"brf_example"}}}'
verify_receiptREAD
POST /v1/receipts/verify

Check a Valaritas receipt: whether the Ed25519 signature verifies against the published public key and whether the receipt is held on record.

Arguments & curl example
Arguments
{
  "receipt": {
    "id": "rcpt_example",
    "object": "payment_receipt",
    "algorithm": "Ed25519"
  }
}
curl
curl -s -X POST https://www.valaritasports.com/mcp \
  -H "Authorization: Bearer $VALARITAS_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":12,"method":"tools/call","params":{"name":"verify_receipt","arguments":{"receipt":{"id":"rcpt_example","object":"payment_receipt","algorithm":"Ed25519"}}}}'