protogrid

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

PayStage — x402 payment safety and spend policy

R0· no sign-in

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

v0.8.19 · active · repository · website · descriptor JSON · versions

An agent can connect right now, no human step.Remote endpoint, no authentication, reachable on the last probe.
Quality85good
Trust92of 100
Uptime, 30 days96%
Latency p50814 msp95 1799 ms

Connect

8 clients · secrets stay placeholders
Add to CursorAdd to VS Codeopens the client, which asks before adding the server
{
  "mcpServers": {
    "x402-payment-safety": {
      "type": "http",
      "url": "https://api.paystage.xyz/mcp"
    }
  }
}
claude mcp add --transport http x402-payment-safety https://api.paystage.xyz/mcp
[mcp_servers.x402-payment-safety]
url = "https://api.paystage.xyz/mcp"
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "x402-payment-safety": {
      "type": "remote",
      "url": "https://api.paystage.xyz/mcp",
      "enabled": true
    }
  }
}
{
  "mcpServers": {
    "x402-payment-safety": {
      "type": "http",
      "url": "https://api.paystage.xyz/mcp"
    }
  },
  "deeplink": "cursor://anysphere.cursor-deeplink/mcp/install?name=x402-payment-safety&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vYXBpLnBheXN0YWdlLnh5ei9tY3AifQ%3D%3D"
}
{
  "servers": {
    "x402-payment-safety": {
      "type": "http",
      "url": "https://api.paystage.xyz/mcp"
    }
  },
  "deeplink": "vscode:mcp/install?%7B%22name%22%3A%22x402-payment-safety%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.paystage.xyz%2Fmcp%22%7D"
}
{
  "mcpServers": {
    "x402-payment-safety": {
      "httpUrl": "https://api.paystage.xyz/mcp"
    }
  }
}
extensions:
  "x402-payment-safety":
    enabled: true
    name: "x402-payment-safety"
    type: streamable_http
    uri: "https://api.paystage.xyz/mcp"
    timeout: 300

Quality 85 / 100good

protocol88 · weight 25
  • pass
    protocol.modernsupports 2026-07-28 (server/discover)
  • pass
    protocol.statelessanswers without a session
  • pass
    protocol.transportstreamable HTTP
  • warn
    protocol.list_ttltools/list declares ttlMs 0, so clients re-fetch it on every use
authorizationn/a · weight 15
  • n/a
    auth.prm, auth.as_metadata, auth.cimdno remote uses OAuth
  • n/a
    auth.secret_in_urlno templated URL
tool hygiene83 · weight 30
  • pass
    tools.descriptionsevery tool has a description
  • warn
    tools.description_length1 tools have descriptions over 1,024 characters, which crowds the context
  • pass
    tools.schemasevery tool has an object input schema
  • pass
    tools.annotations10 of 10 tools declare readOnlyHint or destructiveHint
  • fail
    tools.directory_hintsno tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: decode_payment_required (idempotentHint); evaluate_mcp_payment (idempotentHint); list_outstanding_auths (idempotentHint); …
  • pass
    tools.token_costabout 2,912 tokens to load every tool
  • pass
    tools.api_dumptools are not a one-to-one API dump
  • pass
    tools.hidden_textno hidden text in tool names, descriptions, schemas or annotations
  • pass
    tools.poisoningno instructions aimed at the model in tool definitions
stability83 · weight 15
  • warn
    stability.changes15 tool changes in 30 days
  • pass
    stability.rug_pullno tool changed its meaning under the same name
  • pass
    stability.new_linksno tool change named a new site
dependenciesn/a · weight 15
  • n/a
    deps.known_vulns, deps.mcp_sdk_version, deps.resolvabledeps.dev does not know @paystage/[email protected]

10 tools, about 2,912 tokens to load them all · tool set 69fd116c3cef · tools last changed 2026-11-21 · checked 2026-11-29 14:15 UTC

