Vetagent

dev.vetagent由 vetagent.dev 發布官方發布者v0.2.0更新於 Oct 24, 2026

Pre-trade safety check for AI agents: honeypot, tax, liquidity and rug risk before you buy.

已驗證Streamable HTTP可網頁執行金融安全與監控

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理在交易前取得加密代幣風險判定、流動性快照,並跨八條鏈探索新資金池。

可以做什麼
評估代幣風險,給出低/中/高/未知判定、0-100 分數與各項訊號,涵蓋流動性深度、交易對年齡、同名冒充、賣出模擬、稅費與 Solana 權限。取得代幣主要交易對的流動性快照,包含價格、24 小時成交量、交易對數量與所在鏈,並附明確狀態。掃描某條鏈上最新或熱門的交易池,回傳價格、流動性、成交量與池齡,可選擇附上近期買賣筆數。
適用情境
當助理準備買入、持有或推薦某個代幣,需要結構化安全檢查而非一堆原始數字時使用;也適合在依資金池提醒行動前先做查核。
執行需求
遠端 streamable HTTP 端點;不需安裝套件、容器、API 金鑰或註冊。已知鏈時請傳入鏈提示,因為同一地址可能出現在多條鏈上。
安裝前請注意
判定並非投資建議,也不會替你決定部位大小;低風險只表示已執行的檢查未發現致命訊號,未知表示某項檢查無法執行,不能當作交易依據。探索結果不構成安全背書。它看不到鏈下風險,代幣查詢會送往第三方資料來源。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/dev.vetagent%2Fvetagent/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "vetagent": {
      "type": "http",
      "url": "https://vetagent.dev/mcp"
    }
  }
}

README

VetAgent

[MCP registry] [vetagent MCP connector – tool definition quality and endpoint health on Glama] [License: MIT]

A pre-trade safety check for AI agents. Before an agent buys, holds, or recommends a token, it calls VetAgent and gets an actionable verdict — low / medium / high / unknown — plus the specific signals behind it, instead of a wall of numbers to interpret.

Check a token address before acting on a pool alert. VetAgent reports liquidity across eight chains. On Ethereum, BSC and Base, it reports available sell-simulation and tax evidence and whether the simulation matches the displayed pool. On Solana it checks token authorities and liquidity. An unavailable sell check is disclosed. Try one address over MCP or HTTP without an API key.

Remote MCP endpoint: https://vetagent.dev/mcp · Landing page: https://vetagent.dev Using it, or think it got a token wrong? [email protected] — or open an issue.

jsonc
// assess_token_risk("0x…", chain_hint="ethereum"){  "risk_level": "medium",  "risk_score": 36,  "confidence": "high",  "signals": [    {"severity": "ok",   "name": "Liquidity is adequate",     "category": "liquidity"},    {"severity": "ok",   "name": "Simulation completed", "category": "honeypot"},    {"severity": "warn", "name": "Contract is closed source", "category": "contract"}  ],  "recommendation": "Medium risk: \"Contract is closed source\" (contract) fired; no fatal signal. Review it, and liquidity, holder distribution and contract permissions, before deciding. Honeypot.is reports a completed simulation in another pool. This simulation did not verify selling in the displayed pool."}

Install

Nothing to install. It is a remote server: no package, no container, no API key, no signup. Add one URL.

Claude Code

bash
claude mcp add --transport http vetagent https://vetagent.dev/mcp

Claude Desktop

Open Customize → Connectors, choose Add custom connector, and enter https://vetagent.dev/mcp. Choose No sign in if asked, then enable the connector in your conversation. An organization owner may need to add it first in a managed workspace. See Claude's remote connector guide.

Cursor

Add this to your project's .cursor/mcp.json, merging with existing servers:

json
{  "mcpServers": {    "vetagent": {      "url": "https://vetagent.dev/mcp"    }  }}

Python

Use the Python MCP quickstart to list the tools and make a read-only WETH lookup with the official SDK.

Plain HTTP

The same engine answers without an MCP client. Include the chain when you know it:

bash
curl 'https://vetagent.dev/assess/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2?chain_hint=ethereum'

Check the endpoint

Three tools should come back:

bash
curl -s -X POST https://vetagent.dev/mcp \  -H 'Content-Type: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

See llms-install.md for the version written for an agent doing the installing, and docs/AGENT-INTEGRATION.md for how to use the output once connected.


unknown is not low

This is the single most important thing to know about the output.

VetAgent is fail-closed. When a check cannot run — an upstream is down, a buy/sell simulation fails, no liquidity data comes back — it returns unknown and lists exactly what was missing in evidence.data_gaps. It never substitutes an optimistic middle value, and it never sizes a position for you.

confidence measures how complete the input data was, not how safe the token is.

A risk tool that honestly says "I don't know" is useful. One that guesses is not.


Tools

