Guides

Inside SolCard MCP: Apps, Real-Time Events, and Skills

How we redesigned SolCard MCP around 11 unified tools, 7 sandboxed ui:// MCP Apps, SEP-3415 signed real-time events, and SHA-256 Agent Skills.

G
Gres· Co-Founder & Lead Dev
· 10 min read
SolCard MCP Apps rendering an interactive merchant spending summary beside a live Solana USDC card checkout widget
In this article

We consolidated SolCard MCP from 18 to 24 legacy endpoints down to 11 model-visible tools, 7 sandboxed ui://solcard/*.html MCP Apps, 5 zero-PII real-time events under SEP-3415 (io.modelcontextprotocol/events), and SHA-256 verified Agent Skills under SEP-2640 (io.modelcontextprotocol/skills), all behind dark feature flags that are live on staging and rolling out progressively to production accounts.

Shipping an MCP server for a real payment platform looks different from wrapping a read-only REST API. After watching real sessions across Claude, Cursor, and custom MCP clients, we hit four recurring failure modes: overlapping tools confused model selection, plain-text deposit addresses caused copy errors, agents polled blindly waiting for on-chain deposits, and every client had to guess our onboarding sequence. Here is how we fixed each one without weakening card-secret isolation on our crypto debit card platform.

What is live for everyone vs. rolling out progressively

Because SolCard handles real card balances across 13 networks and 150M+ merchants worldwide, new MCP surfaces ship dark behind backend feature flags, soak on staging end to end, and roll out progressively to production accounts.

CapabilityProtocol / IdentifierRollout status
Remote Streamable HTTP server + OAuth 2.1 DCR + PKCEhttps://api.solcard.cc/mcp and /mcp/directoryLive in production
Official MCP Registry, Glama Connectors & Claude Code plugincc.solcard/mcp, SolCardDev/solcard-mcpLive in production
Web Agent Skill Discovery (/.well-known/agent-skills)https://app.solcard.cc/.well-known/agent-skills/index.jsonLive in production
Unified 11-tool surface + 2 app-only toolsmcp-unified-tools flag (tools/list dynamic)Live on staging; rolling out progressively to prod
7 Interactive MCP Apps viewsui://solcard/*.html (text/html;profile=mcp-app)Live on staging; rolling out progressively to prod
Official MCP Skills Extensionio.modelcontextprotocol/skills (SEP-2640)Live on staging; rolling out progressively to prod
Customer-Facing MCP Events (webhooks, SSE push, cursor poll)io.modelcontextprotocol/events (SEP-3415 Beta, mcp-events)Live on staging; rolling out to prod next

Every client negotiates capabilities dynamically via tools/list, resources/list, and server/discover, so existing connections keep working as flags advance.

Why we cut 18 to 24 tools down to 11 unified tools

Our first MCP release exposed separate tools for every action: freeze_card, unfreeze_card, set_card_nickname, get_card_activity, search_card_activity, get_spending_summary, explain_decline, get_perma_addresses, create_perma_addresses, create_invoice, list_deposits, get_invoice, and get_deposit_status.

Two things broke in real sessions. First, tool bloat hurt selection accuracy: models routinely called create_invoice when a user simply wanted a reusable deposit address, or pulled unfiltered transactions when they needed a decline explanation. Second, adding onboarding, verification status, and deposit options pushed the legacy surface to 24 tools, burning prompt tokens on every turn.

On the unified surface (mcp-unified-tools), the model sees 11 tools (plus 2 app-only tools with _meta.ui.visibility = ["app"] that only sandboxed widgets can call):

ToolScopeReplaces / ConsolidatesInteractive MCP App View
get_accountcards:writeAccount status, verification state, and next stepsui://solcard/verification.html
list_card_typescards:readCard catalog plus optional per-card crypto payment optionsui://solcard/card-types.html
create_cardcards:writeAutomatic cardholder setup + idempotent card order checkoutui://solcard/invoice-payment.html
fund_cardperma:writeCreates and returns reusable per-slot deposit addresses safelyui://solcard/fund-card.html
get_depositsinvoices:readRecent deposits, in-flight confirmations, or one checkout invoiceText + widget polling
list_cards / get_cardcards:readCard slots, statuses, nicknames, last 4 digits, available balanceui://solcard/cards.html
update_cardcards:managefreeze_card, unfreeze_card, and set_card_nickname in one patchui://solcard/cards.html
reveal_cardcards:revealSingle-use 15-second card-detail viewer (zero PAN in model context)ui://solcard/card-reveal.html
get_activityactivity:readview: "transactions", "summary", or "decline" in one schemaui://solcard/activity.html
get_guidecards:readBuilt-in workflow guides (getting-started, verification, etc.)Markdown guide

