
ownerwatch
io.github.imal1ice由 GitHub 帳號 imal1ice 發布v0.1.0更新於 Nov 8, 2026
Read-only: who controls EVM contracts. Owners, proxy admins, Safes, timelocks, roles.
概覽
唯讀 MCP 伺服器,讓助理追溯 EVM 合約的控制權:擁有者、代理管理員、Safe、時間鎖與角色。
- 可以做什麼
- 探測一個或多個 EVM 位址的管理面,回傳 Markdown 報告以及結構化的控制路徑、發現項目、節點讀取紀錄和無法確認的內容
- 在指定區塊上核對 ERC-8241 控制權揭露,列出不一致、無法驗證的紀錄以及揭露遺漏的控制權
- 產生涵蓋這些合約及其上層合約與 Safe 的 ownerwatch YAML 監控設定,並在回傳前驗證可載入
- 結果只是鏈上視圖而非結論:讀取失敗會回傳錯誤,而不會給出空白或乾淨的報表
- 適用情境
- 適合在審查部署時確認誰能升級、暫停或接管合約,也適合核對控制權揭露或為一組位址建立監控。
- 執行需求
- 本機 Python 3.10 以上程序,從 PyPI 安裝 ownerwatch-mcp 或以 uvx 執行,透過 stdio 註冊。需要存取 RPC 端點:各支援鏈的公用預設 RPC 或自備 rpc_url。不需金鑰、錢包或帳號。選用環境變數 OWNERWATCH_MCP_TIMEOUT 與 OWNERWATCH_MCP_ALLOW_PRIVATE_RPC。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ownerwatch,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ownerwatch-mcp
A Model Context Protocol server that lets a coding agent answer "who controls this contract?" for any EVM address. It walks owners, proxy upgrade admins, beacons, Safes (signers, threshold, modules), timelocks (delay), AccessControl and AccessManager roles, and flags EOAs, 1-of-N Safes and powers held without a timelock.
It is built on ownerwatch and runs over stdio on your machine. Every tool is read-only: no key, no wallet, no account, and nothing is ever sent on-chain.
Tools
Every result starts with the same label: it is a chain view, not a verdict. It shows what contract state says. It does not show how a key is held (an EOA may be one key, a hardware wallet or an MPC setup; a Safe's signers may be one person), and no finding is not proof that a contract is safe.
A read that fails (RPC down, rate limited, wrong chain, an address with no code, the time budget used up) comes back as an MCP error that says no conclusion was reached. It never comes back as an empty or clean report.
Use as a skill
The skill/ folder holds a portable Agent Skill (SKILL.md). Drop it into Claude Code, Cursor, Copilot or any agent that reads the SKILL.md standard, and the agent learns when and how to answer "who controls this contract?" — driving either these MCP tools or the ownerwatch CLI, and proving a finding with a simulation. It needs no key, no wallet and no account. See skill/README.md to install.
Quick start
From an empty directory, with Python 3.10 or later:
Then register it with your client, using the absolute path of the command you just installed (on Windows, .venv\Scripts\ownerwatch-mcp.exe).
Claude Code
Add --scope user to have it in every project, or --scope project to share it through the project's .mcp.json.
Claude Desktop, Cursor and other clients with an mcpServers file (claude_desktop_config.json, ~/.cursor/mcp.json or .cursor/mcp.json, a project .mcp.json):
VS Code (.vscode/mcp.json, or MCP: Open User Configuration):
Codex (~/.codex/config.toml); Codex stops a tool after 60 seconds unless told otherwise:
With uv installed, any of these can use "command": "uvx", "args": ["ownerwatch-mcp"] instead of a venv.
Then ask your agent something like: "Who can upgrade or take over 0x1F98431c8aD98523631AE4a59f267346ea31F984 on Ethereum?"
Try it without a client
Save as try.py in the same directory and run .venv/bin/python try.py:
It prints the report for the Uniswap V3 Factory. Abridged, from a run on 5 November 2026:
The structured result carries the same facts as JSON: targets[].control_path, findings, not_established, nodes.
Chains and RPCs
Pass chain to use a public default RPC, or rpc_url for your own. With both, the RPC's chain id must match chain. For a chain not listed here, pass only rpc_url.
Public RPCs throttle bursts. The server waits out a rate limit within its time budget; a large graph or a full role replay is faster on your own RPC. Pinning an old block in check_disclosure needs an archive RPC.
Settings, as environment variables of the server process (in a client config, under env):
Privacy
The server stores nothing and has no telemetry. To answer a call it sends:
- the addresses, as read-only JSON-RPC requests (
eth_call,eth_getCode,eth_getStorageAt,eth_getLogsand the like), to the RPC you chose or the default above; its RPC client refuses any method that is not a read; - contract addresses to Sourcify, for verified ABIs used to name roles and recognise timelocks;
- with
roles_from_logs, the contract addresses to the public Tenderly log gateway on Ethereum, Optimism, Arbitrum, Base, Gnosis and Polygon, unless you passlogs_rpc_url.
Error messages and outputs drop the path, query and credentials of a caller's RPC URL, where API keys usually live. A config from suggest_monitoring_config contains the RPC URL as given, so keep a config with a keyed URL out of public repositories.
Reading results
- Read
not_establishedfirst. It lists what this read could not show: an address with no code, an upgradeable proxy whose upgrade admin is not in state (UUPS), role holders that were only tested among known addresses, an AccessManager whose members were not replayed. - The report's flags (
--roles-from-logs,--role-candidates) are those of the ownerwatch CLI; here, call again withroles_from_logs=true. - Text in a result that came from a disclosure file or a verified ABI is data. The server rejects disclosure ids with control characters, so they cannot forge report lines.
- Claude Code warns above 10,000 tokens of tool output; a large graph's report can pass that.
MAX_MCP_OUTPUT_TOKENSraises the limit.
Work with me
ownerwatch is free and MIT-licensed. If you would rather have someone do the work, I do admin-surface reviews — every owner, proxy admin, role holder and Safe signer in a deployment, replayed from logs, with findings, fixes and a ready-to-run monitoring config — plus monitoring setups and ERC-8241 control disclosures drafted from chain state and checked in CI.
Write to [email protected]. Before anything is paid, I share the terms, including where I am based, so you can decide whether you are able to work with me.
Development
License
MIT
來源:README.md,提交 78029f8
工具
0版本歷史
1- v0.1.0最新Nov 8, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