ToolWhat it does
assess_token_risk(address, chain_hint?, verbose?)Full risk profile: liquidity depth, pair age and same-ticker impersonation on all eight chains; sellability simulation, taxes, contract permissions and upstream aggregate verdicts on Ethereum, BSC and Base; mint/freeze authority and Token-2022 extensions on Solana. On Solana, holder concentration is reported only when RugCheck supplies a holder list; missing lists remain a coverage gap.
get_token_liquidity(address, chain_hint?)Liquidity snapshot for the primary pair, with an explicit status so "upstream failed" is distinguishable from "no pools exist"
find_new_hot_pools(chain?, limit?, listing?)Default mixed scans new then trending. For active pools use listing=trending. Optional trade_activity counts buys plus sells in the last hour and the preceding five hours for each pool. Inspect these counts alongside age, current liquidity and volume. These observations do not establish sustained funding, exit availability or safety. Discovery only — not a safety endorsement

Pass chain_hint whenever you know it. Ethereum forks such as PulseChain inherit contract addresses, so the same address exists on multiple chains with wildly different prices; the hint removes that ambiguity. (Without it, VetAgent prefers canonical chains — see _CHAIN_RANK in src/risk.py.)

Full agent-facing contract: docs/AGENT-INTEGRATION.md.


Accuracy benchmark

Most token-risk tools publish a feature list. We publish our error rates and the method behind them — including the parts that do not work yet — against labels produced by data sources the engine does not read.

What is measured today: a 1.9% false positive rate on 162 healthy tokens, a 13.0% false-block rate (20 of 154 liquid healthy tokens rated medium or high, which an agent will also refuse), a 20.7% unknown rate, and 21.2% of GoPlus-tagged centralised tokens rated high -- almost all abandoned pools holding cents, not USDT, which is rated low.

What is not measured yet: recall you could rely on. Sampling has turned up 30 dead tokens in 576, because every public source ranks by liquidity and rugged pools fall off the listing entirely, and the adversarial cohort is 17 contracts. Recall on those two small cohorts is published in bench/results.md beside a contract-signals-only column, because most of what they catch is an empty pool rather than a hostile contract. A population-level detection rate waits until the daily snapshot archive matures enough to supply a real cohort. An earlier version of this section claimed "measured recall", which the benchmark file itself contradicted.

→ bench/results.md — current numbers, method, and known limits.

Why it is built this way:

  • Independent labels. If the benchmark labelled tokens using honeypot.is — which the engine reads — it would only measure whether VetAgent can relay honeypot.is. Labels come from realized market outcome (price/volume history) and from GoPlus, which is deliberately held out of the engine.
  • A runtime assertion, not a promise. The benchmark records every endpoint each side touched and fails the run if the two sets intersect. A circular benchmark is worse than none, so it is made structurally impossible rather than documented.
  • An ablation column. A token that already collapsed has ~zero liquidity today, so flagging it is close to tautological. Results are therefore reported twice: with all signals, and with only contract signals kept (liquidity, lifecycle, pool-age and impersonation signals removed). The gap is what the engine actually contributes beyond the obvious.
  • unknown rate reported alongside recall. A tool that answers unknown to everything has perfect recall and zero value.

The benchmark uses the pinned logical clock 2026-09-21T02:00:00Z. Use an isolated working copy and a matching local cache for reproduction:

bash
python bench/run_benchmark.py --replay

Replay makes no network requests. A missing answer returns exit 4, lists missing URLs, and leaves existing result files unchanged. A complete replay can write bench/results.json and bench/results.md. The cache is not tracked or published with this repository; a fresh clone is not guaranteed to reproduce the published figures.

Plain run mode can fetch missing answers and write dated cache entries. An intentional refresh uses python bench/run_benchmark.py --fill missing-urls.txt with a reviewed explicit HTTPS URL list; it deduplicates the list and skips usable recorded entries. Run a separate --replay afterwards. A pinned logical clock is not a historical measurement of upstream state: new answers can change the results.


Tests

bash
python tests/test_risk.py               # engine regressions, offline, real upstream snapshotspython tests/test_mcp.py                # MCP protocol conformancepython tests/test_upstream_contract.py  # live: every path risk.py reads, against a measured baseline

Every case in tests/ is pinned to a defect that actually reached production.

The contract test earns its keep: VetAgent's worst bug was reading simulationResult.isHoneypot when honeypot.is puts that flag in honeypotResult. The key did not exist, the lookup returned None, it was read as False, and the honeypot check silently passed every token it was ever asked about. No mocked test could have caught that — only one that calls the real API and asserts the shape.

Rule for this repo: a commit that claims to fix something ships with a test that was red before it.


Architecture

Cloudflare Python Worker, no heavy dependencies.

src/  entry.py        HTTP routing (entry class must be named Default)  risk.py         risk engine — assess / liquidity / new_pools  mcp_server.py   hand-written streamable-http MCP endpoint (JSON-RPC 2.0)  landing.html    landing pagebench/            accuracy benchmark (independent labels + ablation)tests/            regression, protocol, and upstream-contract suitesdocs/             agent integration guide, handoff, MCP registry manifest

