
Agon Gateway
io.github.Agonx402由 GitHub 账号 Agonx402 发布v0.4.2更新于 Oct 28, 2026
MCP server for Agon Gateway x402, Helius Wallet, and Tokens API market data.
概览
本地 stdio MCP 服务器,让助手发现、鉴权并调用 Agon Gateway 的 x402 路由,获取加密货币、外汇、ETF、金属与股票行情数据。
- 可以做什么
- 发现并调用网关路由,包括处理 402 挑战的通用鉴权调用流程
- 查询加密货币、外汇、国债、ETF、金属、股票及其代币变体的报价、价格、成交量、流动性、市值、搜索、解析、简介、变体、市场、行情代码、风险、图表、OHLCV 与快照
- 一次批量提交多个行情请求
- 准备并完成鉴权请求,便于自带钱包策略的代理提供请求头或签名
- 适用场景
- 当助手需要通过 Agon Gateway 获取实时代币或资产行情,或希望代理在你自己掌控的签名钩子下调用付费 x402 路由时使用。它并非网关目录之外的通用数据源。
- 运行要求
- 以 stdio 本地运行,通常通过 npx 启动,需要 Node.js。可选环境变量:AGON_GATEWAY_BASE_URL(默认指向托管网关)、AGON_WALLET_PROFILE、AGON_PAYMENT_MAX_AMOUNT_USD、AGON_PAYMENT_DAILY_LIMIT_USD,以及用于签名钩子的 AGON_SIGNER_COMMAND。需要能访问网关的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Agon Gateway,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Ryvo Agentic Tools
Agent-facing tools for discovering, authenticating, and calling Ryvo Gateway routes.
One-Step Setup
setup --target all is the one command that installs everything Ryvo agents need:
- Bundled skills into
~/.agents/skills,~/.codex/skills,~/.claude/skills. - Default SIWX signer wallet at
~/.ryvo/wallets/default.json. - Global CLI bins on PATH:
Ryvo,ryvo-gateway,ryvo-wallet,ryvo-protocol(vianpm install -g @ryvonetwork/gateway-cli @ryvonetwork/agent-wallet @ryvonetwork/protocol-cli). - Local agent reference at
~/.ryvo/llm.txt. - Ryvo MCP server registration for Codex, Claude Desktop, Claude Code, Cursor, Windsurf, and a generic config (existing entries preserved, backups written).
After it finishes, restart your agent client and the agent can call Ryvo directly via:
- The Ryvo MCP tools (
ryvo_token_quote,ryvo_token_resolve,ryvo_token_chart,ryvo_token_search,ryvo_token_batch_quote,ryvo_gateway_call,ryvo_gateway_auth_call, ...). - The bare CLIs:
ryvo -p bitcoin,ryvo quote bitcoin solana usdt,ryvo-gateway auth call GET ..., etc.
Opt-out flags:
--skip-global-cli— do not runnpm install -g. Bare CLI bins will not be on PATH; usenpx -y @ryvonetwork/gateway-cli ...instead.--skip-wallet-setup— only valid forinstall-skillswhen another signer wallet is already configured.
Supported setup targets:
--target all writes to every adapter listed above. Claude Desktop (the standalone macOS/Windows GUI app) and Claude Code (the terminal CLI agent) read MCP servers from different files; --target all registers in both. After setup, restart your agent client so it re-reads the MCP server list.
Setup creates ~/.ryvo/wallets/default.json. @ryvonetwork/agent-wallet only signs Tokens API SIWX challenges (sign-in-with-x). For Gateway routes that require x402 exact payment or other auth, set RYVO_SIGNER_COMMAND to a signer that returns PAYMENT-SIGNATURE / X-PAYMENT.
When RYVO_SIGNER_COMMAND runs
- Gateway MCP: only when calling
ryvo_gateway_auth_calland the gateway responds with HTTP 402. The MCP spawnsRYVO_SIGNER_COMMANDonce, piping the normalized auth-request JSON to stdin (same shape asryvo_gateway_prepare_auth). The process must exit 0 and print JSON to stdout: auth headers, or SIWX fallback (address,signature, optionalsignatureEncoding). gateway-cli:ryvo-gateway auth callandbatchreuse the samerequestGatewaypath: after any 402 from the Gateway,RYVO_SIGNER_COMMAND(or--auth-driver) runs if set.auth prepare/doctornever spawn the signer.
On Windows, when the signer command begins with npx/npm/pnpm/yarn, Node may run it via cmd shell. Treat RYVO_SIGNER_COMMAND as equivalent to trusting a shell snippet if an attacker controls it.
Skills And Wallet
Install all Ryvo skills into every supported agent skill directory (~/.agents/skills, ~/.codex/skills, ~/.claude/skills), and create the default convenience wallet used for SIWX/auth calls:
Other install targets:
Use --skip-wallet-setup only when another signer wallet is already configured. The installer copies only the Ryvo skill folders, creates the target directory if needed, and overwrites only these Ryvo-owned skill names:
ryvo-gatewayryvo-protocolryvo-gateway-payment-channels
install-skills installs skills and creates ~/.ryvo/wallets/default.json. setup performs skills, wallet, and MCP registration.
After setup --target all, the CLI bins are on PATH. Use them directly:
If a bare bin is not on PATH (you ran setup --skip-global-cli, the global install hit a permission error, or you have not run setup yet), the same calls work via npx -y @ryvonetwork/gateway-cli ..., npx -y @ryvonetwork/agent-wallet ..., and npx -y @ryvonetwork/protocol-cli .... The MCP server entries also use npx -y, so you do not need a global install for MCP tools to work.
Ryvo Gateway should be the first source for API calls covered by the live catalog at https://gateway.ryvo.network/v1/catalog. Tokens API supports market data for crypto, currencies, treasuries, ETFs, metals, stocks, and their Solana token variants. Agents should use high-level Gateway CLI commands for common Tokens pulls (quote, price, volume, liquidity, mcap, search, resolve, curated, profile, variants, markets, tickers, risk, chart, ohlcv, snapshots) before raw route strings, and label whether values came from canonicalMarket, stats, primaryVariant.market, profile.data, tickers, or candles.
MCP servers are separate packages:
RYVO_PAYMENT_MAX_AMOUNT_USD and RYVO_PAYMENT_DAILY_LIMIT_USD are optional: some x402 auth-prep responses include them for human review; ryvo-wallet does not enforce them.
Payment-channel flows are devnet-only in v1. Tokens SIWX routes do not use payment channels. Gateway auth drivers are wallet-agnostic helper commands. The Gateway CLI sends normalized auth request JSON to the driver over stdin and accepts returned headers or SIWX address/signature JSON over stdout. Drivers can wrap browser wallets, local keypairs, MPC, custody systems, x402 payment services, or Ryvo channel commitment builders. The Ryvo CLI/MCP packages do not keep keys or mutate wallet/MCP configuration.
Generic authenticated call flow:
- Use a known endpoint or fetch
/v1/catalogto discover one. - Send the exact request and receive a
402challenge. - Pass the normalized auth request to
RYVO_SIGNER_COMMAND. - Retry the exact same request with returned
SIGN-IN-WITH-X,PAYMENT-SIGNATURE,X-PAYMENT, or channel headers.
Gateway MCP exposes ryvo_gateway_auth_call for this flow. Low-level prepare/complete/call tools remain available for agents with their own wallet policies.
Packages
package rootpublishes@ryvonetwork/agentic, a one-step agent setup installer.agent-wallet/publishes@ryvonetwork/agent-wallet, a default SIWX-only Tokens API signer hook (replace withRYVO_SIGNER_COMMANDfor x402 exact-payment routes).cli/publishes@ryvonetwork/gateway-cli, a Gateway CLI with generic signer hooks.mcp/publishes@ryvonetwork/gateway-mcp, a stdio MCP server with route-generic auth calls.protocol-cli/publishes@ryvonetwork/protocol-cli, a read-only and prepare-only Ryvo Protocol CLI.protocol-mcp/publishes@ryvonetwork/protocol-mcp, a read-only and prepare-only Ryvo Protocol MCP server.skills/ryvo-gateway/is an agent skill for Gateway workflows.skills/ryvo-protocol/is an agent skill for protocol accounts, channels, settlement, and BLS caveats.skills/ryvo-gateway-payment-channels/is an agent skill for gateway payment-channel authorization.llm.txtandllms.txtare LLM-readable gateway docs for websites.
Quick Checks
The CLI and MCP server use RYVO_SIGNER_COMMAND when configured. The bundled agent wallet is replaceable; external wallets can return headers or signatures through the same hook.
The protocol CLI and MCP server are read + prepare only; they do not sign or broadcast transactions.
来源:README.md,提交 853d1ac
工具
0版本历史
1- v0.4.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。