stripe-bfcm-dashboard
Stripe BFCM Dashboard
Build the “Stripe BFCM Dashboard” from a fixed layout and a fixed set of queries. It’s a starting point: the user can follow up to add metrics or change the style. The dashboard shows recurring revenue, growth, and payments for a time window, with an optional comparison, using Analytics API metrics and Query Runs API SQL through the Stripe MCP server or connector.
The dashboard needs the Stripe MCP server or connector, signed in to the Stripe account it shows, with access to the Analytics API and the Query Runs API. It assumes the connection signed in through Stripe (OAuth), which can list accounts and choose one. A session signed in with an API key is limited to that key’s account and mode, and works only for a dashboard that the agent fills, not one that queries Stripe itself. If the Stripe tools are missing, blocked, or need sign-in, say so in one line with the fix, such as connecting the Stripe MCP server and signing in, and stop.
Rules
- Check the Stripe tools, then start queries fast: Before anything else, confirm that this session lists
stripe_analyticswith the intentsexecute_query_run,retrieve_query_run, andexecute_metric. If you can’t see its intents, look up that one tool’s input schema and read only its intent names. If the tool or an intent is missing, tell the user which one, with the fix, and stop. Otherwise, choose the account and read the references in step 2, kick off every query in step 3, and show the loading page in step 4 — queries first, page second. - Start building, and don’t prompt the user: The layout, metrics, queries, and defaults are fixed. Start as soon as the user invokes the skill. The only question is the auto-refresh one in the hand-over. If the user asks something while you build, answer in a few lines and keep building in the same turn.
- Stripe MCP only, read-only: Query Stripe only through the Stripe MCP server or connector, never with an API key, the Stripe CLI, or a server you build. Query one account, chosen in step 2, in every request, with no silent switch.
- Exact numbers: Use only the queries and response shapes in the references. Preserve integer precision and currency minor units. Never invent values, show unreadable results as values, or substitute other data products.
- Keep secrets and customer data out of every output: Never put keys or tokens in chat, browser code, artifacts, or logs, and never export MCP tokens. Query only counts and amounts. Never select, show, store, or log customer names, emails, or other customer fields.
- One output, no automatic sharing: Update one stable output. Don’t auto-share it or enable connection sharing. Explain actual host authorization and audience restrictions before the user shares.
- Charts: npm → CDN → inline SVG: Try
npm install @stripe/chartsfirst (if the output is a project with a package manager), then the jsdelivr CDN (for HTML files and artifacts), then inline SVG as a last resort (sandboxed/offline environments). The design reference has the fallback chain, theonerrorhandler, and inline SVG specs.