Skip to main content
Glama

PyPI version License: MIT CI Python 3.10+

Point One Percent — pop-pay

Die Laufzeitsicherheitsschicht für den Handel mit KI-Agenten. Drop-in CLI + MCP-Server. Kartendaten werden direkt über CDP in das Browser-DOM injiziert — sie gelangen niemals in das Kontextfenster des Agenten. Ein halluzinierter Prompt kann keinen Geldbeutel leeren, den er nicht sehen kann.

Installation

Wählen Sie Ihre bevorzugte Methode:

pipx install "pop-pay[mcp]"
pip install "pop-pay[mcp]"
uv tool install "pop-pay[mcp]"
pip install "pop-pay"                  # core (keyword guardrail + mock provider)
pip install "pop-pay[mcp,browser]"     # CDP injection (browser automation)
pip install "pop-pay[mcp,llm]"         # LLM guardrails (OpenAI, Ollama, vLLM, OpenRouter)
pip install "pop-pay[stripe]"          # Stripe virtual card issuing
pip install "pop-pay[langchain]"       # LangChain integration
pip install "pop-pay[all]"             # everything

Alle Installationspfade stellen die CLI-Binärdateien bereit: pop-launch, pop-init-vault, pop-unlock und pop-pay (Dashboard-Launcher).

Verwenden Sie Node.js / JavaScript? Schauen Sie sich pop-pay (npm) an — npm i -g pop-pay oder brew install 100xpercent/tap/pop-pay. Dasselbe Sicherheitsmodell, dasselbe Vault-Format, unabhängiger Release-Zyklus — sicher zwischen Runtimes zu wechseln.

Related MCP server: 🍋 LemonCake — Billing & budgets for AI agents

Schnellstart (CLI)

1. Initialisieren Sie den verschlüsselten Anmeldedaten-Vault

pop-init-vault

Dies verschlüsselt Ihre Kartendaten in ~/.config/pop-pay/vault.enc (AES-256-GCM). Für stärkeren Schutz (blockiert Agenten mit Shell-Zugriff):

pop-init-vault --passphrase   # one-time setup
pop-unlock                     # run once per session

2. Starten Sie Chrome mit CDP-Remote-Debugging

pop-launch

Öffnet eine Chromium-Instanz auf http://localhost:9222, in die pop-pay Anmeldedaten injiziert. Ihr Agent (via MCP, Browser-Automatisierung oder x402) steuert dann den Checkout-Flow — Kartendaten verlassen niemals den Browser-Prozess.

3. Öffnen Sie das Monitoring-Dashboard (optional)

pop-pay

Echtzeitansicht der Zahlungsaktivitäten des Agenten, der Budgetauslastung und der Ablehnungsprotokolle.

4. Verbinden Sie Ihren Agenten

Zwei unterstützte Integrationspfade:

  • MCP-Server — fügen Sie pop-pay zu jedem MCP-kompatiblen Client hinzu (Claude Code, OpenClaw). Siehe MCP-Server unten.

  • Python SDK / LangChain — siehe Python SDK unten.

MCP-Server (optional)

Der MCP-Server wird als Python-Modul aufgerufen und entschlüsselt den Vault beim Start.

Zu Ihrem MCP-Client hinzufügen

{
  "mcpServers": {
    "pop-pay": {
      "command": "python3",
      "args": ["-m", "pop_pay.mcp_server"],
      "env": {
        "POP_CDP_URL": "http://localhost:9222"
      }
    }
  }
}
claude mcp add pop-pay -- python3 -m pop_pay.mcp_server

Mit Umgebungsvariablen:

claude mcp add pop-pay \
  -e POP_CDP_URL=http://localhost:9222 \
  -e POP_ALLOWED_CATEGORIES='["aws","cloudflare"]' \
  -e POP_MAX_PER_TX=100.0 \
  -e POP_MAX_DAILY=500.0 \
  -e POP_GUARDRAIL_ENGINE=keyword \
  -- python3 -m pop_pay.mcp_server

Kompatibel mit jedem MCP-Host. Siehe den Integrationsleitfaden für Einrichtungsanweisungen und System-Prompt-Vorlagen.

docker-compose up -d

Führt den MCP-Server + Headless Chromium mit CDP aus. Mounten Sie Ihren verschlüsselten Vault vom Host. Siehe docker-compose.yml für die Konfiguration.

MCP-Tools

Tool

Beschreibung

request_virtual_card

Stellt eine virtuelle Karte aus und injiziert Anmeldedaten via CDP in die Checkout-Seite.

