mpp-stripe-client
Skill42 starsChanged 50 days agoMITView on GitHub
Machine Payment Protocol (MPP) client using Stripe. Prompts for a target MPP-protected URL, then handles the 402 challenge flow automatically — creating a Stripe Shared Payment Token (SPT) and retrying to retrieve the paid resource.
- Reads credentials
- Installs packages
In this repository45 other files it gives its agents.
- agent-rdf-memory/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- a2a-clientSkill
- acp-clientSkill
- csv-to-rdf-det-generatorSkill
- data-twinglerSkill
- dbpedia-query-skillSkill
- document-to-kg-skillSkill
- fediverse-crudSkill
- fuxi-engineerSkill
- infographic-describerSkill
- iodbc-dsn-managerSkill
- kg-generatorSkill
- linked-data-skillsSkill
- llm-routing-skillSkill
- monidSkill
- mtls-curlSkill
- opal-agent-skill-assemblerSkill
- openlink-license-managerSkill
- openlink-license-readerSkill
- openlink-request-broker-configuratorSkill
- opml-rss-readerSkill
- osdi-inclusion-engineSkill
- pinchtabSkill
- rdf-det-variant-generatorSkill
- rdf-infographic-skillSkill
- resource-access-offers-generatorSkill
- rss-feed-generatorSkill
- s3-query-skillSkill
- screencast-recorderSkill
- set-webdav-resource-propertySkill
- sparql-faceted-browserSkill
- ucp-clientSkill
- uriburner-opal-agent-skillsSkill
- virtuoso-rdf-bulk-loaderSkill
- virtuoso-rdf-loaderSkill
- virtuoso-support-agentSkill
- wc2026-match-reportSkill
- weblog-from-webdavSkill
- website-from-webdavSkill
- wikidata-query-skillSkill
- world-cup-2026-navigatorSkill
- x402-buyerSkill
- xmla-clientSkill
- youidSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Ask the user for:
- Distinctive: line 49
If no URL is provided, ask for it.
- Very specific: line 60
Do not use npm run cli — it reads .env which overrides inline variables with localhost defaults.
- Distinctive: line 65
Create a Stripe test payment method
- Distinctive: line 66
Create a Stripe Shared Payment Token (SPT) scoped to the challenge amount
- Very specific: line 80
If the server doesn't return 402, report the actual status and body.
- Distinctive: line 81
If Stripe calls fail, report the Stripe error message.
- Distinctive: line 82
If the MPP challenge parsing fails, report the raw challenge for diagnosis.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MPP Stripe Client Skill
When to Use
- "Pay for this resource at ..."
- "Access this MPP-protected URL ..."
- "Use Stripe to pay for ..."
- "Run MPP client against ..."
- Any request referencing a URL that returns
402 Payment Requiredwith an MPP challenge.
Prerequisites
The project must be installed at ~/Documents/Management/Development/mpp-stripe-client/:
cd ~/Documents/Management/Development/mpp-stripe-client
npm installA Stripe test secret key (sk_test_...) is required. Set it as an environment variable:
export STRIPE_SECRET_KEY=sk_test_...Or the skill will ask for it.
Workflow
⛔ PRE-BUILD CHECK: Before producing output, re-read the relevant workflow section above and re-read any checklists or verification gates defined in this skill. Confirm each checklist item before writing output. Build to pass — do not retro-fit. Apply the CLAUDE.md Anti-Drift Protocol: re-read spec section before build, gate-first validation, section-by-section delivery.
Step 1 — Collect target URL and Stripe key
Ask the user for:
- Target URL — the MPP-protected resource to access
- Stripe secret key — if
STRIPE_SECRET_KEYis not already in the environment
If no URL is provided, ask for it. Do not assume defaults.
Step 2 — Run the MPP client
With the target URL and Stripe key confirmed, execute the client. The client runs from the installed project directory and accepts the target URL as SERVER_URL:
cd ~/Documents/Management/Development/mpp-stripe-client \
&& SERVER_URL="<target-url>" STRIPE_SECRET_KEY="<key>" npx tsx cli.tsDo not use npm run cli — it reads .env which overrides inline variables with localhost defaults. Always invoke npx tsx cli.ts directly with inline SERVER_URL and STRIPE_SECRET_KEY.
The client will:
GET <target-url>— receive402 Payment Requiredwith challenge- Create a Stripe test payment method
- Create a Stripe Shared Payment Token (SPT) scoped to the challenge amount
GET <target-url>withAuthorization: Payment <credential>- Receive
200with the paid resource and receipt
Step 3 — Present the result
Show the user:
- The HTTP status
- The response body (the paid resource)
- The receipt header value (
Authentication-Info)
Error handling
- If the server doesn't return
402, report the actual status and body. - If Stripe calls fail, report the Stripe error message.
- If the MPP challenge parsing fails, report the raw challenge for diagnosis.
Configuration
| Variable | Required | Default |
STRIPE_SECRET_KEY | Yes | Prompted if missing |
SERVER_URL | Yes | Prompted if missing |
STRIPE_PAYMENT_METHOD | No | Creates test card pm_... |
MPPX_STRIPE_SPT_URL | No | Stripe test endpoint |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

