Collar Guardrail — Pre-Trade Risk Layer

io.github.aiguardrail由 GitHub 账号 aiguardrail 发布v1.0.5更新于 Oct 24, 2026

Deterministic pre-trade risk checks for AI agents on Robinhood Chain. Returns allow/warn/deny.

已验证Streamable HTTP可网页运行金融安全与监控

概览

AI 生成的概览

一个远程交易前风险检查点,为 Robinhood Chain 上的拟议交易评分并返回 allow、warn 或 deny 及审计哈希。

可以做什么
Collar 在执行前评估拟议交易,返回确定性的 allow、warn 或 deny 裁决,并附原因、0-100 风险评分和防篡改的 SHA-256 审计哈希。工具包括:免费的 Tier 1 检查 evaluate_trade、由链上 x402 支付解锁更高 Tier 2 上限的 evaluate_trade_paid、用于蜜罐与合约检查的 check_token_safety、只读余额模拟 simulate_balance、资产注册表 get_supported_assets,以及校验哈希链完整性的 verify_audit_trail。检查涵盖预言机价格、市场时段、层级限额、滑点边界和合约安全信号;蜜罐风险等级为 danger 时强制 deny。
适用场景
当自主或半自主代理在 Robinhood Chain 上提出交易,而你需要一个确定性、可审计的执行前关卡而非概率性猜测时,值得添加。也适用于代币安全筛查,以及通过审计链核验过往决策。
运行要求
远程 streamable-http 端点;未声明本地运行时、软件包或 API 密钥。清单声明无身份验证,README 说明认证为无,固定为 Tier 1。付费工具需要以 Robinhood Chain 上的 USDG 进行链上 x402 支付作为凭证。需要能访问服务商 API 的网络。
安装前请注意
该服务器把关真实交易决策,其 deny 裁决为硬性停止,因此错误或不可用的裁决可能阻止或放行交易。evaluate_trade_paid 会花钱:每次调用 0.10 USDG,在 Robinhood Chain 上链上结算。README 提到 REST API 使用 EIP-191 钱包签名的 JWT 认证并支持钱包连接,因此可能涉及钱包相关凭证。服务商发行自有 COLR 代币,与 Robinhood 无关;风险评分与审计哈希应视为服务商自身的声明。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Collar Guardrail — Pre-Trade Risk Layer,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.aiguardrail%2Fbackend/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "collar-guardrail-pre-trade-risk-layer": {
      "type": "http",
      "url": "https://api.collarguardrail.com/mcp-http/mcp"
    }
  }
}

README

Collar Guardrail

Deterministic pre-trade risk layer for AI agents on Robinhood Chain.

Collar evaluates proposed trades before execution and returns allow / warn / deny with reasons, a 0–100 risk score, and a tamper-evident SHA-256 audit hash.

[MCP Registry] [License: MIT]

Overview

Collar sits between an autonomous trading agent and the chain as a deterministic pre-trade checkpoint. Every proposed trade is scored against live oracle prices, market-hours rules, tier-based limits, slippage bounds, and contract-safety signals before it is allowed to proceed.

The result is a single, auditable verdict — never a probabilistic guess.

Endpoints

  • MCP Server: https://api.collarguardrail.com/mcp-http/mcp
  • MCP Server Card: https://api.collarguardrail.com/.well-known/mcp-server-card.json
  • Agent Card (A2A): https://api.collarguardrail.com/.well-known/agent-card.json
  • x402 Discovery: https://api.collarguardrail.com/.well-known/x402.json
  • Methodology: https://api.collarguardrail.com/methodology.html
  • Live Status: https://api.collarguardrail.com/status
  • Live Latency (p50/p95/p99): https://api.collarguardrail.com/latency.html
  • llms.txt: https://api.collarguardrail.com/llms.txt
  • Live Terminal (UI): https://collarguardrail.com

MCP Transport: streamable-http | Protocol: 2025-06-18 | Auth: none (fixed Tier 1)

Installation

Add to your MCP client config (Claude Desktop, Cursor, VS Code):

