Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Payment Agent Demo

БесплатноНе проверен

Agentic Commerce demo with Stripe and Visa TAP (Trusted Agent Protocol)

GitHubEmbed

Описание

Agentic Commerce demo with Stripe and Visa TAP (Trusted Agent Protocol)

README

Agentic Commerce demo with Stripe and Visa TAP (Trusted Agent Protocol)

Claude complete checkout

Transaction success in Stripe

Agentic Commerce Flow

[ AI Agent (e.g. Claude) ]
            │
            │ 1. Connects to remote MCP server with auth token and wallet id
            ▼
[ Remote MCP Server (Wallet Provider) ] 
            │
            │ 2. Makes checkout tool available to Agent. Holds the agent's private key. 
            | 3. Private key is used to sign payload to create Visa TAP signature
            ▼
 [ Merchant Storefront API ]
            │
            │ 4. Validates the signature with agent's public key fetched from Visa agent registry.
            │ 5. Verifies that the item is in stock and the price is correct.
            ▼
     [ Stripe API ] 
            │
            │ 6. Storefront triggers stripe.PaymentIntent.create()
            ▼
 [ Customer's Bank Account ] <-- Funds are safely moved

Integration Flow

 ┌──────────────────────────────┐
 │    MERCHANT STOREFRONT       │
 └──────────────┬───────────────┘
                │
                │ 1. Publishes OpenAPI Spec / Documentation. 
                |    RFC 9421 does not specify the data schema of the CheckoutRequest. 
                |    Therefore, the Agent / MCP server must follow the merchant storefront's spec or signature validation will fail.
                ▼
 ┌───────────────────────────────────────────────────────┐
 │    WALLET PROVIDER                                    │
 ├───────────────────────────────────────────────────────┤
 │  • Provides tools and holds agent's private key       │
 │  • Configures MCP Tool parameters to match.           |
 │  • Signs payload using their private key.             |
 └───────────────────────────────────────────────────────┘

Project Structure

project-root/
├── .venv/                          <-- single, unified virtual environment
├── pyproject.toml                  <-- Holds all Python dependencies for all 3 components
├── client-bridge/
|   ├── .mcp_access_token           <-- File where the Agent's access token will be stored
|   └── client.py                   <-- Bridge to allow Claude to access remote MCP server with authentication
|
├── wallet_provider/                <-- Remote MCP server to allow an agent (like Claude) to make payments
│   ├── create_tap_sig.py
|   ├── generate_test_keys.py       <-- generate a public/private key pair for the agent
│   └── main.py
|
└── merchant_api/                   <-- simulates merchant store API which allows agents
    ├── mock_visa_directory.py  
    └── server.py

Quick Start Guide

1. Add MCP Server to Claude desktop config

"mcpServers": {
    "agent-stripe-checkout": {
      "command": "uv", 
      "args": [
        "run",
        "--directory",
        "/Users/<your_user>/<path_you_cloned_to>/payment-agent-demo/payment_mcp",
        "main.py"
      ],
      "env": {
        "DEMO_AGENT_WALLET_ID": "mock_visa_tap_agent_01"
      }
    },
}

2. Run Merchant Storefront API

cd merchant_api/
uv sync

Run the merchant API server: uvicorn server:app --reload

Requirements

  • Python >= 3.14
  • uv (Astral)

Environment variables

Run generate_test_keys.py to get create a private/public key pair for your agent

At minimum set the following values in the appropriate .env files:

  • STRIPE_SECRET_KEY — your Stripe test secret key (required by both components in this demo)
  • DEMO_AGENT_WALLET_ID — used by the MCP server when running in Claude/Desktop integrations

from github.com/Programalyst/payment-agent-demo

Установка Payment Agent Demo

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/Programalyst/payment-agent-demo

FAQ

Payment Agent Demo MCP бесплатный?

Да, Payment Agent Demo MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Payment Agent Demo?

Нет, Payment Agent Demo работает без API-ключей и переменных окружения.

Payment Agent Demo — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Payment Agent Demo в Claude Desktop, Claude Code или Cursor?

Открой Payment Agent Demo на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

$5

Stripe

Payments, customers, subscriptions

Stripeавтор: Stripe

malamutemayhem/unclick-agent-native-endpoints

110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n

malamutemayhemавтор: malamutemayhem

whiteknightonhorse/APIbase

Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa

whiteknightonhorseавтор: whiteknightonhorse

trackerfitness729-jpg/sitelauncher-mcp-server

Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr

trackerfitness729-jpgавтор: trackerfitness729-jpg

embeddedlayers/mcp-analytics

Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources

embeddedlayersавтор: embeddedlayers

carrierone/verilexdata-mcp

20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit

carrieroneавтор: carrierone

tipdotmd/tip-md-x402-mcp-server

MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.

tipdotmdавтор: tipdotmd

laundromatic/shopgraph

Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev

laundromaticавтор: laundromatic

mrslbt/xendit-mcp

Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal

mrslbtавтор: mrslbt

@arbitova/mcp-server

Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create

jiayuanliang0716-maxавтор: jiayuanliang0716-max

Compare Payment Agent Demo with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории finance