ASG Card community skill for building Machine Payments Protocol flows on Stellar
stellar-mpp-payments-skill is an early-stage Shell project in the AI payments / x402 ecosystem. It currently has 3 GitHub stars and 0 forks.
A practical MPP skill for AI agents on Stellar.
Build paid APIs, agent payment clients, and Stripe-to-Stellar machine payment flows with MPP, Soroban SAC transfers, and optional one-way channels.
Built by ASG Card as a community-facing companion to our earlier Stellar x402 work.
This repo is for builders who want to understand or ship Machine Payments Protocol (MPP) flows on Stellar without starting from a blank page.
One install. Your AI agent learns how to:
WWW-Authenticate: Payment402 Payment Required automaticallyIn practical terms, this repo gives the user:
MPP on Stellar is still early. Most builders have to piece the flow together from protocol docs, SDK internals, and scattered examples.
This repo compresses that work into something runnable.
Use it if you are:
stellar-mpp-payments-skill/
├── .cursorrules # Cursor / Windsurf hook
├── install.sh # One-command installer
├── examples/
│ ├── stellar-mpp-server/ # Seller example: payment-gated API
│ └── stellar-mpp-client/ # Buyer example: automatic 402 payment client
└── stellar-mpp-payments/
├── SKILL.md # Main skill and decision tree
└── references/
├── charge.md # One payment per request
├── channel.md # Off-chain commitment flow
├── packages.md # Package matrix and install guidance
└── stripe-interop.md # Stripe MPP -> Stellar MPP migration notes
402 -> Payment -> verified response flow.curl -sSL https://raw.githubusercontent.com/ASGCompute/stellar-mpp-payments-skill/main/install.sh | bash
The installer copies the stellar-mpp-payments skill into Claude Code, Codex, Cursor/Windsurf, or Gemini locations.
git clone https://github.com/ASGCompute/stellar-mpp-payments-skill.git
mkdir -p ~/.claude/skills
cp -r stellar-mpp-payments-skill/stellar-mpp-payments ~/.claude/skills/
git clone https://github.com/ASGCompute/stellar-mpp-payments-skill.git
mkdir -p ~/.codex/skills
cp -r stellar-mpp-payments-skill/stellar-mpp-payments ~/.codex/skills/
git clone https://github.com/ASGCompute/stellar-mpp-payments-skill.git
cp stellar-mpp-payments-skill/.cursorrules ./
cp -r stellar-mpp-payments-skill/stellar-mpp-payments ./
git clone https://github.com/ASGCompute/stellar-mpp-payments-skill.git
mkdir -p ~/.gemini/skills
cp -r stellar-mpp-payments-skill/stellar-mpp-payments ~/.gemini/skills/
Two ready-to-run projects live in examples/.
A small Express API that charges 0.01 USDC per request on Stellar testnet.
cd examples/stellar-mpp-server
npm install
npm run dev
A Node client that catches a 402 challenge, signs the Stellar payment, and retries automatically.
cd examples/stellar-mpp-client
npm install
npm start
The skill teaches a simple decision tree:
User asks about MPP / paid APIs / machine payments on Stellar
│
├─ Are you the SELLER or BUYER?
│ ├─ Seller -> protect an API or action behind payment
│ └─ Buyer -> automatically pay for a resource
│
├─ Which PAYMENT MODE?
│ ├─ Charge -> one on-chain SAC transfer per request
│ └─ Channel -> many off-chain commitments, occasional close
│
├─ Which NETWORK?
│ ├─ Testnet -> demos, pilots, first integrations
│ └─ Public -> production settlement
│
└─ Are you MIGRATING FROM STRIPE MPP?
├─ No -> use normal Stellar MPP setup
└─ Yes -> preserve protocol shape, swap settlement rail
It is a small packaging layer that helps both humans and AI coding agents do the right thing faster:
x402-payments-skillThis repo is the MPP companion to the earlier Stellar x402 community asset.
x402-payments-skill teaches x402 on Stellarstellar-mpp-payments-skill teaches MPP on StellarThe protocol ergonomics overlap, but the implementation model differs:
Payment auth scheme and method-specific credentialsAfter completing a pilot that combined Stellar settlement, MPP flows, and Stripe-style machine payment concepts, we packaged the useful parts into a public community asset.
This repo is meant to save other teams time:
Apache-2.0. It stays permissive, but is a better fit for a public developer integration asset because it includes an explicit patent grant.
TypeScript Interface for Machine Payments Protocol
Alephant is an open-source AI Agent Gateway for routing, tracking, and controlling LLM usage across AI agents, members, and workflows, and for publishing agent capabilities as paid endpoints with x402 and MPP payment rails.
Specifications for the Machine Payments Protocol - powered by the "Payment" HTTP authentication scheme
Rust SDK for the Machine Payments Protocol
Website for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.