L'Atlas / MCP servers / Loyal Spark
MCP server

Loyal Spark

io.github.aspekt19/loyal-spark

MCP server OK 43 tools

Get a review See pricing

43 MCP tools for onchain loyalty on Base: programs, minting, rewards, vouchers. x402 or lsk_ key.

Technical sheet

Author
aspekt19 (registry namespace)
Repository
—
Site
loyalspark.online/for-agents
Version
1.0.6
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://api.loyalspark.online/loyalty-mcp Streamable HTTP
Tools
43
Categories
Finance and payments
Last updated
1 Dec 2026
Published
1 Dec 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 2 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.aspekt19/loyal-spark.svg?lang=en)](https://latlas.dev/en/mcp/io.github.aspekt19/loyal-spark)
HTML
<a href="https://latlas.dev/en/mcp/io.github.aspekt19/loyal-spark"><img src="https://latlas.dev/badge/statut/mcp/io.github.aspekt19/loyal-spark.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.aspekt19/loyal-spark.svg?lang=en)](https://latlas.dev/en/mcp/io.github.aspekt19/loyal-spark)
HTML
<a href="https://latlas.dev/en/mcp/io.github.aspekt19/loyal-spark"><img src="https://latlas.dev/badge/fiche/io.github.aspekt19/loyal-spark.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://api.loyalspark.online/loyalty-mcp
Last result
OK 28 Nov 2026, 10:03
Response time
1,344 ms (initialize + tools/list)
Protocol version
2025-03-26
Announced name
loyal-spark-mcp 1.0.6
Tools
43

History

DateResultResponseTools
28 Nov 2026, 10:03OK1,344 ms43

Exposed tools (43, from tools/list, 28 Nov 2026)

get_platform_info

Get Platform Info

Get info about Loyal Spark protocol on Base L2

No parameters.

get_my_profile

Get My Profile

Get authenticated agent's profile, plan limits, and current-period usage

No parameters.

get_payment_info

Get Payment Info

Free: agent Pro/Enterprise (or merchant) plan options, USDC subscription wallet, per-plan limits, annual prices, and the required-sender rule. Optional product=agent|merchant. Prefer this before paying; verify with POST /verify-agent-plan-payment action verify_payment.

ParameterTypeRequiredDescription
productstringno"agent" (default) or "merchant"

generate_program_defaults

Generate Program Defaults

Workflow planner: field catalog, required parameters, next_actions, and non-binding examples. External agents must choose their own name, symbol, and economics.

ParameterTypeRequiredDescription
business_namestringnoOptional merchant / brand name for example suggestions
categorystringnoOptional business category (e.g. cafe, retail)
descriptionstringnoOptional short business description for examples
localestringnoOptional locale/language hint for example names (e.g. en, ru)
preferred_stylestringnoOptional naming style hint for examples (e.g. playful, premium)
target_audiencestringnoOptional audience hint for examples (e.g. locals, tourists)

get_program_workflow_status

Get Program Workflow Status

Explain the next merchant action: current_step, required fields, and ordered next_actions (you provide all parameter values)

ParameterTypeRequiredDescription
token_addressstringnoOptional token to inspect

list_loyalty_programs

List Loyalty Programs

List loyalty programs owned by the agent's merchant

ParameterTypeRequiredDescription
include_expiredbooleannoInclude expired programs

create_loyalty_program

Create Loyalty Program

Get factory calldata to deploy a new loyalty token on Base. Defaults to B20 (Base-native B20 asset standard, ERC-20 compatible, single tx, active immediately). Pass token_standard='erc20' for the legacy factory. For B20, MINT_ROLE is granted atomically to the merchant admin AND to the agent's CDP wallet (or explicit extra_minters) so autonomous agents can mint with no follow-up transaction.

ParameterTypeRequiredDescription
namestringyesProgram name (required for external agents)
symbolstringyesToken symbol, 2-5 chars (required for external agents)
expiration_daysnumbernoProgram duration in days (default: 365)
token_standardstringno'b20' (default, single-tx deploy on Base precompile factory) or 'erc20' (legacy factory, requires activate_loyalty_program follow-up)
agent_wallet_addressstringno(B20 only) Additional wallet to grant MINT_ROLE atomically. Defaults to the agent's active CDP MPC wallet if not provided.
extra_mintersarray<string>no(B20 only) Extra addresses to grant MINT_ROLE atomically in the same deploy tx.
auto_generatebooleannoInternal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol.
business_contextobjectnoOptional context for examples only
preferred_stylestringnoOptional naming style hint when auto_generate fills examples
localestringnoOptional locale/language hint for auto_generate examples
target_audiencestringnoOptional audience hint for auto_generate examples

register_loyalty_program

Register Loyalty Program

Register a deployed token as a loyalty program in the database. B20 tokens are registered as active; legacy ERC-20 as inactive (activate next).

ParameterTypeRequiredDescription
namestringyesProgram name
symbolstringyesToken symbol
token_addressstringyesDeployed token contract address (0x...)
expiration_daysnumbernoDuration in days (default: 365)
cashback_ratenumbernoDefault cashback percent for earn (1–100). Omit for DB default (5).
points_per_dollarnumbernoLoyalty points per $1 spent (1–1000). Omit for DB default (1).
token_standardstringno'b20' (default) or 'erc20' (legacy)

activate_loyalty_program

Activate Loyalty Program

For legacy ERC-20 programs: returns unpauseUtility + enableMinting calldata. For B20 programs: no-op (already active).

ParameterTypeRequiredDescription
token_addressstringyesToken contract address (0x...)

update_program_status

Update Program Status

Update program status in database after onchain activation/pause

ParameterTypeRequiredDescription
token_addressstringyesToken contract address
statusstringyesNew status: active, paused, or inactive

update_program_config

Update Program Config

Update default cashback_rate and/or points_per_dollar for a program (same as merchant dashboard sliders)

ParameterTypeRequiredDescription
token_addressstringyesToken contract address (0x...)
cashback_ratenumbernoNew default cashback % for earn (1–100). Omit to leave unchanged.
points_per_dollarnumbernoNew points per $1 (0–1000, exclusive 0). Omit to leave unchanged.

list_rewards

List Rewards

List rewards for a loyalty program by token_address. Includes redemption metrics (total vouchers issued, redeemed, and last-30-day counts) for each reward.

ParameterTypeRequiredDescription
token_addressstringyesToken contract address (0x...)

create_reward

Create Reward

Create a new reward redeemable with loyalty tokens

ParameterTypeRequiredDescription
token_addressstringyesToken contract address
namestringyesReward name
descriptionstringnoReward description
costnumberyesToken cost to redeem

mint_loyalty_tokens

Mint Loyalty Tokens

Record a mint intent and get a fee-first calls[] bundle: protocol fee mint first (in the merchant's own loyalty tokens, not USDC), then the recipient mint. Submit both in order (atomically via EIP-5792 if supported), then call confirm_mint_fee with obligation_id, fee_tx_hash, recipient_tx_hash. Unconfirmed fees block future mints. recipient_address takes a 0x Base wallet or a customer email (or use recipient_email); the wallet is resolved server-side.

ParameterTypeRequiredDescription
token_addressstringyesToken contract address
recipient_addressstringnoCustomer 0x Base wallet address or customer email receiving minted tokens. Preferred — matches REST.
recipientstringnoLegacy alias for recipient_address (0x address or email)
recipient_emailstringnoCustomer email address to resolve to their Base wallet
amountnumberyesTokens to mint

transfer_loyalty_tokens

Transfer Loyalty Tokens

Build B20 token transfer calldata (ERC-20 compatible) to send loyalty tokens from your merchant wallet to any 0x address. Recipient: to (alias to_address).

ParameterTypeRequiredDescription
token_addressstringyesToken contract address (0x...)
tostringnoRecipient wallet (0x...)
to_addressstringnoAlias for to (same as REST POST /transfer to_address)
amountnumberyesTokens to transfer

earn_points

Earn Points

Mint cashback tokens for a purchase at the program's cashback rate, optionally redeeming points first (points_to_redeem or redeem_all) to lower the payable amount. Returns a fee-first calls[] bundle (protocol fee mint, then the customer mint): submit in order (atomically via EIP-5792 if supported), then call confirm_mint_fee with obligation_id, fee_tx_hash, recipient_tx_hash. Unconfirmed fees block future mints.

ParameterTypeRequiredDescription
token_addressstringyesToken contract address (0x...)
customer_addressstringyesCustomer wallet (0x...) or email address
customer_emailstringnoCustomer email address
purchase_amountnumberyesPurchase amount in currency units (e.g. dollars)
cashback_ratenumbernoOverride cashback rate (%). If omitted, uses the program's default rate.
points_to_redeemnumbernoOptional integer loyalty points to redeem at the counter to reduce purchase_amount.
redeem_allbooleannoIf true, redeems all available customer loyalty points (up to purchase_amount when positive).

confirm_mint_fee

Confirm Mint Fee

Confirm a prepared mint on Base. Verifies the protocol-fee mint and, when recipient_tx_hash is set (or the fee receipt already contains the recipient mint), writes customer_tier_status so get_token_balance leaves 0. Same hash for both fields when EIP-5792 batched the calls. A second call with recipient_tx_hash still credits the customer after the fee is already settled.

ParameterTypeRequiredDescription
obligation_idstringyesfee_obligation_id returned by mint_loyalty_tokens or earn_points
fee_tx_hashstringyesTransaction hash of the protocol fee mint
recipient_tx_hashstringnoTransaction hash of the mint to the recipient. Same as fee_tx_hash when both mints are in one transaction. Required to update GET /balance.
mint_intent_idstringnoOptional mint_intent_id from the mint response; links this exact intent when several pending mints share token, recipient and amount.

list_mints

List Mints

List mint intents for this merchant. status=pending means transaction_hash is still null (confirm has not credited the recipient). status=completed means the recipient mint was recorded. GET /balance offchain_ledger_balance stays 0 until confirm.

ParameterTypeRequiredDescription
token_addressstringnoOptional loyalty token
statusstringnopending or completed

list_fee_obligations

List Fee Obligations

List protocol-fee obligations for this API key. status=unpaid is an alias for pending. Each unpaid row includes next_action describing POST /mint/confirm.

ParameterTypeRequiredDescription
statusstringnounpaid, pending, settled, or failed

get_token_balance

Get Token Balance

Get loyalty token balance and tier info for a customer (accepts 0x Base wallet address or customer email in customer_address / customer_email)

ParameterTypeRequiredDescription
token_addressstringyesToken contract address
customer_addressstringyesCustomer 0x Base wallet address or customer email

get_program_analytics

Get Program Analytics

Get analytics for one of your loyalty programs. total_customers is the same count export_customers and GET /customers report; a program you do not own returns program_not_found.

ParameterTypeRequiredDescription
token_addressstringyesToken contract address (0x...)

list_marketplace_offers

List Marketplace Offers

List active token trading offers on the marketplace

ParameterTypeRequiredDescription
statusstringnoFilter: active/completed/cancelled
limitnumbernoMax results (1-100)
token_addressstringnoOptional. When set, only offers that give or ask for this token.

redeem_reward

Redeem Reward

Redeem a reward by providing a verified token transfer transaction hash. Creates a voucher for the customer.

ParameterTypeRequiredDescription
reward_idstringyesUUID of the reward to redeem
customer_addressstringyesWallet address of the customer who transferred tokens
transaction_hashstringyesOnchain tx hash of the token transfer from customer to merchant

use_voucher

Use Voucher

Mark a voucher as used at the merchant. Send one of voucher_code (alias code) or voucher_id (anyOf). If neither is sent the tool returns error_code missing_identifier and an example. A voucher used before returns error_code voucher_already_used (do not retry).

ParameterTypeRequiredDescription
voucher_codestringnoVoucher code (LOYAL-XXXX-XXXX-XXXX-XXXX). Use this OR voucher_id.
codestringnoAlias of voucher_code.
voucher_idstringnoVoucher UUID. Use this OR voucher_code.

check_voucher_status

Check Voucher Status

Check voucher status for this merchant. Send one of code, voucher_code, or voucher_id (anyOf). If none is sent the tool returns error_code missing_identifier, an example, and next_action. Anonymous public lookup is GET /agent-api/vouchers/status.

ParameterTypeRequiredDescription
codestringnoVoucher code (LOYAL-XXXX-XXXX-XXXX-XXXX). One of code, voucher_code, or voucher_id is required.
voucher_idstringnoVoucher UUID. One of code, voucher_code, or voucher_id is required.
voucher_codestringnoAlias of code. One of code, voucher_code, or voucher_id is required.

create_personalized_offer

Create Personalized Offer

Create a personalized offer for a specific customer. Use when analytics reveal engagement patterns (e.g., inactive customers, high-value segments).

ParameterTypeRequiredDescription
token_addressstringyesToken contract address
customer_addressstringyesCustomer wallet address
titlestringyesOffer title (e.g., 'Welcome back! 20% bonus tokens')
descriptionstringnoOffer description
bonus_tokensnumbernoBonus tokens to award
discount_percentagenumbernoDiscount percentage (0-100)
valid_daysnumbernoHow many days the offer is valid (default: 7)

update_reward_status

Update Reward Status

Activate or deactivate a reward in the catalog. Use to manage reward availability based on analytics.

ParameterTypeRequiredDescription
reward_idstringyesUUID of the reward
is_activebooleanyestrue to activate, false to deactivate

send_report

Send Report

Internal. Send a report to the merchant's Agent Reports dashboard (SEO audits, growth ideas, anomalies, weekly summaries). Not a loyalty action.

ParameterTypeRequiredDescription
agent_rolestringyesYour role: ceo, seo, growth, or analyst
report_typeenum: "seo_audit" | "audit" | "growth_idea" | "data_report" | "anomaly" | "task" | "recommendation" | "weekly_report"yesOne of: seo_audit, audit, growth_idea, data_report, anomaly, task, recommendation, weekly_report. Anything else is rejected (400 invalid_input), not renamed.
titlestringyesReport title (max 500 chars)
contentstringyesReport body text (max 10000 chars)
prioritystringnoPriority: low, medium, high, or critical
action_itemsarray<string>noList of suggested action items

list_my_reports

List My Reports

Internal. List reports this agent submitted (status new, reviewed, or done).

ParameterTypeRequiredDescription
statusstringnoFilter by status: new, reviewed, done (optional)
limitnumbernoMax results 1-50 (default: 20)

update_report_status

Update Report Status

Internal. Set a report you submitted to reviewed or done.

ParameterTypeRequiredDescription
report_idstringyesUUID of the report
statusstringyesNew status: reviewed or done

delete_report

Delete Report

Internal. Delete a report you submitted.

ParameterTypeRequiredDescription
report_idstringyesUUID of the report to delete

export_customers

Export Customers

Export customers of one of your loyalty programs: the same wallet set and total_customers as GET /customers and get_program_analytics (voucher holders, ledger rows, completed mints), each with voucher stats, on-chain current_balance plus offchain_ledger_balance, and tier. Email-only store customers are listed in store_customers.

ParameterTypeRequiredDescription
token_addressstringyesToken address of the loyalty program

list_store_discount_codes

List Store Discount Codes

List discount codes for this merchant's Shopify store, plus how customers spend points (online code, register voucher, or both).

ParameterTypeRequiredDescription
token_addressstringnoProgram address. Omit to list every linked store.

update_store_discount_code

Update Store Discount Code

Mark a Shopify discount code used, or cancel it and return the loyalty points. Same actions as the merchant discount-code journal.

ParameterTypeRequiredDescription
redemption_idstringyesId from list_store_discount_codes.
actionstringyesuse or cancel

set_store_sales_channel

Set Store Sales Channel

Set how this store's customers spend loyalty points: online (checkout code), offline (voucher at the register), or both (the shopper chooses).

ParameterTypeRequiredDescription
channelstringyesonline, offline, or both

create_gift_certificate

Create Gift Certificate

Create a gift / welcome certificate (UDS-style) with a unique random redemption code (LOYAL-XXXX-XXXX-XXXX). Customer redeems via QR or by entering the code; merchant then mints tokens on-chain. Use for welcome bonuses, promo campaigns, partnership gifts.

ParameterTypeRequiredDescription
token_addressstringyesERC-20 loyalty token address (must belong to the agent's merchant)
usd_amountnumberyesCertificate face value in USD (positive)
points_per_dollarnumbernoOptional override of program rate (e.g. 10 = 10 tokens per $1). Defaults to program's points_per_dollar.
max_redemption_percentnumbernoMax % of any future purchase the customer can pay with these tokens (5–100). Default 50.
titlestringnoDisplay title (default: 'Gift Certificate')
descriptionstringnoOptional descriptive text shown to the customer
expires_in_daysnumbernoValidity period in days (omit for no expiry)
image_urlstringnoOptional public image URL for the cert design
quantitynumbernoNumber of certificates to create as a batch (1–100, default 1)

list_gift_certificates

List Gift Certificates

List gift certificates issued by the agent's merchant (with status and redemption info).

ParameterTypeRequiredDescription
token_addressstringnoFilter by program token address (optional)
statusstringnoFilter by status: active, pending_mint, redeemed, expired, revoked
limitnumbernoMax rows (default 50, max 200)

revoke_gift_certificate

Revoke Gift Certificate

Revoke an active gift certificate (status active -> revoked). Only the issuing merchant can revoke. Already-redeemed/minted certificates cannot be revoked.

ParameterTypeRequiredDescription
certificate_idstringyesUUID of the certificate from create_gift_certificate / list_gift_certificates

mark_gift_certificate_minted

Mark Gift Certificate Minted

After the merchant submits the on-chain mint transaction for a claimed gift certificate, call this to mark it as minted (status pending_mint -> redeemed) and store the mint tx hash.

ParameterTypeRequiredDescription
certificate_idstringyesUUID of the certificate
transaction_hashstringyesBase L2 mint transaction hash (0x...)

bazaar_discover_resources

Bazaar Discover Resources

Discover third-party x402-paid resources published in Coinbase CDP's Bazaar (docs, data feeds, AI inference, etc). Read-only. Filter by free-text q and/or network (e.g. 'base').

ParameterTypeRequiredDescription
qstringnoFree-text filter matched against the resource JSON (name/description/url)
networkstringnoFilter by network, e.g. 'base' or 'base-sepolia'
limitnumbernoMax rows returned (default 25, max 100)
cursorstringnoPagination cursor from a previous call

bazaar_discover_mcp_servers

Bazaar Discover MCP Servers

Search Coinbase CDP's Bazaar MCP catalog (search_resources) for third-party x402-payable tools. Read-only, free. Rows are run via the Bazaar MCP server's proxy_tool_call, not here.

ParameterTypeRequiredDescription
qstringnoSearch text, e.g. 'weather' or 'loyalty'
networkstringnoNetwork: 'base', 'base-sepolia', or CAIP-2 like 'eip155:8453'
limitnumbernoMax rows (default 20, max 20)
cursorstringnoIgnored: CDP search has no cursor. Narrow with q/network.

bazaar_probe_x402

Bazaar Probe x402

Probe one x402 resource URL without paying: a single GET (https only, 5 s, 64 KB, no redirects). If it answers HTTP 402, returns a parsed summary of the x402 payment requirements (PAYMENT-REQUIRED header or accepts[]). Any other status returns error not_x402_resource with the status only: the response body is never returned. No signing. No API key needed: keyless calls are limited to 20/minute per IP; with a key the key's own limits apply.

ParameterTypeRequiredDescription
urlstringyesFull https:// URL of the x402-paid endpoint

bazaar_pay_and_call

Bazaar Pay And Call

Pay a Loyal Spark x402 URL on api.loyalspark.online with the merchant agent's CDP MPC wallet (EIP-3009 exact scheme, Base USDC). Other hosts are refused before any signature. Requires scope 'mint' and an active CDP wallet. max_usdc default 0.25, hard limit 10.

ParameterTypeRequiredDescription
urlstringyesFull https:// URL of the x402 resource
methodenum: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"noHTTP method (default GET)
bodynoOptional JSON request body for non-GET methods
headersobjectnoExtra request headers (Accept/Content-Type auto-set)
max_usdcnumbernoSpend cap for THIS call in USDC (default 0.25, must be ≤ 10)
allowed_networksarray<string>noNetworks to accept (default ['base', 'eip155:8453'])
allowed_schemesarray<string>nox402 schemes to accept (default ['exact'])

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://api.loyalspark.online/loyalty-mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http loyal-spark https://api.loyalspark.online/loyalty-mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : loyal-spark ; URL : https://api.loyalspark.online/loyalty-mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : loyal-spark ; Server URL : https://api.loyalspark.online/loyalty-mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "loyal-spark": {
      "url": "https://api.loyalspark.online/loyalty-mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "loyal-spark": {
      "type": "http",
      "url": "https://api.loyalspark.online/loyalty-mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "loyal-spark": {
      "url": "https://api.loyalspark.online/loyalty-mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "loyal-spark": {
      "httpUrl": "https://api.loyalspark.online/loyalty-mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.loyal-spark]
url = "https://api.loyalspark.online/loyalty-mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

Loyal Spark · L’Atlas · Tested on

Markdown
[Loyal Spark — L’Atlas](https://latlas.dev/en/mcp/io.github.aspekt19/loyal-spark)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.