
Priors
io.github.priors-agentsv0.2.8更新於 Oct 2, 2026
Pay x402 APIs in USDG on Robinhood Chain, borrow and repay a Priors credit line, check records.
概覽
為助理提供 Robinhood Chain 上的 USDG 錢包,用來支付 x402 計價 API、借入與償還 Priors 信用額度,並查詢鏈上信用紀錄。
- 功能
- 這個本機伺服器提供工具,可用 USDG 支付 x402 計價的 HTTPS 網址、查詢錢包餘額,並讀取任何代理的 Priors 信用紀錄、評分與股票持倉。它可以從代理自己的信用額度借入 USDG,並償還單筆或全部貸款。唯讀工具不需要錢包金鑰,涉及資金的工具則需要金鑰。
- 適用情境
- 當助理需要按次支付 x402 API、管理 Priors 信用額度,或查詢鏈上代理信用紀錄與評分時使用。若只需查詢,可使用託管唯讀端點,不必安裝。
- 執行需求
- 透過 npx @priors/mcp 在本機執行(需要 Node.js)。支付、借入與償還需要 PRIORS_KEY,也就是 Robinhood Chain 上專用代理錢包的私鑰;沒有它只能使用唯讀工具。選用變數包括 PRIORS_AGENT_ID、PRIORS_RPC、PRIORS_FACILITATOR 及支出上限。需要連線至 Robinhood Chain 主網。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Priors,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@priors/mcp
An MCP server that gives an AI assistant (Claude Desktop, Claude Code, or any MCP client) a USDG wallet on Robinhood Chain: pay x402-priced APIs, check balances, read any agent's Priors credit record, and borrow from and repay the agent's own Priors line.
Just reading? Use the hosted server
No install and no key: https://mcp.priors.trade/mcp (Streamable HTTP) answers the read-only questions (an agent's
record and score, the pool's figures, recent loans, the facilitator's services) from the same public data as
priors.trade. It holds no key and cannot send a transaction.
or, in any client that takes a remote server: { "mcpServers": { "priors": { "url": "https://mcp.priors.trade/mcp" } } }.
This package is the other half: a local server with the agent's wallet behind it, for paying, borrowing and repaying.
Tools that move money state the amounts in their answer, are marked destructive for MCP clients, and their
descriptions tell the assistant to confirm with you first. Merchant text (response bodies, listings, redirect targets)
comes back between random <<merchant-data …>> markers, as data. They act on Robinhood Chain mainnet.
Configure
The only secret is the wallet key, and it is read from the environment variable PRIORS_KEY, never from the command
line (a key-shaped argument makes the server exit without starting) and never printed or returned by a tool. Use a
dedicated agent wallet holding only what the agent may spend.
Contract addresses (pool, lens, registry, USDG) come from deployments/4663.v2.json, bundled in the package, and the
accepted stock tokens from deployments/stock-assets.4663.json. The stock vault's address (live since 2026-09-28)
comes from the same deployments file, or from PRIORS_STOCK_VAULT.
Claude Desktop
Settings → Developer → Edit Config (claude_desktop_config.json), then restart Claude Desktop:
Read-only (no wallet): leave out env. From a checkout of the Priors repository instead of npm (run npm install at
its root first): "command": "node", "args": ["/path/to/priors/packages/mcp/bin/priors-mcp.mjs"].
Claude Code
A project .mcp.json that reads the key from your shell's environment, so the file itself holds no secret:
or, for your user only: claude mcp add priors --scope user -e PRIORS_KEY="$PRIORS_KEY" -- npx -y @priors/[email protected]
(the key is expanded by your shell from the environment; do not paste it on the command line).
Try it
"What's the Priors score of agent 6228?" · "How much USDG does my wallet hold?" · "Find services that sell token prices" · "Pay https://api.example.com/report, up to 5 cents" · "Borrow $5 for 7 days, show me the fee first".
Source
來源:packages/mcp/README.md,提交 c43d4e6
工具
0版本歷史
1- v0.2.8最新Oct 2, 2026

