mcp-apps-sdk

mcp-apps-sdk is a cursor rule for Cursor from solvapay/solvapay-sdk. It costs 0 tokens per session (2,196 once invoked), scanned A, original, MIT.

A set of rules for building and changing SolvaPay software components that let merchants' tools work inside AI assistants. It defines three response states: normal data, a non-blocking warning, or a blocked request when access is unavailable.

In plain words
What is it for?
Use it when working in the SolvaPay MCP Apps SDK, merchant APIs, checkout examples, or related user interface surfaces.
Why use it?
It helps keep the merchant's data central and makes sure the interface responds consistently when users have warnings or lack access.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/solvapay/solvapay-sdk/mcp-apps-sdk
Clone the repo
git clone --depth 1 https://github.com/solvapay/solvapay-sdk

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-apps-sdk

README.md
[![agentmods](https://agentmods.dev/badge/rules/solvapay/solvapay-sdk/mcp-apps-sdk.svg)](https://agentmods.dev/rules/solvapay/solvapay-sdk/mcp-apps-sdk)
Your own site
<a href="https://agentmods.dev/rules/solvapay/solvapay-sdk/mcp-apps-sdk"><img src="https://agentmods.dev/badge/rules/solvapay/solvapay-sdk/mcp-apps-sdk.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,196 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02196
Opus 5 $0.00000 $0.01098
Sonnet 5 $0.00000 $0.00439
Haiku 4.5 $0.00000 $0.00220

Measured 4d ago against content hash 61bb0c6d07e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-apps-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/mcp-apps-sdk.mdc · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SolvaPay MCP Apps SDK — rules

Rules for building and refactoring the SolvaPay SDK for MCP Apps. Read before writing any code in packages/mcp-core, packages/mcp, packages/mcp-express, packages/mcp-fetch, packages/react/mcp, or examples/mcp-checkout-app / examples/supabase-edge-mcp.

Full contributor-facing copy: docs/contributing/mcp-apps-sdk-rules.md.

North Star

The merchant's data is the hero. Commerce defers to it.

Every design decision should serve this. When in doubt, ask: does this make the merchant's tool feel more native to Claude/ChatGPT, or less? If less, don't ship it.

The three modes

Every SolvaPay response is in one of three modes. Know which before writing code.

  1. Silent. Merchant's tool returned data. No iframe, no card, no upsell. Just the data. This is 90% of calls for a paying user.
  2. Nudge. Data returned and something is worth flagging (low balance, cycle ending, approaching limit). Small inline strip. Dismissible. Never blocks.
  3. Gate. Data could not be returned. User is out of credits or needs to upgrade. SDK takes over the surface. Focused, terminal, collapses after.

If you're building a UI surface that doesn't match one of these three, stop and escalate.

Rules

Commerce UI

  • Do not add tabs to the MCP shell. The four-tab shell is deprecated. Each intent (/manage_account, /topup, /upgrade) opens a single-purpose surface and returns to chat when done.
  • Do not build an About surface. Product description lives in tool descriptions, Claude's text response, and the docs://solvapay/overview.md resource. Not in an iframe.
  • The UI is a mode, not a primary. McpAppShell is an internal composition. What's exported as primary is intent-specific surfaces.
  • One surface, one job. No nested navigation. No multi-step wizards except where genuinely unavoidable (card entry, top-up amount selection). If a surface needs tabs to fit its content, the content is too broad.
  • Route on structuredContent.view, not tool name. <McpApp> resolves the surface from the server-stamped view discriminator (checkout / account / topup) on any intent-tool result. The paywall / nudge surfaces were removed with the text-only paywall refactor — merchant paywall / nudge responses narrate in content[0].text and don't mount the widget. The iframe opens only when the user (or LLM) deliberately invokes one of the three intent tools (upgrade / manage_account / topup).

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 98 lines · 0 tokens per session scan A 61bb0c6d07e7

Subscribe to this mod's changes

mcp-apps-sdk is a cursor rule published in the GitHub repository solvapay/solvapay-sdk (5 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,196 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.