Loyal Spark
Base MCP (39 tools) on Base: programs, mint, rewards. lsk_ key; plan limits enforced. /for-agents
Is this yours? Claim it freeA few minutes with a DNS record or a file. Then edit it, get uptime emails, a README badge and paid calls.
Add to your AI
Remote MCP server (streamable HTTP). Most clients sign you in with the provider on first use.
Claude Code
claude mcp add --transport http loyal-spark https://api.loyalspark.online/loyalty-mcp
Claude Desktop, Cursor, Windsurf (mcp config)
{
"mcpServers": {
"loyal-spark": {
"url": "https://api.loyalspark.online/loyalty-mcp"
}
}
}
ChatGPT: Settings → Connectors → add a custom connector with the URL above.
How to call Loyal Spark from code (MCP)
Remote MCP over streamable HTTP with the official SDKs: initialize, list its tools, then call_tool / callTool.
Python
# pip install mcp
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
async with streamablehttp_client("https://api.loyalspark.online/loyalty-mcp") as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
print([t.name for t in tools.tools])
asyncio.run(main())TypeScript
// npm i @modelcontextprotocol/sdk
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(new StreamableHTTPClientTransport(new URL("https://api.loyalspark.online/loyalty-mcp")));
console.log((await client.listTools()).tools.map((t) => t.name));Call it with the Rooms SDK
Through the Rooms switchboard (a Rooms specialist answers if it doesn't). SDK docs
// npm i https://rooms.aurmada.com/sdk/rooms-a2a-0.1.0.tgz
import { Rooms } from "rooms-a2a";
const r = await new Rooms().ask("…", { agent: "loyal-spark" });
# pip install https://rooms.aurmada.com/sdk/rooms_a2a-0.1.0-py3-none-any.whl
from rooms_a2a import Rooms
r = Rooms().ask("…", agent="loyal-spark")Track record
- Uptime
- 100% uptime over the last 27 checked days (one unpaid request a day)
- Calls via Rooms (30 days)
- 0
No calls through Rooms in the last 30 days yet. Rooms only counts what it brokers, hosts or checks; nothing is estimated.
Tools (40)
- Get Platform Info
get_platform_infoGet info about Loyal Spark protocol on Base L2 - Get My Profile
get_my_profileGet authenticated agent's profile, plan limits, and current-period usage - Get Payment Info
get_payment_infoFree: 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-… - Generate Program Defaults
generate_program_defaultsWorkflow planner: field catalog, required parameters, next_actions, and non-binding examples. External agents must choose their own name, symbol, and economics. - Get Program Workflow Status
get_program_workflow_statusExplain the next merchant action: current_step, required fields, and ordered next_actions (you provide all parameter values) - List Loyalty Programs
list_loyalty_programsList loyalty programs owned by the agent's merchant - Create Loyalty Program
create_loyalty_programGet 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 grant… - Register Loyalty Program
register_loyalty_programRegister a deployed token as a loyalty program in the database. B20 tokens are registered as active; legacy ERC-20 as inactive (activate next). - Activate Loyalty Program
activate_loyalty_programFor legacy ERC-20 programs: returns unpauseUtility + enableMinting calldata. For B20 programs: no-op (already active). - Update Program Status
update_program_statusUpdate program status in database after onchain activation/pause - Update Program Config
update_program_configUpdate default cashback_rate and/or points_per_dollar for a program (same as merchant dashboard sliders) - List Rewards
list_rewardsList rewards for a loyalty program by token_address. Includes redemption metrics (total vouchers issued, redeemed, and last-30-day counts) for each reward. - Create Reward
create_rewardCreate a new reward redeemable with loyalty tokens - Mint Loyalty Tokens
mint_loyalty_tokensRecord 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… - Transfer Loyalty Tokens
transfer_loyalty_tokensBuild B20 token transfer calldata (ERC-20 compatible) to send loyalty tokens from your merchant wallet to any 0x address. Recipient: to (alias to_address). - Earn Points
earn_pointsMint 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 mi… - Confirm Mint Fee
confirm_mint_feeConfirm 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 fiel… - List Mints
list_mintsList 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 c… - List Fee Obligations
list_fee_obligationsList protocol-fee obligations for this API key. status=unpaid is an alias for pending. Each unpaid row includes next_action describing POST /mint/confirm. - Get Token Balance
get_token_balanceGet loyalty token balance and tier info for a customer (accepts 0x Base wallet address or customer email in customer_address / customer_email) - Get Program Analytics
get_program_analyticsGet 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. - List Marketplace Offers
list_marketplace_offersList active token trading offers on the marketplace - Redeem Reward
redeem_rewardRedeem a reward by providing a verified token transfer transaction hash. Creates a voucher for the customer. - Use Voucher
use_voucherMark 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… - Check Voucher Status
check_voucher_statusCheck 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/… - Create Personalized Offer
create_personalized_offerCreate a personalized offer for a specific customer. Use when analytics reveal engagement patterns (e.g., inactive customers, high-value segments). - Update Reward Status
update_reward_statusActivate or deactivate a reward in the catalog. Use to manage reward availability based on analytics. - Send Report
send_reportInternal. Send a report to the merchant's Agent Reports dashboard (SEO audits, growth ideas, anomalies, weekly summaries). Not a loyalty action. - List My Reports
list_my_reportsInternal. List reports this agent submitted (status new, reviewed, or done). - Update Report Status
update_report_statusInternal. Set a report you submitted to reviewed or done.
Automated check: 90/100
Last run 2026-11-27 18:05 UTC. What we measured, not a guarantee.
- 10/10Every URL is https.
- 40/40MCP initialize answered (loyal-spark-mcp 1.0.6).
- 15/1540 tools listed by tools/list.
- 10/10MCP server card at https://api.loyalspark.online/.well-known/mcp/server-card.json.
- 10/10Has a homepage or documentation link.
- 5/5Answered in 669 ms.
- 0/10Not claimed with a domain proof yet.