mcp-apps-sdk

mcp-apps-sdk is a cursor rule for Cursor from solvapay/solvapay-sdk. It costs 0 tokens per session (3,144 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

Written for Cursor: installed under .cursor/. Also seen: mentions Claude Code.

Good fit Use it when working in the SolvaPay MCP Apps SDK, merchant APIs, checkout examples, or related user interface surfaces.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/solvapay/solvapay-sdk/mcp-apps-sdk
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-apps-sdk

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 3,144 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.03144
Opus 5.5 $0.00000 $0.01258
Sonnet 5.5 $0.00000 $0.00629
Haiku 4.5 $0.00000 $0.00314

Measured 2mo ago against content hash 235a5aad4e2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 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 view (checkout, account, topup) 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 account viewer result. The iframe opens when the user (or LLM) deliberately invokes the account viewer or completes a recovery path that names it. Slash prompts /upgrade, /manage_account, and /topup still exist — they remap onto account + view.
  • Layout law is a product decision, not a spec requirement. Management pages run one full-width column. Only checkout / top-up / plan-switch split, so the split itself signals a transaction. Payment leads with a 340px SummaryRail (border-right). DOM order = reading order = source order — no order: -1 / order-*. The money ladder belongs to the summary rail; the form column collects input and ends at the CTA.
  • Fullscreen is the hosted page, not a stretched widget. Advertise availableDisplayModes: ['inline', 'fullscreen'] (SOLVAPAY_MCP_APP_CAPABILITIES). Read displayMode from host context. The host owns the expand affordance — the SDK advertises and reacts, it does not call requestDisplayMode. Same React tree; 1000px hosted column with 56px 72px 40px padding on the shell (outside the 1000px); payment rail 340; management one column; no in-widget header. Below 1000px of measured host width, the container query falls back to the inline stack. One scroll owner. No pip. Honors hostContext.safeAreaInsets as root padding — not env(safe-area-inset-*).
  • Shared tokens. MCP Apps spec names (--color-*, --font-*, --border-radius-*) plus --solvapay-* only for branding extras. No parallel --sp-* palette. Stripe appearance reads live CSS vars via getComputedStyle.
  • Frame owner sets --font-sans. Hosted: provider fontFamily. MCP widget: host hostContext.styles / applyHostStyleVariables. Do not ship Inter as an override. --font-mono stays pinned.
  • The host owns the outer frame. prefersBorder: true on the UI resource. Never paint a border, background, or radius on the widget root or the surface card (.solvapay-mcp-card). Grouping inside a surface uses hairlines only. Root padding comes only from hostContext.safeAreaInsets.

Read the full file on GitHub · 110 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. 2mo ago Changed · +1 lines 235a5aad4e2a
  2. 2mo ago Changed 67bf55ad9b93
  3. 2mo ago Changed · +11 lines 5535eaed2135
  4. 3mo 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 3,144 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.

Related

mcp-apps-sdk compared with cursor rules from other repositories

mcp-apps-sdk next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-apps-sdksolvapay/solvapay-sdkCursor rule5yesterdayMITA0Cursor
djangosanjeed5/awesome-cursor-rules-mdcCursor rule3.6k11d agoCC0-1.0A2,043Cursor
api-property-optionality-hygienenovuhq/novuCursor rule40kyesterdaynoneA0Cursor
cursormrwogu/promptscriptCursor rule3253d agoMITA53Cursor
pythonPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A734Cursor
gosupertokens/create-supertokens-appCursor rule248d agoApache-2.0A0Cursor
ehs-ims-conventionsSafetyMP/Autonomous-EHS-ManagementCursor rule95d agoApache-2.0A722Cursor