ownerwatch

v0.1.0
io.github.imal1ice/ownerwatch-mcp Checked 1 day ago Published 24 days ago

Read-only: who controls EVM contracts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

probe_admin_surface Who controls these contracts

Who controls these EVM contracts: walks owner(), proxy upgrade admins, beacons, Safes (signers, threshold, modules), timelocks (delay), AccessControl and AccessManager roles up the chain of control, and flags EOAs, 1-of-N Safes and powers held without a timelock. Returns the ownerwatch Markdown report plus structured data: targets with their control path, findings, every node read, and not_established (what this read could not show). Read-only. A chain view: it does not show how a key is held, and no finding is not a verdict that a contract is safe. A failed read is an erro…

ParameterTypeDescription
addresses *arrayContract addresses (0x, 40 hex digits), all on one chain.
chainChain name or id, read through a public default RPC: ethereum (1), optimism (10), bsc (56), gnosis (100), polygon (137), base (8453), arbitrum (42161), avalanche (43114), linea (59144), scroll (534352…
labelstringProtocol name for headings and config labels.
logs_rpc_urlWith roles_from_logs: an https RPC used only for eth_getLogs.
roles_from_logsbooleanReplay RoleGranted/RoleRevoked logs to list every role holder. Slower; needs log history (a public log gateway is tried first on Ethereum, Optimism, Arbitrum, Base, Gnosis and Polygon).
rpc_urlAn https JSON-RPC URL that serves eth_call; overrides the default. With chain also set, the RPC's chain id must match it.

check_disclosure Check an ERC-8241 disclosure

Check an ERC-8241 protocol control disclosure against chain state at one pinned block, as `ownerwatch disclosure check`: every declared node, component, power and edge is ok, mismatch or unverifiable, and control seen on the declared components that no power declares is listed as undisclosed. status is discrepancies_found (the CLI's exit 1), no_discrepancies, no_discrepancies_some_unverifiable or nothing_verified. Read-only. A chain view: a match is not a verdict that the protocol is safe. A failed read is an error, never a clean result.

ParameterTypeDescription
disclosure_json *An ERC-8241 control disclosure: JSON text or an object, in the form `ownerwatch disclosure draft` writes.
rpc_url *stringAn https JSON-RPC URL for the disclosure's chain. Pinning an old block needs an archive RPC.
blockRead every record at this block (default: the head).
from_blockFirst block of the role replay (default: each contract's creation block).
logs_rpc_urlAn https RPC used only for eth_getLogs in the role replay.
roles_from_logsbooleanReplay role logs up to the block to find every role holder on the declared components (as the CLI default). false only tests common roles on named addresses.

suggest_monitoring_config Suggest an ownerwatch monitoring config

An ownerwatch YAML config that watches these contracts and every contract and Safe found above them (owners, upgrade admins, timelocks), written from chain state and checked to load in ownerwatch. Safes get Safe Transaction Service queue alerts where the chain has a service. Add an alert target and run `ownerwatch run`. Read-only.

ParameterTypeDescription
addresses *arrayContract addresses (0x, 40 hex digits), all on one chain.
chainChain name or id, read through a public default RPC: ethereum (1), optimism (10), bsc (56), gnosis (100), polygon (137), base (8453), arbitrum (42161), avalanche (43114), linea (59144), scroll (534352…
labelstringProtocol name for headings and config labels.
rpc_urlAn https JSON-RPC URL that serves eth_call; overrides the default. With chain also set, the RPC's chain id must match it.