Under the hood, fund_card is idempotent and preserves bound card types (keepBoundVid: true), so repeating a call never rebinds a slot or creates stray invoices. Likewise, create_card enforces idempotencyKey replay and open-order guards: retrying the same key returns the exact open invoiceId, and every refusal emits a closed error code (such as VERIFICATION_REQUIRED or NO_FREE_SLOT) instead of leaking raw upstream messages.

Inside the 7 sandboxed MCP Apps

Text-only replies are a bad fit for payment flows. Copying a 44-character Solana address out of a markdown table invites mistakes, and explaining why a card failed works faster when you tap the declined row right inside the transaction list.

We built 7 self-contained HTML bundles served as text/html;profile=mcp-app resources that talk to the host client over the MCP Apps JSON-RPC postMessage bridge (ui/initialize -> ui/notifications/tool-result -> tools/call):

Real SolCard MCP Apps showing card-types.html beside invoice-payment.html with live payment options and inline SVG QR
Real SolCard MCP Apps showing card-types.html beside invoice-payment.html with live payment options and inline SVG QR

Every widget ships with <meta name="referrer" content="no-referrer">, pins csp.connectDomains strictly to the SolCard API origin, forbids innerHTML, eval, and external <script src>, and renders QR codes as pure inline SVG (data:image/svg+xml) so no deposit address ever touches a third-party QR host.

