D20DAO Verifiable Randomness

org.d20dao由 d20dao.org 發布v0.1.2更新於 Oct 24, 2026

Verifiable VRF draws on Arc, 0.05 USDC each. On Robinhood Chain, integrate on chain with the SDK.

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理在 Arc 上進行付費且可驗證的 VRF 抽取(骰子、擲硬幣、範圍、抽選、洗牌),以 USDC 結算。

可以做什麼
執行可驗證的隨機抽取:原始值、擲硬幣、最多 128 個骰子、範圍、單選或多選,以及最多 256 項的洗牌,每項都附上請求、履行和證明連結,並可選用綁定鏈上的種子。依付款 ID 查詢抽取結果,或依請求 ID 查詢請求,並可免費完成待處理的抽取。檢查設定狀態:CLI、登入、錢包、Gateway 餘額和當日支出。
適用情境
當助理需要可稽核的隨機性用於抽獎、贈品、遊戲結果或公平選擇,而且你願意從 Circle 代理錢包為每次抽取支付少量 USDC 費用時使用。它適合結果需要可重播證明的場景。若要在 Robinhood Chain 上進行鏈上整合,請改用個別的 SDK。
執行需求
透過 npx 從 npm 套件啟動的本機 Node.js 程序。需要一個用 Circle CLI 設定的 Circle 代理錢包,透過電子郵件驗證碼登入,並儲值 USDC 後存入 Circle Gateway。選用設定包括 D20_NETWORK、D20_PAY_CHAIN、D20_WALLET_ADDRESS、D20_CIRCLE_CLI、D20_DAILY_LIMIT_USDC 和 D20_MCP_HOME。需要連線至 D20DAO API 的網路存取。建議調高用戶端的工具逾時時間。
安裝前請注意
每次抽取會從已儲值的 Circle 代理錢包扣除 0.05 USDC,會花費真實資金;D20_DAILY_LIMIT_USDC 限制每日支出,設為 0 可關閉付費抽取。伺服器使用你的 Circle 工作階段執行,由 CLI 簽署付款,但本身不持有金鑰。draw 帶有副作用,用戶端可能先詢問再執行。若結果顯示 charged 為 unknown,不要再次抽取,應透過 get_result 或錢包核對。若 CLI 回報了意外的收款方,halt.json 會停止付費抽取。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

D20DAO MCP server

Verifiable randomness for AI agents: dice, coin flips, ranges, winners and shuffles, each one a VRF request on Arc with a proof anyone can replay. 0.05 USDC per draw, paid from your Circle Agent Wallet.

Draws run on Arc through the D20DAO x402 API. D20DAO also runs on Robinhood Chain, where there is no x402 API: a contract there requests randomness directly on chain, using @d20dao/vrf-sdk 0.6.2 and its integration guide.

Setup

  1. Wallet. Have your agent follow Circle's setup guide. It installs the Circle CLI, logs you in with an emailed code and creates an agent wallet. You accept Circle's terms yourself.

  2. Funds. Fund the wallet with USDC and deposit some into Circle Gateway, for example on Arc:

    bash
    circle gateway deposit --chain ARC --method direct --amount 1 --address <wallet>

    Arc, Polygon, Avalanche, Base, Arbitrum, Optimism, Unichain and Ethereum balances all work.

  3. Server. Add it to your client.

    Claude Code:

    bash
    claude mcp add d20dao -- npx -y @d20dao/[email protected]

    Claude Desktop, Cursor and others (mcpServers in the client's MCP config):

    json
    { "mcpServers": { "d20dao": { "command": "npx", "args": ["-y", "@d20dao/[email protected]"] } } }

    On Windows, use "command": "cmd" with "args": ["/c", "npx", "-y", "@d20dao/[email protected]"] if the client cannot start npx directly. Pin the version, since the server runs with your Circle session.

Ask your agent to call setup_status; it names the next step until everything is ready.

Tools

ToolCostDoes
draw0.05 USDCraw, coinFlip, dice (up to 128), range, chooseOne, chooseMany, shuffle (up to 256 items). Returns the result with request, fulfillment and proof links.
get_resultfreeReads a draw by paymentId or a request by requestId.
setup_statusfreeChecks the CLI, login, wallet, Gateway balance and today's spending.

An optional seed (up to 64 bytes) is bound on chain to the draw, so a raffle can name its round before the result exists. Give each separate draw its own seed: an identical draw within five minutes returns the earlier one without paying.

A draw usually answers in about ten seconds, but it can take longer. If your client's tool timeout is short (60 seconds is a common default), raise it; a retry after a timeout returns the same draw rather than paying twice.

Settings

VariableDefault
D20_DAILY_LIMIT_USDC1Spending cap per UTC day, shared by every server process of the user. 0 turns paid draws off.
D20_NETWORKmainnettestnet uses the Arc Testnet API and a testnet CLI login (circle wallet login <email> --testnet).
D20_PAY_CHAINfirst fundedCircle CLI chain code to pay from, such as ARC or BASE.
D20_WALLET_ADDRESSfirst agent walletAgent wallet to pay from.
D20_CIRCLE_CLIcircle on PATHPath to the CLI's dist/index.js.
D20_MCP_HOME~/.d20dao-mcpWhere the spending record is kept.

Safety

  • The server holds no keys. The Circle CLI signs, and your Circle wallet limits apply. It never accepts Circle's terms for you: CIRCLE_ACCEPT_TERMS is kept out of the CLI it runs, and DO_NOT_TRACK is set so your item labels stay out of the CLI's telemetry.
  • It pays only api.d20dao.org (or api-testnet.d20dao.org) and never more than 0.05 USDC per draw. If the CLI ever reports another seller, that draw comes back with a warning and paid draws stop until you delete halt.json from the server's home folder.
  • Each draw reserves its price in the daily record before paying; if the record cannot be written, it does not pay.
  • A draw that is still pending is finished for free with get_result. If the answer is lost after payment, the server resends the payment the CLI signed, which the API honours at most once.
  • A result says charged: false only when that is known. When it says unknown, do not draw again; check with get_result or the wallet.
  • draw is marked as a tool with side effects, so clients ask before running it unless you allow it.

Verify

Every result links its request and fulfillment transactions and a proof page. Replay the proof yourself with @d20dao/vrf-sdk 0.6.2 or later; see verification and the agent API guide.

License

MIT

來源:README.md,提交 0541b0a

工具

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

版本歷史

3
  1. v0.1.2最新Oct 9, 2026
  2. v0.1.1Oct 9, 2026
  3. v0.1.0Sep 20, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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