
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.
概覽
本機 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 的網路存取。建議調高用戶端的工具逾時時間。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 D20DAO Verifiable Randomness,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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
-
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.
-
Funds. Fund the wallet with USDC and deposit some into Circle Gateway, for example on Arc:
Arc, Polygon, Avalanche, Base, Arbitrum, Optimism, Unichain and Ethereum balances all work.
-
Server. Add it to your client.
Claude Code:
Claude Desktop, Cursor and others (
mcpServersin the client's MCP config):On Windows, use
"command": "cmd"with"args": ["/c", "npx", "-y", "@d20dao/[email protected]"]if the client cannot startnpxdirectly. 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
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
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_TERMSis kept out of the CLI it runs, andDO_NOT_TRACKis set so your item labels stay out of the CLI's telemetry. - It pays only
api.d20dao.org(orapi-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 deletehalt.jsonfrom 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: falseonly when that is known. When it saysunknown, do not draw again; check withget_resultor the wallet. drawis 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版本歷史
3- v0.1.2最新Oct 9, 2026
- v0.1.1Oct 9, 2026
- v0.1.0Sep 20, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分