json
{  "mcpServers": {    "collar-guardrail": {      "url": "https://api.collarguardrail.com/mcp-http/mcp"    }  }}Verify:
bashcurl -X POST https://api.collarguardrail.com/mcp-http/mcp \  -H "Content-Type: application/json" \  -H "Accept: application/json, text/event-stream" \  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'Available ToolsTool	Purposeevaluate_trade	Pre-trade risk check at fixed Tier 1 ($5,000 ceiling). Returns allow / warn / deny with reasons and audit hash. Honeypot findings (severity=danger) force a DENY.evaluate_trade_paid	Same as evaluate_trade, gated by an x402 payment. Evaluated as Tier 2 ($25,000 ceiling). Call without payment_proof to receive the challenge; settle on-chain; retry with the proof.check_token_safety	Honeypot / contract safety check for any ERC-20. When severity=danger, evaluate_trade auto-DENYs.simulate_balance	Read-only balance simulation via eth_call state overrideget_supported_assets	Official Robinhood Chain asset registryverify_audit_trail	Verify the hash-chain integrity of past decisionsCall get_supported_assets first to resolve a symbol to its canonicalcontract address. A mismatched address is treated as a fake-token attemptand denied.
The free evaluate_trade is capped at Tier 1 ($5,000). If you need Tier 2($25,000) without holding COLR, use evaluate_trade_paid — the on-chainx402 payment is the credential.
CapabilitiesPricing
Chainlink oracle prices for 34+ Stock Tokens on Robinhood Chain
Uniswap V4 fallback when the oracle is stale, paused, or unconfigured
No fabricated fallback — if neither oracle nor V4 yields a price, verdict is deny
10-second V4 price cache
US Market Hours
Full US holiday calendar with observed-on-Friday/Monday shift
Early close on Thanksgiving Friday and Christmas Eve
Policy Enforcement
Tier system (REST API): 1,000 / 2,500 / 5,000 COLR → $5K / $25K / $100K limits
Per-tier rate limiting
Cluster-based rate limit and daily-loss guard (keyed on wallet fingerprint)
Slippage / MEV guard (hard 500 bps floor)
Idempotency via request_id (5-minute cache)
Global kill switch, contract mismatch detection, per-wallet blocklist
Contract Safety
Honeypot detection: bytecode scan, owner check, sell simulation via eth_call
Auto-DENY: when severity=danger, the verdict is deny regardless ofother checks — a hard stop.
GoPlus intelligence for unregistered tokens (buy/sell tax, mintable,proxy, ownership reclaim).
Excessive tax (buy or sell > 10%) triggers an automatic deny viaGoPlus when allow_unregistered=true is passed to the request.
Auth & Infrastructure
JWT authentication via EIP-191 wallet signature (REST API)
Auth rate limiting per IP (20 req/min)
WalletConnect v2 + EIP-6963 wallet discovery
200+ token registry
Hash-chained audit trail (audit_hash + audit_seq)
Observability
Public live status page — uptime, dependency health, known issues
Public latency dashboard — p50/p95/p99 per endpoint and per MCP tool
Public methodology — how the 0–100 score is computed
Public audit-chain verification
Payments (x402)Endpoint: POST /api/x402/analyze
Price: $0.10 USDG per call
Network: Robinhood Chain (eip155:4663)
Discovery: /.well-known/x402.json
Facilitator: Ultravioleta DAO
Listing: x402 Bazaar
No signup, no API key. Registered in the x402 Bazaar for automatic agent discovery.
Response Formatjson{  "decision": "allow",  "reasons": ["price source: oracle", "within tier 1 ceiling"],  "tier": 1,  "max_trade_usd": 5000,  "calculated_notional_usd": 1452.30,  "price_usd": 145.23,  "price_source": "oracle",  "risk_score": 12,  "audit_hash": "sha256:...",  "audit_seq": 12345,  "daily_pnl_usd": 0.0}decision: allow / warn / deny — deny is a hard stop
reasons prefixed with ADVISORY: are non-blocking
price_source: oracle / uniswap_v4 / fallback_default / unavailable
error: if present, no verdict was produced — treat as a hard stop
Discovery Files/.well-known/mcp-server-card.json — MCP tool schemas (canonical, flat)
/.well-known/mcp/server-card.json — alias (nested)
/.well-known/agent-card.json — A2A skills
/.well-known/x402.json — x402 payment resources
/.well-known/methodology.md — risk score methodology (agent-readable)
/.well-known/known-issues.json — public known-issues list
/methodology.html — methodology, human-readable
/mcp-card.html — rendered server card
/agent-card.html — rendered agent card
/latency.html — live latency dashboard
/status — live status page
/llms.txt — full API contract for LLM agents
/skill.md — concise skill index
/robots.txt — AI crawler allow-list
/sitemap.xml — site map
Registry ListingsOfficial MCP Registry: io.github.aiguardrail/backend
Smithery: search "collar"
x402 Bazaar: /api/x402/analyze
DocumentationLive Terminal (UI): https://collarguardrail.com
Agent Integration Guide: https://collarguardrail.com/agent-docs.html
MCP Server Card: https://api.collarguardrail.com/.well-known/mcp-server-card.json
Methodology: https://api.collarguardrail.com/methodology.html
Status: https://api.collarguardrail.com/status
Latency: https://api.collarguardrail.com/latency.html
ContactX (Twitter): @collarguardrail
DisclosureCollar is the risk layer for autonomous finance on Robinhood Chain.Deterministic, auditable, and independent.
COLR is our own utility token, issued and operated by the Collar team.It is not affiliated with, endorsed by, or issued by Robinhood Markets,Inc. or any Robinhood entity. Robinhood Chain is a public blockchain webuild on — using it does not imply any relationship with Robinhood.

