PayStage Preflight

Registre officiel Finance et paiements

Evaluate x402 PaymentRequired against a local spending policy before an agent pays

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package @paystage/preflight
Claude Code
claude mcp add paystage-preflight -e 'PAYSTAGE_POLICY_PATH=<PAYSTAGE_POLICY_PATH>' -- npx -y @paystage/preflight@0.1.0
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "paystage-preflight": {
            "command": "npx",
            "args": [
                "-y",
                "@paystage/preflight@0.1.0"
            ],
            "env": {
                "PAYSTAGE_POLICY_PATH": "<PAYSTAGE_POLICY_PATH>"
            }
        }
    }
}

Variables d'environnement

  • PAYSTAGE_POLICY_PATH Path to policy.json spending rules

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. PayStage
  2. Packages
  3. Quick start
  4. Development
  5. License

PayStage

Local-first spending policy for AI agents that pay with x402. Decide before the agent pays: pay, review, or do_not_pay.

Packages

PackageDescription
@paystage/policyShared spending-policy schema and loader (parsePolicy, loadPolicy, humanToAtomic).
@paystage/preflightMCP server + CLI that evaluates an x402 PaymentRequired against a local policy.

Quick start

npx -y @paystage/preflight

Point it at a policy.json via PAYSTAGE_POLICY_PATH and wire it into Claude Desktop or Cursor as an MCP server. See packages/preflight/README.md for config snippets and an example policy.

Development

This is a monorepo using npm workspaces.

npm install
npm run build
npm test

License

MIT

Questions fréquentes

Qu'est-ce que PayStage Preflight ?

Evaluate x402 PaymentRequired against a local spending policy before an agent pays

Comment installer PayStage Preflight ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add paystage-preflight -e 'PAYSTAGE_POLICY_PATH=<PAYSTAGE_POLICY_PATH>' -- npx -y @paystage/preflight@0.1.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour PayStage Preflight ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

PayStage Preflight est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient PayStage Preflight ?

Il est publié par base-buzz. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.