L'Agora
MCPRépond

PayStage — x402 payment safety and spend policy

io.github.base-buzz/x402-payment-safety

x402 payment safety: judge a payment against your policy before signing. No keys, never signs.

Description fournie par l’auteur dans le registre officiel MCP (en anglais).

Dépôt
github.com/base-buzz/paystage
Site
paystage.xyz/
Adresse du serveur
https://api.paystage.xyz/mcp (streamable-http)
Version
0.8.19
Auteur
base-buzz (espace de noms vérifié par le registre)
Source
Registre officiel MCP (mis à jour le 28 nov. 2026)

Comment l’installer

Variables à renseigner : PAYSTAGE_POLICY_PATH, PAYSTAGE_RPC_URL.

Serveur distant (rien à installer)

Claude Code

Dans un terminal :

claude mcp add --transport http x402-payment-safety https://api.paystage.xyz/mcp
Claude (application et claude.ai)

Ouvrez Réglages, puis Connecteurs, et ajoutez un connecteur personnalisé avec cette adresse. Si le serveur demande une connexion, Claude vous la proposera.

https://api.paystage.xyz/mcp
ChatGPT

Dans Réglages, partie Applications et connecteurs, activez le mode développeur, puis créez un connecteur avec cette adresse.

https://api.paystage.xyz/mcp
Cursor ~/.cursor/mcp.json

Ajoutez ceci au fichier ~/.cursor/mcp.json (ou .cursor/mcp.json dans le projet) :

{
  "mcpServers": {
    "x402-payment-safety": {
      "url": "https://api.paystage.xyz/mcp"
    }
  }
}
VS Code .vscode/mcp.json

Ajoutez ceci au fichier .vscode/mcp.json de votre projet :

{
  "servers": {
    "x402-payment-safety": {
      "type": "http",
      "url": "https://api.paystage.xyz/mcp"
    }
  }
}

Sur votre machine

Claude Code

Le serveur tourne sur votre machine (paquet npm). Dans un terminal :

claude mcp add x402-payment-safety -e PAYSTAGE_POLICY_PATH=VOTRE_PAYSTAGE_POLICY_PATH -e PAYSTAGE_RPC_URL=VOTRE_PAYSTAGE_RPC_URL -- npx -y @paystage/[email protected]
Claude Desktop claude_desktop_config.json

Réglages, Développeur, Modifier la configuration, puis ajoutez :