request_purchaser_info

Füllt Rechnungs-/Kontaktinformationen (Name, Adresse, E-Mail, Telefon) automatisch aus.

request_x402_payment

Bezahlt API-Aufrufe über das x402 HTTP-Zahlungsprotokoll.

page_snapshot

Scannt eine Checkout-Seite auf versteckte Prompt-Injections oder Anomalien.

Konfiguration

Kernvariablen in ~/.config/pop-pay/.env. Siehe ENV_REFERENCE.md für die vollständige Liste.

Variable

Standard

Beschreibung

POP_ALLOWED_CATEGORIES

["aws","cloudflare"]

Genehmigte Anbieterkategorien — siehe Kategorien-Kochbuch

POP_MAX_PER_TX

100.0

Max. USD pro Transaktion

POP_MAX_DAILY

500.0

Max. USD pro Tag

POP_BLOCK_LOOPS

true

Blockiert Halluzinations-/Wiederholungsschleifen

POP_AUTO_INJECT

true

Aktiviert CDP-Karteninjektion

POP_GUARDRAIL_ENGINE

keyword

keyword (kostenlos) oder llm (semantisch)

Guardrail-Modus

keyword (Standard)

llm

Mechanismus

Keyword-Abgleich auf Reasoning-String

Semantische Analyse via LLM

Kosten

Null — keine API-Aufrufe

Ein LLM-Aufruf pro Anfrage

Am besten für

Entwicklung, risikoarme Workflows

Produktion, hochwertige Transaktionen

Um den LLM-Modus zu aktivieren, siehe Integrationsleitfaden §1.

Anbieter

Anbieter

Beschreibung

BYOC (Standard)

Bring Your Own Card — verschlüsselte Vault-Anmeldedaten, lokale CDP-Injektion.

Stripe Issuing

Echte virtuelle Karten via Stripe API. Erfordert POP_STRIPE_KEY.

Lithic

Multi-Issuer-Adapter (Stripe Issuing / Lithic).

Mock

Testmodus mit generierten Kartennummern für die Entwicklung.

Priorität: Stripe Issuing → BYOC Local → Mock.

Python SDK

Integrieren Sie pop-pay in benutzerdefinierte Python- oder LangChain-Workflows:

from pop_pay.client import PopClient
from pop_pay.providers.stripe_mock import MockStripeProvider
from pop_pay.core.models import GuardrailPolicy

client = PopClient(
    provider=MockStripeProvider(),
    policy=GuardrailPolicy(
        allowed_categories=["API", "Cloud"],
        max_amount_per_tx=50.0,
        max_daily_budget=200.0,
    ),
)

# LangChain integration
from pop_pay.tools.langchain import PopPaymentTool
tool = PopPaymentTool(client=client, agent_id="agent-01")

Siehe Integrationsleitfaden §2 für die vollständige SDK- und Anbieterreferenz.

Sicherheit

Schicht

Verteidigung

Kontext-Isolierung

Kartendaten gelangen niemals in das Kontextfenster oder die Protokolle des Agenten

Verschlüsselter Vault

AES-256-GCM mit PBKDF2-Schlüsselableitung und OS-Keyring-Integration

TOCTOU-Guard

Domain-Verifizierung zum Zeitpunkt der CDP-Injektion — blockiert Redirect-Angriffe

Repr-Redaktion

Automatische Maskierung (****-4242) in allen MCP-Antworten, Protokollen und Tracebacks

Siehe THREAT_MODEL.md für die vollständige STRIDE-Analyse und COMPLIANCE_FAQ.md für Unternehmensdetails.

Architektur

  • Python — Kern-Engine, MCP-Server, Guardrail-Logik, CLI

  • Cython — Leistungskritische Vault-Operationen und Speicherschutz

  • Chrome DevTools Protocol — Direkte DOM-Injektion via Raw-WebSocket

  • SQLite — Lokale Transaktionsprüfung und Zustandsverwaltung

Dokumentation

Lizenz

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables AI agents to perform financial transactions such as direct payments, escrows, and bounty management using natural language with zero code integration. It provides a comprehensive suite of tools for fund streaming, subscriptions, and reputation tracking to facilitate secure agent-to-agent commerce.
    22
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    AgentPay is the authorization layer between an AI agent and real spending. You define the rules — spending caps, allowed merchants, time windows — and every purchase attempt the agent makes is checked against them in real time. Approved transactions go through. Anything outside the mandate is blocked and logged. No more babysitting every agent action. No more runaway charges.
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/100xPercent/pop-pay-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server