Definition changes

  • evaluate_mcp_paymentchangeddescription
    before

    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 — when policy, identity, cost or evidence is missing the answer is a refusal or a review, never a pay. Returns the decision plus a signed receipt you can verify offline with verify_receipt. Read-only: holds no keys, never signs, never moves funds. A refusal costs nothing. This tool evaluates locally, so it makes no network calls and returns no seller reputation; the hosted HTTP API adds `seller_reputation` (domain and certificate age) because it can reach the network.

    after · 75% of words in common

    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 — when policy, identity, cost or evidence is missing the answer is a refusal or a review, never a pay. A `review` verdict also carries a `packet` object with the amount and its share of the applicable cap, the payee, the rule that fired, the checks run and skipped, and the one decision being asked of the human; `pay` and `do_not_pay` do not. Returns the decision plus a signed receipt you can verify offline with verify_receipt, and a `bundle_id` naming the evidence bundle for this call (events, hashed inputs, receipt, summary). Read-only: holds no keys, never signs, never moves funds. A refusal costs nothing. This tool evaluates locally, so it makes no network calls and returns no seller reputation; the hosted HTTP API adds `seller_reputation` (domain and certificate age) because it can reach the network.

  • verify_receiptchangeddescription, input schema
    before

    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 when the key cannot be fetched — and UNVERIFIABLE is a refusal, not a pass. Needs only the receipt JSON and a network connection; no account, no shared secret. Fetches the signing key from a published URL you can pin with key_url. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

    after · 79% of words in common

    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 when the key cannot be fetched — and UNVERIFIABLE is a refusal, not a pass. Pass `chain` instead of one receipt to walk a hash-chained list: it verifies every link and reports the first gap by index, with the receipt ids either side. Needs only the receipt JSON and a network connection; no account, no shared secret. Fetches the signing key from a published URL you can pin with key_url. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • evaluate_batchchangeddescription
    before

    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 at the first refusal rather than discovering it after three payments. Read-only, holds no keys, never signs. Cheaper and more consistent than calling evaluate_mcp_payment in a loop: same policy, one round trip.

    after · 87% of words in common

    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 at the first refusal rather than discovering it after three payments. Read-only, holds no keys, never signs. Cheaper and more consistent than calling evaluate_mcp_payment in a loop: same policy, one round trip. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • request_testnet_fundschangeddescription
    before

    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 needed, no account, and it can only ever send testnet USDC. Use a throwaway address for anything automated; the cap is per address, so a script that generates a new address per call is not clever, it is why faucets get closed.

    after · 84% of words in common

    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 needed, no account, and it can only ever send testnet USDC. Use a throwaway address for anything automated; the cap is per address, so a script that generates a new address per call is not clever, it is why faucets get closed. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • validate_policychangeddescription
    before

    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. No payment needed, no network call, no key. Use it in CI on the policy file your agent ships with.

    after · 82% of words in common

    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. No payment needed, no network call, no key. Use it in CI on the policy file your agent ships with. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • decode_payment_requiredchangeddescription
    before

    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 network call, no signature, no verdict — use evaluate_mcp_payment when you want a decision. Fails closed with a named error if the header is malformed or not base64.

    after · 83% of words in common

    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 network call, no signature, no verdict — use evaluate_mcp_payment when you want a decision. Fails closed with a named error if the header is malformed or not base64. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • verify_receiptchangeddescription
    before

    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 when the key cannot be fetched — and UNVERIFIABLE is a refusal, not a pass. Needs only the receipt JSON and a network connection; no account, no shared secret. Fetches the signing key from a published URL you can pin with key_url.

    after · 83% of words in common

    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 when the key cannot be fetched — and UNVERIFIABLE is a refusal, not a pass. Needs only the receipt JSON and a network connection; no account, no shared secret. Fetches the signing key from a published URL you can pin with key_url. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • evaluate_velocitychangeddescription
    before

    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 of payees). Returns the decision plus which window was breached. Read-only: it reads the history you pass in, holds no keys, and calls no external service.

    after · 82% of words in common

    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 of payees). Returns the decision plus which window was breached. Read-only: it reads the history you pass in, holds no keys, and calls no external service. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • evaluate_hip3_tradechangeddescription
    before

    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-line reason. Local policy only: this is not financial advice, holds no keys, and cannot place or cancel an order. Prices come from a read-only market query.

    after · 84% of words in common

    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-line reason. Local policy only: this is not financial advice, holds no keys, and cannot place or cancel an order. Prices come from a read-only market query. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

  • evaluate_outstanding_authschangeddescription
    before

    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, expiry already passed, spender not on the allow-list). Returns per-authorisation decisions plus a summary action. Read-only: never revokes, never signs. Revocation is a transaction you send yourself.

    after · 83% of words in common

    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, expiry already passed, spender not on the allow-list). Returns per-authorisation decisions plus a summary action. Read-only: never revokes, never signs. Revocation is a transaction you send yourself. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

Showing the latest 10. Full history: list_changes · trend: quality JSON.

Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed. How it is computed.

Trust 92 / 100

duplicate-repo
provenance90
liveness98
freshness100
hygiene80

+repository +namespace-matches-repo +website +reachable +uptime-96% +updated-1d-ago -duplicate-repo(8 names)

Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed. How it is computed.

Dependencies

