Prerequisites
- A SolvaPay account. Create one if you don’t have one.
- An AI coding tool that supports Agent Skills.
- Node.js with
npx.
1. Install the skills
From your project root:solvapay (the router), create-mcp-app, app-integration, and pay-with-solvapay. With a skills CLI older than 1.5.7, run npx skills add solvapay/skills instead. See Use the SolvaPay agent skill for tool-specific options.
2. Give the project a sandbox key
Either run the CLI, which signs you in and writes the key to.env:
.env yourself:
.env
.env.
3. Ask the agent to integrate
Describe what you’re charging for. Name the product, the price, and what’s free. For example:- API or app
- MCP server
solvapay skill routes the request: app-integration for an app, API, or website, and create-mcp-app for an MCP server. The agent creates the product and plan, adds the paywall, and tells you how to run it.
4. Check the result with a first paid call
Run the project the way the agent tells you, then:- Call the protected endpoint or tool as a new customer. You get a paywall: a
402withcheckoutUrlfor an API, or a checkout link in the tool result for an MCP server. - Open the checkout link and pay with the Stripe test card
4242 4242 4242 4242, any future expiry date, and any CVC. - Call it again. It succeeds: this is your first paid call.
If the agent gets stuck
Point it at the facts it needs:- Authentication and base URL: base URL, auth header, key prefixes.
llms.txt: an index of every docs page as Markdown.- Plans: the
options[]format for plans.