Skip to content

AI / MCP

Tessera hosts a remote MCP server — any MCP client (claude.ai, Claude Desktop, or an agent framework with MCP support) connects to it by URL and gets read-only tools for the loyalty program: the rewards catalogue, a member’s balance, tier status, and points history, and pseudonymous/PII member lookups.

It’s a thin protocol adapter: every tool call is forwarded to the same /v1 operations API this site otherwise documents, using the connection’s own OAuth token as the bearer credential. The server holds no database credentials of its own — /v1 (and the engine behind it) remains the single point that validates tokens and enforces tenant isolation.

The MCP endpoint is a single URL (/mcp) speaking Streamable HTTP. A spec-compliant client discovers everything else on its own:

  1. The client hits /mcp with no credential and gets a 401 carrying a WWW-Authenticate header that points at the server’s Protected Resource Metadata (/.well-known/oauth-protected-resource, RFC 9728) — which names the authorization server.
  2. The client dynamically registers itself with that authorization server (RFC 7591) — no manual client setup.
  3. The client sends you to the authorization server’s /authorize endpoint with PKCE and a resource indicator naming the MCP server, so the token it eventually gets is bound to this server and can’t be replayed elsewhere.
  4. You sign in (or you’re already signed in) with your normal Tessera console credentials, pick which tenant to connect (skipped if you belong to only one), and approve a consent screen naming the loyalty:read scope.
  5. The client exchanges the authorization code for an access token at /token and starts calling tools with it as a bearer credential.

The authorization server is the same console you manage your loyalty program in — there’s no separate account to create. Once connected, the app shows up under Settings → Connected apps in the console, where you can revoke it at any time; revoking deletes the underlying tokens immediately.

Every tool is read-only and scoped to the tenant your connection authorized — there’s no tenant or API-key input to any tool; it’s fixed by the token.

ToolReturnsScope
get_rewards_catalogueThe program’s public rewards catalogue: each redeemable option (points cost, label, constraints) plus the points label. Takes an optional program.public read
get_member_balanceA member’s balances by customer id (from lookup_customer): spendable, pending, qualifying, active holds, clawbacks, and available-to-spend. Takes an optional program.loyalty:read
get_member_statusA member’s tier status: current/effective tier, requalification state, period window, progress to the next tier. Takes an optional program.loyalty:read
get_member_historyA member’s ledger history (earns, burns, adjustments), newest first, paginated via a cursor. Takes an optional program.loyalty:read
lookup_customerA member’s pseudonymous Tessera customer id and join date by (channel, external_id) — no personal data.loyalty:read
get_customer_piiA member’s stored profile — name, email, birthday, locale, marketing consent, social handles — by customer id (from lookup_customer).loyalty:read
get_top_membersThe workspace’s top members, ranked by qualifying points, spendable balance or tier, optionally for one channel: name, tier, balances and channels. Takes an optional program.loyalty:read
search_customerMembers matching an email, phone or (partial) name: name, tier and channels, and whether an email or phone is on file — not the contact details. Takes an optional program.loyalty:read

Once this workspace has two programmes, API, SDK and MCP calls that take a programme but name none are refused with program_required.

Six tools take an optional program: get_rewards_catalogue, get_member_balance, get_member_status, get_member_history, get_top_members and search_customer. It is the programme’s handle or its lower-case id. On a workspace with one programme leave it out and nothing changes. Once the workspace has two programmes it is required: without it the tool answers that the workspace has several programmes and the call needs program. A programme the workspace does not have is answered as “No such programme”, not as a missing member.

The server has no tool that lists programmes, so an agent learns a handle from the merchant, or from the console’s Programmes page. lookup_customer and get_customer_pii forward to routes that take no programme and have no program argument.

  • loyalty:read is the only scope this server ever requests. There is no write scope in v1: no tool can place, finalize, or release a redemption, ingest an event, or write a customer profile. A future write capability would be a separately-gated scope a merchant grants explicitly — it isn’t reachable through anything documented here.
  • The rewards catalogue needs no personalized scope at all (the same public read a publishable API key can make); every other tool requires loyalty:read.
  • get_customer_pii is the one tool that returns contact details and a stored profile (get_top_members and search_customer return member names, never contact details). It’s labelled as such in its title and description so a well-behaved MCP client surfaces that to the person approving its use — reach for it only when the task genuinely needs contact/profile details, and prefer lookup_customer (identity only) otherwise.
  • Every enforcement point already documented for /v1 still applies: tenant isolation and the no-existence-leak 404s are inherited unchanged, since the MCP server is just forwarding to the same API with the connection’s token as the bearer.

See Errors & the envelope for how a forwarded API error surfaces, and the API reference for the exact shape each tool’s underlying endpoint returns.