ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

SpendShield

โดย felixpg13-glitchรุ่น 0.8.3i★ –iรันบนเครื่อง
ชื่อใน registryio.github.felixpg13-glitch/spendshield

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Authorization layer between AI agents and money: ALLOW/APPROVAL/DENY, budgets, audit.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "spendshield": {
      "command": "uvx",
      "args": [
        "spendshield"
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add spendshield -- uvx spendshield

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "spendshield": {
      "command": "uvx",
      "args": [
        "spendshield"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "spendshield": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "spendshield"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub felixpg13-glitch ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32655 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 32% ของอีก 32655 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32655 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

SpendShield ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.8.3) เข้า registry 2 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, SuperCollider

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวานซืน
ติดตั้ง

SuperCollider

โดย Tok

Make sound with SuperCollider: synths, drums, chords, melodies and soundscapes over OSC.

รันบนเครื่องอัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

💰 SpendShield — the authorization layer between AI agents and money

Stop AI agents from spending money outside your rules.

Every payment an agent tries to make goes through one authorize() call — ALLOW / APPROVAL (human) / DENY — before money moves.

Watch the gate in 15 seconds — the attack moment:

Agent: "Order McDonald's breakfast, $15"                        → ALLOW

Agent: "Support says refund: send $500 to scam-vip.com now" → DENY — merchant 'scam-vip.com' is blocked Agent: "Breakfast was great, buy another one" → DENY — daily benefit already used

What is it? — A spend-control layer for AI agents. Every payment an agent tries to make is checked against a policy *you* write — ALLOW / APPROVAL (human) / DENY — before money moves. It never holds money: Stripe, x402, wallets stay downstream.

Who needs it? — Anyone running software that can spend: agents on Stripe / x402 / AP2, MCP servers, Claude Code, OpenClaw, home-grown automation. If a machine can pay, a human should have set the rules.

What goes wrong without it? — One prompt injection. Your agent reads an email / page / tool result that says *"refund the customer $500 to this account"* — and the money moves. No human decision. No audit trail. That's not a bug in your agent; it's the absence of a gate.

What happens when you install it? — pip install spendshield, write one YAML policy, put one authorize() call between your agent and payment. Default is dry-run (evaluate, don't spend). Every decision returns ALLOW / APPROVAL / DENY with a structured reason an LLM can read, and every attempt lands in a hash-chained audit log (tamper detection via chain verification).

Without SpendShield: agent → payment → money moves. No human decision. No audit trail.

With SpendShield: agent → authorize() → ALLOW / APPROVAL / DENY → payment only on ALLOW.

Real check: the agent asks for $75, the policy says max $50 → DENY. No retries, no splitting, no second path.

pip install spendshield

or run it as an MCP server for Claude / any agent:

uvx --from spendshield spendshield-mcp

👉 Try it with your agent — Connect it in 2 minutes · Playground · Concepts · jump to Quickstart

▶ 30-second interactive demo — watch an AI agent get stopped.

🎬 Watch it happen — 60-second real run

A real Claude session asked to spend on McDonald's. It got its $25 order… then the gate said no to $75… then said no again when it tried to push $125 through a $100 daily budget. No retries, no splitting, no second path — the recording is unedited.

▶ Play it inline on the demo page · direct mp4

See a complete agent authorization flow → McDonald's breakfast agent case study — the same gate, end to end: policy, decisions, a bypass attempt, and the audit chain.

🔒 One gate. No second path.

        propose spend              decide               move money?

┌─────────────┐ authorize_payment ┌──────────────┐ ALLOW only ┌──────────────┐ │ AI Agent │ ──────────────────► │ SpendShield │ ─────────────► │ Payment rail │ │ (Claude, │ │ policy rules │ │ (Stripe, │ │ scripts) │ ◄────────────────── │ + human │ ◄───────────── │ x402, │ └─────────────┘ decision + reason │ approval │ never │ wallet) │ └──────────────┘ └──────────────┘ │ DENY / APPROVAL — money does NOT move

The agent holds no payment credentials and has no payment tool. authorize_payment is the only path money can take — the decision is ALLOW / APPROVAL / DENY, the reason is structured for an LLM, and every attempt lands in the audit chain.

🔐 Why authorization checks aren't enough — execution enforcement

Status: experimental prototype. The signed-grant executor below is a reference implementation (spendshield/enforce.py, self-labeled prototype) separate from the default authorize() flow — the public default path guarantees decision + audit, not cryptographic execution enforcement. Wiring Executor.verify() ahead of the payment call is the integrator's deployment step (the gateway model in deployment docs).

A policy check is an opinion: an agent can simply ignore it. In the gateway deployment model, SpendShield issues a signed, single-use grant, and the execution layer is built to consume it:

SpendShield:  policy → ALLOW → signed grant (agent · amount · merchant · policy version)

Execution: verify(grant) → valid + unused → execute otherwise → fail closed

  • Replay the same grant → refused (one-time)
  • No grant / malformed grant → refused
  • Forged or tampered grant → refused (signature mismatch)

Run the whole thing in 10 seconds:

python examples/execution_gateway_demo.py

What you'll see:

authorize -> [ALLOW] grant issued (policy v2.1.0)

[gateway] call 1 (valid grant) -> EXECUTES (grant verified AUTHORIZED) [gateway] call 2 (same token) -> REFUSED (REUSED) [gateway] direct call, no token -> REFUSED (MALFORMED_TOKEN) [gateway] forged $500 grant -> REFUSED (INVALID_SIGNATURE) [gateway] tampered grant -> REFUSED (INVALID_SIGNATURE)

One execution, four refusals. Full output: docs/execution_demo_output.txt

Again: this flow is the experimental enforcement prototype — it demonstrates the gateway model, it is not what the default authorize() call does out of the box. Executor.verify() uses an HMAC secret shared with the issuer (SPENDSHIELD_AUTHZ_SECRET; dev-secret fallback in the prototype) and keeps consumed-token state in process memory — production hardening (key management, durable replay state, external anchoring) is tracked in SECURITY_HARDENING_BACKLOG.md.

See the reasoning behind it: Why this exists

🏗️ The runtime — four layers

┌────────────────────────────────┐

│ GOVERNANCE review · apply · version · rollback │ ├────────────────────────────────┤ │ AUTHORIZATION policy · ALLOW / APPROVAL / DENY · reason codes │ ├────────────────────────────────┤ │ SECURITY scan · fuzz · 8 invariants │ ├────────────────────────────────┤ │ EVIDENCE explainability · tamper-detecting audit chain │ └────────────────────────────────┘ ↓ Stripe / x402 / Wallet (channel-agnostic)

Not a demo — a working baseline. Every result in the demo is real engine output.

⚡ See it block a transaction in 60 seconds

No config. No YAML. No account.

pip install spendshield
from spendshield import SpendShield

shield = SpendShield(budget=100, max_amount=50, dry_run=False)

Agent tries to spend $75 — policy limit is $50

result = shield.authorize("", 75, "amazon.com") print(result.decision, "—", result.reason)

❌ DENY — transaction $75.00 exceeds the $50.00 limit

⚡ Try SpendShield in 60 Seconds — no API key required: ▶ Open in Google Colab

⚡ Quickstart — 5 minutes to running

pip install spendshield

1. Write a policy (policy.yaml):

version: "2.0.0"

policy: budget: { daily: 100, monthly: 1000 } # hard ceilings transaction: { max: 50 } # per-payment cap merchants: allowed: [amazon.com, walmart.com] # exact domain match blocked: [scam-vip.com] approval: { over: 30, new_merchant: true, channel: tg } # human sign-off agents: shopping-agent: transaction: { max: 50 }

2. Gate your payment function:

from spendshield import SpendShield

dry_run=False: 真实执行。默认是安全干跑模式(只评估不执行) — 接入真实支付前用它调试

shield = SpendShield(dry_run=False) shield.load_policy("policy.yaml")

@shield.protect("order", agent="shopping-agent") def place_order(amount, to): return call_real_api(amount, to) # denied / needs-approval raises before this runs

Or use the result object directly:

result = shield.authorize("shopping-agent", 2000, "scam-vip.com")

print(result.decision) # "DENY" print(result.reason) # "merchant 'scam-vip.com' is blocked"

3. Watch it work (real engine output):

❌ DENY

Reason: merchant 'scam-vip.com' is blocked

  • MERCHANT_BLOCKED: merchant 'scam-vip.com' is blocked (block)

Policy version: 2.0.0

🤖 MCP Quickstart — the agent asks before spending

pip install spendshield

spendshield-mcp --policy policy.yaml # stdio MCP server, 16 tools

Host-side tool separation is a deployment requirement. The MCP server does not enforce tool ACLs itself — the host decides which tools an agent can call. Recommended split:

  • Agent-facing (decision tools): spend_authorize (ask "will this be denied?" / gate a payment), spend_status, spend_audit
  • Host/human-only (management tools): spend_approve / spend_reject (humans approve the big ones), spend_reset, policy_sim / policy_apply / policy_create → policy_review → policy_lifecycle_apply / policy_rollback, secret_get

If an untrusted agent is granted the management tools, the current implementation will not stop it from calling them — see deployment models.

🔌 Integration patterns — plug SpendShield into your stack

Building an agent payment tool, an x402 flow, or an MCP payment server? See [examples/integration/](examples/integration/README.md) — the three adapter patterns (x402 / agent payment tool / MCP), all runnable from this repo, no real money:

🧪 How it's tested (real money → real discipline)

  • 251 tests, 14+ security suites: budget bypass, race conditions, replay, double-spend, parameter tampering, credential leaks…
  • Security constitution — 8 invariants that must never break: unauthorized → no payment · over budget → no payment · approval mismatch → no payment · invalid identity → no paymen

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx