Stripe MCP
MCP server integrating with Stripe - tools for customers, products, payments, and more.
Pre-payment safety gate for x402 agents: PII screening, spend policy, replay checks before signing.
作者による原文
一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり
| 人気 | 0/80 | GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます |
|---|---|---|
| 新しさ | 12/12 | 30 日以内のリリースかコード更新で満点 |
| 応答中 | 0/8 | 前回の確認でクラウドのエンドポイントが応答 |
| 利用スコア | 12/100 |
品質: 基本チェック 1/1 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)
使っているAIアプリを選んで、設定をコピーしてください。
ひとことで AI にインストールしてもらう
Presidio Hardened X402 MCP をインストールして。https://mcp.popnx.com/i/presidio-v-presidio-hardened-x402-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る
チェック 1/1 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server Presidio Hardened X402 MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "presidio-hardened-x402": { "command": "uvx", "args": [ "presidio-hardened-x402-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Presidio Hardened X402 MCP のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
SettingsDeveloperEdit Config
{
"mcpServers": {
"presidio-hardened-x402": {
"command": "uvx",
"args": [
"presidio-hardened-x402-mcp"
]
}
}
}Presidio Hardened X402 MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Presidio Hardened X402 MCP を使っていると言うか、回答に Presidio Hardened X402 MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Presidio Hardened X402 MCP につなげません
Presidio Hardened X402 MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · Presidio Hardened X402 MCP につなげるアプリを使う
B · ネットショップ・決済 の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server Presidio Hardened X402 MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user presidio-hardened-x402 -- uvx presidio-hardened-x402-mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Presidio Hardened X402 MCP のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user presidio-hardened-x402 -- uvx presidio-hardened-x402-mcpPresidio Hardened X402 MCP が一覧にあり、接続済みと表示されれば OK です
Presidio Hardened X402 MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Presidio Hardened X402 MCP を使っていると言うか、回答に Presidio Hardened X402 MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server Presidio Hardened X402 MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "presidio-hardened-x402": { "command": "uvx", "args": [ "presidio-hardened-x402-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Presidio Hardened X402 MCP のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
Presidio Hardened X402 MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Presidio Hardened X402 MCP を使っていると言うか、回答に Presidio Hardened X402 MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server Presidio Hardened X402 MCP を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "presidio-hardened-x402": { "type": "stdio", "command": "uvx", "args": [ "presidio-hardened-x402-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Presidio Hardened X402 MCP のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
Presidio Hardened X402 MCP を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Presidio Hardened X402 MCP を使っていると言うか、回答に Presidio Hardened X402 MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
Claude Code
claude mcp add --scope user presidio-hardened-x402 -- uvx presidio-hardened-x402-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"presidio-hardened-x402": {
"command": "uvx",
"args": [
"presidio-hardened-x402-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"presidio-hardened-x402": {
"command": "uvx",
"args": [
"presidio-hardened-x402-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"presidio-hardened-x402": {
"type": "stdio",
"command": "uvx",
"args": [
"presidio-hardened-x402-mcp"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月20日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント presidio-v で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
OSV.dev に presidio-hardened-x402-mcp@0.4.0 の登録はありません
このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月15日
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/servers/presidio-v-presidio-hardened-x402-mcp)質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.4.0)がレジストリに届いたのは12 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリには:Stripe MCP, flightclaw, Trade It, Marketplace Ad Pros: Amazon Ads & Seller Central, idealo MCP Server
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
MCP server integrating with Stripe - tools for customers, products, payments, and more.
Search ~300 airlines and book flights with a checkout link. OAuth sign-in by email code.
Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Search products, compare prices and discover deals across 6 European markets with your AI assistant.
| これ Presidio Hardened X402 MCP | Stripe MCP | flightclaw | Trade It | Marketplace Ad Pros: Amazon Ads & Seller Central | idealo MCP Server | |
|---|---|---|---|---|---|---|
| 動く場所 | パソコンにインストールが必要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 |
| キーが必要 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| Claude で + から追加 | いいえ | はい | いいえ | いいえ | いいえ | いいえ |
| 基本チェック | 1/1 | 4/4 | 4/4 | 5/5 | 4/4 | 4/4 |
| ライセンス | – | MIT | MIT | CC0-1.0 | MIT | MIT |
| 料金 | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし |
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Pre-payment safety gate for x402 — agents call screen_payment_metadata(...), check_payment_policy(...), and check_payment_replay(...) before signing, catching PII, budget overruns, and duplicate payments before metadata or money leaves the agent host.
Part of the presidio-hardened-* toolkit family. Thin MCP (Model Context Protocol) adapter over the presidio-hardened-x402 library, pinned to parent 0.14.x (presidio-hardened-x402>=0.14.0,<0.15.0), the parent's Python 3.11 line. 0.13.0 was the first parent that can record a control as NOT_EVALUATED, which signed decision evidence needs; it also includes the 0.11.1 fix for the percent-encoded PII redaction bypass, which remains a security floor.
x402 agentic payments routinely carry user-supplied free text — descriptions, memos, query-string parameters — straight through to merchants and facilitators. When an LLM agent generates that text, it can include PII the user never intended to share. Once the merchant logs it, retention is their decision, not yours.
This MCP server gives agents a small default-deny gate *before* payment leaves the agent host. Three tools expose the parent library's stable pre-payment controls: PII redaction, spending policy, and replay detection. Since 0.3.0 each decision can also be emitted as a signed payment-decision@1 record that a third party verifies offline (see Signed decision evidence). The tools are designed to compose with payment-execution and endpoint-safety MCP servers (x402station, Coinbase x402, Sardis, ...), while other parent-library surfaces — evidence-ref@1 verification of inbound evidence, the v0.9.1 SLO broker, the v0.10.0 settlement-ref@1 treasury binding, and the v0.11.0 CapabilityEnforcer — stay in the Python library unless an MCP tool explicitly wraps them later.
Requires Python ≥ 3.11. Distributed on PyPI; recommended invocation via uvx (no global install).
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on your platform:
{
"mcpServers": { "presidio-x402": { "command": "uvx", "args": ["presidio-hardened-x402-mcp"] } } }
Same shape — every MCP host accepts command / args / env. See your editor's MCP-server docs for the config-file path.
All optional. Defaults give a zero-config in-process mode with no quota, no network, and no PII storage.
| Variable | Purpose | Default |
|---|---|---|
PRESIDIO_X402_MCP_MODE | regex (zero-setup) or nlp (needs [nlp] extra + a spaCy model) | regex |
PRESIDIO_X402_MCP_MAX_PER_CALL_USD | Max USD per single payment (policy gate) | unset → no limit |
PRESIDIO_X402_MCP_DAILY_LIMIT_USD | Max USD per rolling window (policy gate) | unset → no limit |
PRESIDIO_X402_MCP_PER_ENDPOINT_JSON | Per-endpoint cap, e.g. '{"api.foo.com": 5.00}' | unset |
PRESIDIO_X402_MCP_WINDOW_SECONDS | Rolling window for the daily limit | 86400 |
PRESIDIO_X402_MCP_AGENT_ID | Label written into audit records | unset |
PRESIDIO_X402_MCP_REPLAY_TTL | Fingerprint cache TTL (seconds) | 300 |
PRESIDIO_X402_MCP_REDIS_URL | Use Redis for replay state instead of in-memory | unset |
PRESIDIO_X402_MCP_AUDIT_PATH | Append-only JSON-L audit log path; omit to disable | unset |
PRESIDIO_X402_MCP_LOG_LEVEL | DEBUG / INFO / WARNING / ERROR | INFO |
PRESIDIO_X402_MCP_REMOTE_BASE_URL | Enable HTTP-proxy mode for tool 1 — see Modes. Must be https://; plain http:// is accepted only for loopback and otherwise refuses to start | unset |
PRESIDIO_X402_MCP_REMOTE_API_KEY | API key for the remote screening service | unset |
PRESIDIO_X402_FINGERPRINT_KEY | 32-byte hex key for cross-process replay detection | unset (per-process) |
PRESIDIO_X402_CHAIN_KEY | 32-byte hex key for cross-process audit-chain HMAC | unset (per-process) |
PRESIDIO_X402_REQUIRE_FINGERPRINT_KEY | Fail startup if replay key is absent or invalid | unset |
PRESIDIO_X402_REQUIRE_CHAIN_KEY | Fail startup if audit-chain key is absent or invalid | unset |
PRESIDIO_X402_MCP_EVIDENCE_KEY_FILE | File holding the decision-signing key (preferred; wins over the env key) | unset |
PRESIDIO_X402_EVIDENCE_KEY | Decision-signing key (the parent library's variable): Ed25519 private key as 64 hex chars, or an HMAC secret | unset |
PRESIDIO_X402_MCP_DECISION_PATH | Append-only JSON-L file for signed payment-decision@1 records | unset |
PRESIDIO_X402_MCP_EVIDENCE_ALGORITHM | ed25519 or hmac-sha256 | ed25519 |
PRESIDIO_X402_MCP_EVIDENCE_SIGNER | Signer identity; the trust-store key verifiers look up | presidio-hardened-x402-mcp |
PRESIDIO_X402_MCP_EVIDENCE_KEY_ID | Optional key id written into each record (for rotation) | unset |
PRESIDIO_X402_MCP_REQUIRE_EVIDENCE_KEY | Fail startup unless signed evidence is fully configured and the key signs | unset |
PRESIDIO_X402_MCP_GATE_CERTIFICATE | ikigov-assess gate-certificate@1 file(s) the payments are authorised under, os.pathsep-separated; needs the [gate] extra | unset |
PRESIDIO_X402_MCP_GATE_TRUST | Trust store for the certificate issuer (and its embedded evidence signers); required with the above | unset |
Generate cross-process keys with openssl rand -hex 32.
screen_payment_metadata(resource_url, description, reason, entities?)Detects and redacts PII in payment metadata. No side effects — safe to call repeatedly.
// Input
{ "resource_url": "https://api.foo.com/u/jane@example.com", "description": "monthly fee for jane@example.com", "reason": "" }
// Output { "redacted_resource_url": "https://api.foo.com/u/ ", "redacted_description": "monthly fee for ", "redacted_reason": "", "entities_found": [ { "entity_type": "EMAIL_ADDRESS", "field": "resource_url", "count": 1 }, { "entity_type": "EMAIL_ADDRESS", "field": "description", "count": 1 } ], "mode": "in_process" // + "decision_ref": "<64 hex>" when signed decision evidence is enabled }
entities (optional list of Presidio entity types) narrows detection to a whitelist. Field-length caps mirror the screening-api wire contract that remains stable through parent 0.7.x: resource_url ≤ 2048, description ≤ 4096, reason ≤ 4096 characters. Oversized inputs raise ValueError.
check_payment_policy(resource_url, amount_usd, prior_decision_refs?)Spending-policy gate. Records the spend on success — call exactly once, immediately before payment. Skipping the actual payment after a successful check inflates the daily-limit ledger until the window rolls over.
The URL is screened first and only the redacted URL reaches the policy engine, so no raw URL lands in the parent's logs. Per-endpoint limits match on that redacted URL; keep PII out of configured endpoint prefixes. If screening fails, the gate denies without recording spend.
// Input
{ "resource_url": "https://api.foo.com/x", "amount_usd": 1.50 }
// Output (allowed) { "allowed": true }
// Output (denied — over per-call limit of $5.00) { "allowed": false, "reason": "...", "limit_usd": 5.00, "amount_usd": 6.00 }
With signed evidence enabled, both outputs also carry decision_ref. prior_decision_refs (optional, up to 8) links refs this server returned earlier for the same payment — typically the one from screen_payment_metadata — into the signed record; a ref this process did not issue is refused before any spend is recorded.
check_payment_replay(resource_url, pay_to, amount, currency, deadline_seconds, prior_decision_refs?)Duplicate-payment gate via HMAC-SHA256 fingerprint of the canonical fields. Records the fingerprint on success — call exactly once, immediately before payment.
amount is a string to preserve precision. Cross-process detection requires PRESIDIO_X402_FINGERPRINT_KEY (and optionally PRESIDIO_X402_MCP_REDIS_URL); otherwise each MCP server process keeps its own in-memory store.
// Input
{ "resource_url": "https://api.foo.com/x", "pay_to": "0xabc...", "amount": "1.50", "currency": "USDC", "deadline_seconds": 1700000000 }
// Output (first seen) { "is_replay": false, "fingerprint": "29aaf60f..." }
// Output (duplicate within TTL) { "is_replay": true, "fingerprint": "29aaf60f..." }
decision_ref and prior_decision_refs behave as for check_payment_policy.
The audit log (PRESIDIO_X402_MCP_AUDIT_PATH) is HMAC-chained: tamper-evident to whoever holds PRESIDIO_X402_CHAIN_KEY, and to nobody else. From 0.3.0 every tool decision — allow and block alike — can also be written as a signed payment-decision@1 record, built and signed by the parent library (build_payment_decision_content, build_decision_evidence) and checked by anyone with the public key (verify_decision_ref). The audit log is still written; the records go alongside it, never instead of it.
# One-time: an Ed25519 key pair for the signer (hex private key, 0600).
python - <<'PY' from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat sk = Ed25519PrivateKey.generate() open("evidence.key", "w").write(sk.private_bytes_raw().hex()) print(sk.public_key().public_bytes(Encoding.Raw, PublicFormat.Raw).hex()) # -> trust store PY chmod 600 evidence.key
"env": {
"PRESIDIO_X402_MCP_EVIDENCE_KEY_FILE": "/etc/presidio/evidence.key", "PRESIDIO_X402_MCP_DECISION_PATH": "/var/log/presidio/x402-mcp-decisions.jsonl", "PRESIDIO_X402_MCP_REQUIRE_EVIDENCE_KEY": "1" }
Verify offline with the parent's CLI against a trust store that pins the public key under the signer name:
echo '{"presidio-hardened-x402-mcp": {"alg": "ed25519", "public_key": "<public hex>"}}' > trust.json
python -m presidio_x402.decision_ref /var/log/presidio/x402-mcp-decisions.jsonl trust.json
Without a key the server behaves exactly as 0.2.x — audit log only — and logs one WARNING at startup saying signed evidence is disabled. A key without PRESIDIO_X402_MCP_DECISION_PATH, an unreadable key file, or a key the signer rejects is logged at ERROR and also leaves evidence off. Set PRESIDIO_X402_MCP_REQUIRE_EVIDENCE_KEY=1 to refuse to start in any of those cases instead. Once running, a failed write is logged and the gate's answer stands: a record of a decision nev
冒頭だけを表示しています。続きはリポジトリで読めます