@paystage/[email protected] npmthis version is not known to the dependency resolver

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0. The graph is what a clean install of this version resolves today; nothing was installed or run. How it is checked.

Endpoints

Last 30 days96% of probes answered
remoteauthreachableuptime 30dp50p95protocollast ok
https://api.paystage.xyz/mcp streamable-httpnoneyes96%814 ms1799 ms2026-07-282026-11-29
packageregistryversionruntimesecrets
@paystage/mcpnpm0.8.19–

Tools (10)

decode_payment_requiredread-onlyverify 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 network call, no signature, no verdict — use evaluate_mcp_payment when you want a decision. Fails closed with a named error if the header is malformed or not base64. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
evaluate_batchread-onlytransaction 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 at the first refusal rather than discovering it after three payments. Read-only, holds no keys, never signs. Cheaper and more consistent than calling evaluate_mcp_payment in a loop: same policy, one round trip. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
evaluate_hip3_traderead-onlytransaction 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-line reason. Local policy only: this is not financial advice, holds no keys, and cannot place or cancel an order. Prices come from a read-only market query. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
evaluate_mcp_paymentread-onlyverify 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 — when policy, identity, cost or evidence is missing the answer is a refusal or a review, never a pay. A `review` verdict also carries a `packet` object with the amount and its share of the applicable cap, the payee, the rule that fired, the checks run and skipped, and the one decision being asked of the human; `pay` and `do_not_pay` do not. Returns the decision plus a signed receipt you can verify offline with verify_receipt, and a `bundle_id` naming the evidence bundle for this call (events, hashed inputs, receipt, summary). Read-only: holds no keys, never signs, never moves funds. A refusal costs nothing. This tool evaluates locally, so it makes no network calls and returns no seller reputation; the hosted HTTP API adds `seller_reputation` (domain and certificate age) because it can reach the network.
evaluate_outstanding_authsread-onlyspending 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, expiry already passed, spender not on the allow-list). Returns per-authorisation decisions plus a summary action. Read-only: never revokes, never signs. Revocation is a transaction you send yourself. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
evaluate_velocityread-onlytransparent 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 of payees). Returns the decision plus which window was breached. Read-only: it reads the history you pass in, holds no keys, and calls no external service. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
list_outstanding_authsread-onlyspending 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 a public RPC; no key, no funds moved. Use it after an incident to see what remains exposed, not to revoke anything (this tool cannot revoke). Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
request_testnet_fundstest 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 needed, no account, and it can only ever send testnet USDC. Use a throwaway address for anything automated; the cap is per address, so a script that generates a new address per call is not clever, it is why faucets get closed. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
validate_policyread-onlyspending 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. No payment needed, no network call, no key. Use it in CI on the policy file your agent ships with. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.
verify_receiptread-onlyverify 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 when the key cannot be fetched — and UNVERIFIABLE is a refusal, not a pass. Pass `chain` instead of one receipt to walk a hash-chained list: it verifies every link and reports the first gap by index, with the receipt ids either side. Needs only the receipt JSON and a network connection; no account, no shared secret. Fetches the signing key from a published URL you can pin with key_url. Fails closed: do not invent authority — a missing policy, identity, cost or evidence is a refusal, never a default.

Schemas: list_tools.

Also listed as

7 other active names share this repository: io.github.base-buzz/mcp, io.github.base-buzz/preflight, io.github.base-buzz/x402-guard, xyz.paystage/auth-watch, xyz.paystage/mcp, xyz.paystage/preflight, xyz.paystage/trade-preflight

Similar MCP servers

More from io.github.base-buzz

Official server.json
{
  "name": "io.github.base-buzz/x402-payment-safety",
  "title": "PayStage — x402 payment safety and spend policy",
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "remotes": [
    {
      "url": "https://api.paystage.xyz/mcp",
      "type": "streamable-http"
    }
  ],
  "version": "0.8.19",
  "packages": [
    {
      "version": "0.8.19",
      "transport": {
        "type": "stdio"
      },
      "identifier": "@paystage/mcp",
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "environmentVariables": [
        {
          "name": "PAYSTAGE_POLICY_PATH",
          "description": "Path to policy.json spending rules"
        },
        {
          "name": "PAYSTAGE_RPC_URL",
          "description": "Base RPC URL override"
        }
      ]
    }
  ],
  "repository": {
    "url": "https://github.com/base-buzz/paystage",
    "source": "github",
    "subfolder": "packages/mcp"
  },
  "websiteUrl": "https://paystage.xyz",
  "description": "x402 payment safety: judge a payment against your policy before signing. No keys, never signs."
}