Both mint_card_reveal (ui://solcard/card-reveal.html) and mint_verification_session (ui://solcard/verification.html) are restricted to _meta.ui.visibility = ["app"]. Text-only clients get a clean MCP_APPS_UI_REQUIRED refusal with a link to the SolCard web app, while UI-capable clients mint a single-use token inside the sandboxed iframe.

Inside ui://solcard/activity.html, switching tabs between Transactions and Spending or clicking a declined row calls get_activity straight over the widget bridge without burning another model turn.

Real SolCard MCP App activity widget showing inline decline explanation and 30-day merchant spending breakdown
Real SolCard MCP App activity widget showing inline decline explanation and 30-day merchant spending breakdown

Real-time MCP Events (SEP-3415): webhooks, SSE push, and cursor polling

Previously, if a user sent 150 USDC on Solana to top up a card or hit a balance decline, an agent had no way to know until the human asked again. Polling get_deposits every five seconds wastes rate limits and tokens.

To fix that, we implemented the official MCP Events Extension (io.modelcontextprotocol/events, SEP-3415 Beta, wire-compatible with Vercel Connect MCP Events and AI SDK experimental_events) behind the mcp-events flag.

SolCard MCP CLI installation, live Web Agent Skill discovery output, and SEP-3415 real-time events wire format
SolCard MCP CLI installation, live Web Agent Skill discovery output, and SEP-3415 real-time events wire format

Five scoped, zero-PII events

Every event reuses your existing OAuth scopes (no extra consent checkbox required) and omits PAN, CVV, expiry, last 4 digits, and free-text merchant strings:

  1. deposit.detected (invoices:read): an incoming on-chain deposit appeared on a slot's reusable deposit address.
  2. deposit.credited (invoices:read): funds cleared and loaded onto the card balance.
  3. verification.status_changed (cards:write): full-access identity verification moved to pending, on_hold, approved, or rejected.
  4. card.status_changed (cards:read): a card settled into ACTIVE, FROZEN, CANCELED, or FAILED.
  5. card.declined (activity:read): an authorization failed on a prepaid slot, carrying a structured reason code and USD amount.

Three delivery modes on one event feed

All five events run on the same underlying feed and support three delivery transports:

  • Signed webhooks (events/subscribe and events/unsubscribe) enforce HTTPS-only URLs, DNS resolution with private-IP SSRF blocking, and zero redirects. Deliveries carry Standard Webhooks HMAC-SHA256 signatures with dual-signature secret rotation, pass an initial verification challenge, and retry 5xx errors with exponential backoff using the original webhook-id.
  • Live SSE push (events/stream on POST /mcp) emits notifications/events/event, periodic heartbeats, and immediate notifications/events/terminated (code: -32024) when a user revokes access. Active streams are capped via Valkey leases (12 per user, 500 global).
  • Cursor polling (events/list and events/poll) lets stateless workers pass an opaque cursor (such as v1.18.1796067341406) to catch up cleanly after downtime.

Agent Skills (SEP-2640) and web discovery

Tools tell an agent what it can call; skills tell it how to sequence them safely. We publish the SolCard skill across three synchronized layers so every client reads the same workflow:

  1. In-protocol MCP Skills (io.modelcontextprotocol/skills, SEP-2640) appear in server/discover when mcp-unified-tools is active, exposing skills/list, skills/get, and 5 SHA-256 verified skill://solcard/* Markdown files (SKILL.md plus targeted references for verification, ordering, funding, and card management).
  2. Web Agent Skill Discovery is live in production at https://app.solcard.cc/.well-known/agent-skills/index.json (publishing solcard-api and solcard-mcp with sha256:3a44c81f... digests), paired with https://www.solcard.cc/.well-known/mcp/server-card.json for zero-config endpoint discovery.
  3. Our public repository SolCardDev/solcard-mcp ships both the Claude Code marketplace plugin (/plugin install solcard@solcard) and the skills.sh package (npx skills add SolCardDev/solcard-mcp --skill solcard).

Security invariants across every layer

Moving payment workflows into AI clients only holds up when security lives on the server rather than in prompt text.

SolCard OAuth 2.1 consent preview and security invariants including 15-second secure reveal links and rate limits
SolCard OAuth 2.1 consent preview and security invariants including 15-second secure reveal links and rate limits

Three invariants are enforced by automated tests across the backend:

  • Profile and tenant isolation keeps /mcp/directory strictly separated from io.modelcontextprotocol/events, io.modelcontextprotocol/skills, reveal_card, and payment creation. Cross-user polling or unsubscribe attempts return 0 events or -32023.
  • Card-secret assertions verify that zero tool responses, event payloads, or structured logs contain PAN, CVV, or expiry fields.
  • Explicit human approval governs every dollar: just like our 3D Secure card payment flows, SolCard keeps the human in control of money movement. SolCard cards are prepaid Visa and Mastercard debit cards (not credit cards) funded when you send crypto from your wallet; see SolCard fees, Virtual for AI & Ad Spend, and SolCard reviews for card pricing and customer feedback.

Ready to connect your own assistant? Follow the step-by-step client guide in Connect SolCard MCP to Claude, Cursor, and ChatGPT, or explore how builders spend crypto on AI tools in our Q4 2026 AI spending report and ChatGPT Wallet breakdown.

Frequently asked questions

Are MCP Apps, SEP-3415 Events, and Agent Skills live in production today?

Remote HTTP MCP with OAuth 2.1 DCR, /mcp/directory, Official MCP Registry (cc.solcard/mcp), Glama Connectors, SolCardDev/solcard-mcp, and /.well-known/agent-skills/index.json are live in production today. The unified 11-tool surface, 7 interactive MCP Apps views, SEP-2640 Skills extension (mcp-unified-tools), and SEP-3415 Events (mcp-events) are live at 100% on staging and rolling out progressively to production accounts.

How does SolCard stop prompt injection inside merchant names or widgets?

Every get_activity tool description explicitly marks merchant names and descriptions as untrusted third-party data rather than instructions. Inside the 7 ui://solcard/*.html MCP Apps, strict CSP headers block external scripts and network origins, and the DOM renderer uses zero innerHTML or eval.

Do MCP Events webhooks work with Vercel Connect or custom Node backends?

Yes. SolCard's SEP-3415 webhook delivery uses Standard Webhooks HMAC-SHA256 signatures with dual-signature secret rotation and challenge verification, making it wire-compatible with Vercel Connect MCP Events (@vercel/connect/mcp) as well as any HTTPS endpoint that verifies Standard Webhooks headers.

Why are mint_card_reveal and mint_verification_session marked app-only?

Marking them _meta.ui.visibility = ["app"] keeps short-lived reveal tokens and verification session tokens inside the sandboxed MCP App iframe so the language model never sees or logs them. Text-only clients receive a safe fallback link to the SolCard dashboard instead.

What happens to an open events/stream SSE connection if I revoke my OAuth grant?

SolCard checks grant liveness every 30 seconds on active SSE streams. When you click Revoke in Account -> Connected Agents, the stream emits notifications/events/terminated with code -32024 (Access revoked) and closes cleanly.

Sources

Verified public endpoints, standards, and protocol references
Get the SolCard crypto debit card
More in Guides
Globe
SolCard

150M+ places.
One card.

Top up with SOL, USDC, ETH, BTC and more. Spend it anywhere.

Start for free