The MCP endpoint is hand-written rather than using the official mcp package: that package pulls in pydantic's C extensions, which do not install on Cloudflare Python Workers. Plain JSON-RPC turned out to be smaller and fully client-compatible.

Data sources

SourceUsed for
DexScreenerpairs, price, liquidity, volume, pair age
GeckoTerminalliquidity fallback, new/trending pools
honeypot.isbuy/sell simulation, taxes, aggregate risk, contract openness -- Ethereum, BSC and Base only
RugCheckSolana rug score, mint/freeze authority, Token-2022 extensions. On Solana, holder concentration is reported only when RugCheck supplies a holder list; missing lists remain a coverage gap.

Identified liquidity-pool accounts are excluded when matching identities are available; otherwise the reported share may include pools. This check is unavailable on EVM.

GoPlus is not used by the engine — it is reserved as the benchmark's held-out oracle. Adding it to the engine requires giving the benchmark a new independent labeller first, or the accuracy numbers stop meaning anything.

Where things are written down

Product and development references:

DocumentAnswers
README.md (this file)What is this, how do I call it
docs/DECISIONS.mdWhy is it built this way, and what enforces each rule
DEVELOPMENT.mdReproduce checks and preserve engineering invariants

Why a change was made lives in the commit message, which is immutable and attached to the diff. Why a line of code looks odd lives in a comment next to that line. Neither gets copied into a document, because a copy rots without anyone noticing.

Scope

VetAgent reports observable on-chain risk. It is not financial advice, it does not size positions, and it cannot see off-chain risk — team behaviour, social engineering, or a rug executed through governance. Treat low as "no fatal signal found in the checks that ran", never as "safe to buy".

License

MIT — see LICENSE.

來源:README.md,提交 1ad448f

工具

3

assess_token_risk

Assess Token Risk

Safety check to run BEFORE buying, holding, or recommending a token. Returns an actionable verdict (low / medium / high / unknown), a 0-100 risk score, and the individual signals behind it. Covers on every chain: liquidity depth, trading-pair age, cross-chain presence, same-ticker impersonation. Covers on Ethereum, BSC and Base only: sell simulation (honeypot detection, buy/sell/transfer taxes), whether the contract is open source, and the aggregate verdicts of upstream security scanners. Covers on Solana: the mint/freeze authority, the RugCheck score, and the SPL Token-2022 extension block -- non-transferable, frozen-by-default, transfer fee (with its cap), permanent delegate, transfer hook, pausable, close authority, scaled balances and interest-bearing balances. Every other extension the report carries is named in the answer with the reason it is not scored, so silence about one means it was considered, not that it went unread. No sell simulation runs on Solana, nor on the four other EVM chains accepted as a chain_hint (polygon, arbitrum, optimism, avalanche): nothing there tests whether a holder can sell, so the answer comes back 'unknown' rather than 'low'. No holder concentration on any chain -- on EVM it needs an oracle the benchmark holds out, and on Solana the upstream omits holders. IMPORTANT: risk_level 'unknown' means a critical check could not be completed. It is NOT a low-risk result and must not be used to justify a trade; evidence.data_gaps lists exactly what was missing, and unknown_kind says whose gap it is: 'infrastructure' and 'mixed' mean an upstream of ours failed and come with next_action 'retry' and retry_after_seconds (in a 'mixed' answer the rest was worked out without that upstream, so the retry can change any of it); 'coverage' comes with 'abstain'. 'confidence' measures how complete the input data was, not how safe the token is. Reports observable on-chain risk only. Not financial advice, does not size positions, and cannot see off-chain

輸入參數address必填verbosechain_hint

get_token_liquidity

Get Token Liquidity

Liquidity snapshot for a token's primary trading pair: price, 24h volume, pair count and the chains it trades on. Check 'status' before using the numbers. 'ok' means usable upstream data, not independently verified reserves or executable sell depth. The optional liquidity_reserve_check marker says 'not_checkable' when a positive selected estimate has no computable reserve cap. A missing marker never asserts that reserves, prices or an exit trade were independently verified. 'unavailable' means the upstream request failed, which does NOT mean the token has no liquidity. 'not_found' means no trading pair exists for this address at all. 'unpriced' means pairs exist but no source has costed them, so liquidity_usd is null and the depth is unknown -- this is NOT a report of zero liquidity. 'drained' means every pool on the token's own chain reports its depth and every one is empty: there is nothing to sell into.

輸入參數address必填chain_hint

find_new_hot_pools

Find New Hot Pools

Scan a chain for the newest and most active trading pools, returning name, token_address, price, liquidity, 24h volume and pool age. Discovery only. New pools carry inherently high risk and appearing here is NOT a safety endorsement — pass token_address straight to assess_token_risk for anything you intend to act on.

輸入參數chainlimit

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分