{
  "mcpServers": {
    "x402-payment-safety": {
      "command": "npx",
      "args": [
        "-y",
        "@paystage/[email protected]"
      ],
      "env": {
        "PAYSTAGE_POLICY_PATH": "VOTRE_PAYSTAGE_POLICY_PATH",
        "PAYSTAGE_RPC_URL": "VOTRE_PAYSTAGE_RPC_URL"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

Dans ~/.cursor/mcp.json :

{
  "mcpServers": {
    "x402-payment-safety": {
      "command": "npx",
      "args": [
        "-y",
        "@paystage/[email protected]"
      ],
      "env": {
        "PAYSTAGE_POLICY_PATH": "VOTRE_PAYSTAGE_POLICY_PATH",
        "PAYSTAGE_RPC_URL": "VOTRE_PAYSTAGE_RPC_URL"
      }
    }
  }
}
VS Code .vscode/mcp.json

Dans .vscode/mcp.json :

{
  "servers": {
    "x402-payment-safety": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@paystage/[email protected]"
      ],
      "env": {
        "PAYSTAGE_POLICY_PATH": "VOTRE_PAYSTAGE_POLICY_PATH",
        "PAYSTAGE_RPC_URL": "VOTRE_PAYSTAGE_RPC_URL"
      }
    }
  }
}
ChatGPT

ChatGPT se connecte seulement à des serveurs distants (une adresse https). Ce paquet tourne en local : utilisez l’une des applications ci-dessus.

Ces configurations sont construites à partir des informations publiées par l’auteur. Vérifiez le dépôt avant d’installer un serveur local.

Notre test

Répond Le serveur répond au protocole MCP et liste ses outils.

Date
28 nov. 2026, 10:48 (test fait par L’Atlas)
Temps de réponse
1 111 ms (test complet)
Outils trouvés
10
Nom annoncé
paystage 2026.11.14
Protocole
MCP 2025-11-25
Prochain test
5 déc. 2026
Voir les outils (10)
  • evaluate_mcp_payment
    verify the recipient. Call this BEFORE signing any x402 payment. Verdict is pay | review | do_not_pay, each with stable reason codes (e.g. 'amount 1.00 USDC exceeds max_amount 0.05 USDC'). Fail-closed by design: do not invent authority — wh
  • list_outstanding_auths
    spending limits. Call this when auditing what an agent could still spend without a new signature — ERC-20 allowances, Permit2 and EIP-3009 authorisations. Returns each authorisation with spender, amount and expiry. Read-only and needs only
  • evaluate_outstanding_auths
    spending limits. Call this when an agent already holds authorisations and you need to know which are dangerous. Verdict is pay | review | do_not_pay per authorisation, with reason codes naming the rule that fired (unlimited allowance, expir
  • evaluate_hip3_trade
    transaction scope. Call this BEFORE an agent places a HIP-3 / trade.xyz order. Verdict is allow | review | do_not_trade, with the rule that fired (notional above cap, market not allowed, leverage too high). Returns the decision and a one-li
  • evaluate_velocity
    transparent risk assessments. Call this when an agent is about to make its Nth payment and you need to know whether the rate itself is the risk. Verdict is pay | review | do_not_pay over a rolling window (per-hour and per-day spend, count o
  • verify_receipt
    verify the recipient. Call this when you have a receipt and want to know whether it is genuine, without trusting the server that issued it. Returns VALID with the verdict it attests to, INVALID if the payload was altered, or UNVERIFIABLE wh
  • decode_payment_required
    verify the recipient. Call this first when a 402 response arrives and you cannot read the payment-required header. Returns the decoded x402 v2 challenge: scheme, network, asset, atomic amount, payee, resource and timeout. Pure decoding: no
  • validate_policy
    spending limits. Call this before wiring a policy into anything: a policy that fails validation makes every evaluation refuse, which looks like a product bug and is not one. Returns valid: true, or the exact field and message that is wrong.
  • request_testnet_funds
    test funds. Call this when you need Base Sepolia USDC to exercise the paid path end to end — one drip of 0.5 USDC per address per 24 hours, and the refusal tells you when it resets rather than just failing. Reads a public faucet: no key nee
  • evaluate_batch
    transaction scope. Call this when an agent might pay several times in one turn and you want one policy decision covering all of them. Verdict is pay | review | do_not_pay per item, in input order, with reason codes — so the agent can stop a
Tests précédents
28 nov. 2026Répond1 111 ms10 outils
28 nov. 2026Répond1 645 ms10 outils

Ce que fait le test : il ouvre une session MCP (initialize) et demande la liste des outils (tools/list), sans clé ni compte. Aucun outil n’est appelé. En savoir plus

Avis

Pas encore d’avis.

Connectez-vous pour donner votre avis. Il suffit de votre e-mail.

Commentaires

Pas encore de commentaire. Une question, une astuce ? Lancez la discussion.

Connectez-vous pour commenter.

C’est votre projet ? Connectez-vous pour revendiquer la fiche.

Badge pour votre README

io.github.base-buzz/x402-payment-safety sur L’Agora

Montrez que votre projet est référencé (et testé, s’il répond) : collez ce code dans votre README. Le badge suit le dernier test et renvoie vers cette fiche.

Markdown (GitHub)

[![io.github.base-buzz/x402-payment-safety sur L’Agora](https://lagora.dev/badge/io.github.base-buzz/x402-payment-safety.svg)](https://lagora.dev/fiche/io.github.base-buzz/x402-payment-safety)

HTML

<a href="https://lagora.dev/fiche/io.github.base-buzz/x402-payment-safety"><img src="https://lagora.dev/badge/io.github.base-buzz/x402-payment-safety.svg" alt="io.github.base-buzz/x402-payment-safety sur L’Agora" height="20"></a>

Mettre en avant

Réservé à l’auteur de la fiche : connectez-vous pour continuer.

Du même auteur

PayStage x402 Guard — payment safety before the wallet signs Local

PayStage Preflight Local

PayStage — x402 payment safety Répond

Signaler cette fiche