来源:README.md,提交 8985c38

工具

6

evaluate_trade

Evaluate Trade (Free)

Pre-trade risk check for a proposed trade. Call this BEFORE executing any trade and treat a "deny" decision as a hard stop. Evaluated at a fixed Tier 1 ceiling ($5,000 notional). For higher limits, use `evaluate_trade_paid` (Tier 2, $25,000) which settles an x402 payment on-chain.

输入参数side必填asset必填amount必填wallet必填request_idcontract_address必填max_slippage_bps

evaluate_trade_paid

Evaluate Trade (x402 Paid, Tier 2)

Pre-trade risk check gated by an x402 payment. Evaluated as COLR Tier 2: $25,000 notional ceiling, 10/25 per-minute rate limits. No COLR holdings are required — the on-chain payment is the credential. FLOW ---- 1. Call WITHOUT payment_proof → the tool returns a `PaymentRequiredOutput` describing the on-chain payment (network, asset, amount, payTo, resource). 2. Settle the payment on-chain using an x402-capable client. The facilitator returns a proof string. 3. Call again with `payment_proof=<proof>` → the tool forwards the proof to the guardrail's x402-paid endpoint and returns a full `EvaluateTradeOutput` with `tier=2`.

输入参数side必填asset必填amount必填wallet必填request_idpayment_proofcontract_address必填max_slippage_bps

check_token_safety

Check Token Safety

Honeypot / contract safety check for any ERC-20 token. Returns a severity classification (safe / warn / danger), the specific risk factors detected, and the result of a simulated sell. When severity=danger, the next `evaluate_trade` for the same contract is automatically denied regardless of any other checks. This is a heuristic bytecode + simulation check, not a formal audit. Use it before trading unknown tokens, memecoins, or any contract that is absent from the official Robinhood Chain registry. It is safe to call repeatedly; no transaction is ever sent.

输入参数contract_address必填

simulate_balance

Simulate Balance

Simulate a wallet's ERC-20 balance after a hypothetical trade using eth_call state override. Read-only: no transaction is ever sent.

输入参数delta必填holder必填decimalstoken_address必填

get_supported_assets

Get Supported Assets

List every asset in the guardrail's official Robinhood Chain registry, with its canonical contract address.

无需输入参数。

verify_audit_trail

Verify Audit Trail

Verify the tamper-evident audit trail for a wallet's past guardrail decisions.

输入参数limitwallet必填

版本历史

4
  1. v1.0.5最新Oct 6, 2026
  2. v1.0.4Sep 19, 2026
  3. v1.0.3Sep 18, 2026
  4. v1.0.2Sep 17, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分