Authority Risk Mcp

io.github.RealSpap由 GitHub 账号 RealSpap 发布v0.1.0更新于 Oct 24, 2026

Read-only tools for AI agents: who can change a smart contract, how fast. Signed data, testnet.

发布方自己的服务:authority.md

已验证STDIO仅桌面金融安全与监控

概览

AI 生成的概览

一个只读 MCP 服务器,借助已签名的测试网预言机数据,告诉助手谁能修改智能合约、速度多快、权限设置有多强。

可以做什么
查询合约的权限评分,含子评分、是否过期、预言机与区块,并附可重放的调用(getScore)。按评分列出被跟踪的合约,最弱者在前,并统计无评分的数量(listTargets)。说明谁控制合约:管理员类型、阈值、所需密钥数、延迟、模块与待生效的管理员变更(whoControls)。检查某协议在其所在各链上是否达到评分阈值并给出结论(checkProtocol)。每个回答都是 JSON,带状态和显示签名与快照校验的完整性区块。
适用场景
适合在助手依赖或与某智能合约交互之前,快速了解其管理员控制与升级风险。也适合按评分阈值跨多条链筛查被跟踪的合约或协议。
运行要求
以 stdio 在本地运行。可用 uvx(Python 3.9 或更高)或 pip 安装,也可用 npx(需 Node 18 或更高及 python3 3.9 或更高)。无需账户、密钥或钱包。联网模式会访问 raw.githubusercontent.com 和 cdn.jsdelivr.net,或你提供的 https 基础地址;本地数据目录选项可离线使用。
安装前请注意
评分是对公开测试网数据的读数,不是审计,也不是投资建议;not_tracked 结果并不说明合约安全。未读取的值为 null,绝不为零,协议仅部分读取不算通过。签名校验可防镜像与篡改,但防不了持有签名密钥的维护者。存在接受未签名或未固定密钥数据的选项,会削弱校验。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Authority Risk Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

authority-risk-mcp

A read-only MCP server that tells an AI agent who can change a smart contract, how fast, and how strong the setup is, before the agent depends on it. It reads the files that the Authority Risk Oracle Watch publishes every six hours, and checks them against the Watch's signed manifest before it answers.

No account, no key, no wallet, no transaction. The scores are published on testnet oracles for contracts of the networks named in each answer. A score is a reading of public data taken at the time shown: not an audit and not investment advice.

Install

With uvx (Python 3.9 or newer, nothing else):

json
{ "mcpServers": { "authority-risk": { "command": "uvx", "args": ["authority-risk-mcp"] } } }

With npx (needs Node 18 or newer and python3 3.9 or newer on the PATH; the npm package is a thin launcher around the same Python server):

json
{ "mcpServers": { "authority-risk": { "command": "npx", "args": ["-y", "authority-risk-mcp"] } } }

Put the block in claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor), then restart the client. With pip: pip install authority-risk-mcp, then authority-risk-mcp.

The four tools

ToolAsk itReturns
getScore"What is the authority score of 0x1f7d... on Robinhood Chain?"composite and five sub-scores, stale or not, when it was pushed and read, the oracle and block, and a cast call to replay the reading
listTargets"Which tracked contracts score under 40?"the matching contracts, weakest first, and how many had no score read
whoControls"Who can change this contract, and how fast?"admin kind (EOA, Safe, timelock...), threshold, keys needed to act, delay, modules, pending admin change
checkProtocol"Is aave-v3 above 60 on every chain it is on?"weakest contract, how many were read, stale or alerting ones, and a verdict: ok, fail, unread_part, unread

Every answer is JSON with a status:

  • ok: the answer is read.
  • not_tracked: the Watch does not track this contract. That says nothing about its safety.
  • not_read: a file the answer needs is missing, could not be fetched, or did not match its signature (integrity_failed: true).

A value the Watch did not read is null and listed in not_read. It is never 0 and never "ok". unread_part means some contracts of a protocol were read and others were not: that is not a pass.

Example call (what a client sends):

json
{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "getScore", "arguments": {"chain": "robinhood", "address": "0x1f7d7550B1b028f7571E69A784071F0205FD2EfA"}}}

Chains: robinhood, ethereum-l1, arbitrum, base, tempo, plasma, monad, hyperliquid, solana.

What is checked

The Watch signs a manifest (the sha256 of every published file and the head of its hash-chained event log) with an Ed25519 key. This server:

  1. fetches signature.json and verifies the signature with a key it has pinned (11baca3e...f409); an unknown key, an unsigned manifest or a bad signature is refused;
  2. fetches each file it needs and compares its sha256 with the manifest; if the first source (raw.githubusercontent.com) serves a different copy, it tries the second (jsDelivr); a mismatch everywhere is refused;
  3. compares the head of the event log with the manifest when it can.

Each answer carries an integrity block: whether it verified, which key signed, how old the snapshot is (snapshot_stale after 72 hours), and the event-log check. A file that does not match is never a value.

What this does not prove: the Watch's workflow holds the signing key, so a malicious change to the workflow itself could sign anything (that change would be visible in the repository history). The pinned key protects against a different server, a compromised mirror or a tampered download, not against the maintainer.

Options

authority-risk-mcp [--data-dir DIR] [--base-url URL] [--trust-key HEX] [--allow-unsigned] [--allow-unpinned] [--max-age-hours N]
  • --data-dir DIR: read a local clone of the watch-data branch, offline (git clone --depth 1 -b watch-data https://github.com/RealSpap/authority-risk-oracle-showcase.git). The folder is checked against its own signature.json when it has one; without it the answers say verified: false. Nothing touches the network in this mode.
  • --trust-key HEX (or AUTHORITY_RISK_TRUSTED_KEYS, comma separated): accept a manifest signed by another key, for a rotation announced in the repository.
  • Network mode contacts only raw.githubusercontent.com and cdn.jsdelivr.net (or the https --base-url you give) and writes verified files to a private temporary folder that is removed when the server stops.

Licence

MIT. Source: packages/authority-risk-mcp in the repository. The tool modules are copied byte for byte from the repository's scripts/ folder at build time.

来源:packages/authority-risk-mcp/README.md,提交 915c448

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Oct 14, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Authority 集成