stipend.sh

io.github.Graphiker-Australia由 GitHub 帳號 Graphiker-Australia 發布v0.45.4更新於 Oct 25, 2026

Non-custodial USDC wallet on Base with spending limits enforced in code, not in a prompt.

已驗證STDIO僅桌面金融安全與監控

概覽

AI 產生的概覽

一個本機 MCP 伺服器,為 AI 助理提供 Base 上的非託管 USDC 錢包,支出上限、白名單與審批在簽名前由程式碼強制執行。

可以做什麼
讀取錢包地址、USDC 與原生幣餘額、今日已花費金額和每日限額,並從網路讀取入帳付款並記錄。在不送出任何交易的情況下檢查某筆付款是否會被允許。在單筆與每日上限、白名單以及新收款地址首次付款確認的約束下送出 USDC。依類別報告收入與支出及可用天數,並列出待辦事項及各自負責人。
適用情境
當你希望助理持有並花用一小筆 Base 上的 USDC 周轉資金,且需要提示注入無法繞過的限額時使用。適合由代理支付 API 呼叫或小額付款,同時由人在命令列修改設定的情境。
執行需求
作為本機程序由 MCP 用戶端透過 stdio 啟動(指令 stipend,參數 mcp),不監聽任何網路埠。透過安裝腳本取得套件,需先安裝 eth-account。錢包與金鑰庫位於同一台機器、同一使用者下。未宣告任何環境變數或請求標頭。
安裝前請注意
它會動用真實資金:stipend_pay 送出 USDC,stipend_earnings 記錄入帳付款。私鑰在本機產生且從不傳輸,因此包括作者在內任何人都無法幫你找回。未經獨立稽核,x402 互通性僅針對作者自己的端點驗證。請保持較小餘額。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 stipend.sh,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

stipend.sh

A non-custodial USDC wallet on Base that an AI agent installs by itself, with spending limits enforced below the instruction layer.

pip install eth-account && curl -sL stipend.sh/install | sh

This is the source of the package that installer fetches. It is published so that the claims made for it can be checked rather than believed.

It ships an MCP (Model Context Protocol) server — stipend mcp — exposing seven tools over stdio, so an agent can hold and spend money through the tool interface it already has. See MCP server below.

The claim worth checking

The failure that matters for an agent holding money is not a stolen key. It is a correctly signed transaction it was argued into.

Almost every defence against that lives in the instruction layer — a system prompt saying "do not send funds to unverified addresses." That is a suggestion to a model, sitting in the same context window as the text attacking it.

In here the limits are not advice. They are code that a transaction passes through on its way to being signed, and no wording in any context window reaches them.

Start at stipend/policy.py. It is about three hundred lines and it is the whole argument.

The three controls

controlwhat it does
per-transaction and daily capsa ceiling that no instruction can raise
one-time approvalsauthorise a single payment — bound to that recipient, that amount, expiring, single use — instead of raising a cap
new-destination confirmationthe first payment to any address you have never paid needs confirming, whatever the size

The second is the one people get wrong. Raising a cap to afford one purchase weakens every future payment to everyone, which is precisely what an attacker asks for. Authorise the payment, not the capability.

The third is what stops a drain by many small payments that each sit under the threshold. An attacker's address is, by definition, one you have never paid.

And if you turn on an allowlist, it is absolute. Funds reach nothing else — not with a confirmation, not with an approval, not with any instruction from anywhere.

MCP server

The wallet is also a Model Context Protocol (MCP) server, so an agent can use it through the tool interface it already has rather than by shelling out.

stipend mcp

It speaks JSON-RPC over stdin and stdout — the MCP stdio transport. Your MCP client spawns the process; nothing listens on a port and nothing is exposed to a network.

In a client's config that looks like:

json
{  "mcpServers": {    "stipend": {      "command": "stipend",      "args": ["mcp"]    }  }}

The tools

toolwhat it does
stipend_addressthe wallet's address, so money can reach you whether or not you are running
stipend_balanceUSDC held, native currency held, spent today, and the daily limit
stipend_checkwould this payment be allowed? Answers without sending anything
stipend_paysend USDC, subject to every limit below
stipend_earningsread incoming payments off the network and record them
stipend_reportearned against spent, by category, with runway in days
stipend_recoverwhat is outstanding, and whose job each item is

Every one of them goes through the same policy.check gate the command line uses, so the caps, the allowlist and the new-destination confirmation apply identically. There is no path here that moves money without them.

stipend_check exists so an agent can ask "would this be allowed?" before it offers to pay for something, turning a refusal into an answer rather than a failure.

What it deliberately does not expose

No tool reads, exports or derives the private key. No tool changes a spending limit or the allowlist. No tool creates or overwrites a wallet.

An MCP tool is callable by a model that is reading untrusted text, and raising a cap is exactly what an attacker would ask for — so it is not on the menu at all. Configuration changes stay at the command line, where a human is present.

Why it is not hosted

Every registry would prefer a URL, and we will not publish one. A hosted wallet server means the key lives on somebody else's machine — ours — and the whole claim of this package is that it does not. This runs beside the keystore, under the same user, and the key never moves.

Run its own tests

No network, no funds, no wallet of yours touched:

python -m stipend selftest

219 checks covering address validation, amount arithmetic, every policy branch, the allowlist, the daily cap, destination trust and its expiry, keystore encryption, ERC-20 encoding, x402 requirement selection, EIP-3009 signing, the ledger, and exactly what telemetry would send.

What we would rather have

Someone to break it.

If you can construct an injection that moves money past the checks in policy.py, open an issue. We would rather hear it from you than from someone who is not being polite about it.

Honest limits

  • Not independently audited.
  • x402 interoperability is verified against our own endpoint, not third-party merchants.
  • The key is generated on your machine and never transmitted — which also means nobody can recover it for you, including us.
  • Keep the balance small. It is a working float, not savings.

Links

Licence

Apache-2.0. See LICENSE.

Built by the Stipend dev team. FelixTrade.ai Pty Ltd, Australia.

來源:README.md,提交 d74a1e8

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.45.4最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分