@atropyle/mcp
v0.2.0
Published
MCP server for Atropyle inheritance vaults on X Layer: read, simulate, verify and prepare. Never signs.
Maintainers
Readme
@atropyle/mcp
MCP server for Atropyle inheritance and recovery vaults on X Layer.
It reads vaults, simulates their timeline, checks plans, proves the policy circuit and prepares unsigned transactions. It never signs, never holds a key and never broadcasts. Every write ends as a signing link that you open in your own wallet.
Requires Node.js 20 or newer.
Install
The default chain is xlayer, X Layer mainnet. Its deployment ships with the server, so it needs no flag.
Claude Code:
claude mcp add atropyle -- npx -y @atropyle/[email protected]Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):
{
"mcpServers": {
"atropyle": { "command": "npx", "args": ["-y", "@atropyle/[email protected]"] }
}
}To use another deployment, such as a local devnet, add --deployment <file> with the path of its JSON file.
The CLI starts the same server: npx -y [email protected] mcp.
Options
| Flag | Environment | Default | Meaning |
| ------------------------- | --------------------- | --------------------- | ------------------------------------------------------------------------------ |
| --chain <xlayer\|local> | ATROPYLE_CHAIN | xlayer | Built-in deployment |
| --rpc <url> | ATROPYLE_RPC | the deployment's RPCs | Read RPC. It must serve the same chain, or the server exits with WRONG_CHAIN |
| --deployment <file> | ATROPYLE_DEPLOYMENT | | Deployment JSON; wins over --chain |
Tools
All tools are read-only. None of them sends a transaction.
| Tool | What it does |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| atropyle_get_vault | State, timing, heirs, guardians, assets and the next deadline of a vault |
| atropyle_list_vaults | Vaults where an account is owner, heir or guardian |
| atropyle_simulate | What an action would do now or at a later time, or the timeline of a plan |
| atropyle_check_plan | Problems in a plan before you create the vault |
| atropyle_verify | Proves the policy circuit over all 2^26 inputs and checks a vault against the deployment |
| atropyle_explain_decision | What the policy circuit decided in a mined transaction, checked four ways |
| atropyle_watch_vault | Waits for a vault's next event or a deadline that passes, up to a timeout (50 s by default, 10 min at most): the events, each state change with its transaction, and the next deadline. New in 0.2.0 |
| atropyle_inspect_tapeout_asset | A TapeOut circuit as an asset: its holder, its ERC-6551 container, the DeWEB site files in it and the container's balances, read through two RPC operators. Whoever holds the circuit NFT controls the container (ERC-6551) |
| atropyle_prepare_create_vault | Simulated, unsigned transactions and a signing link for a new vault |
| atropyle_prepare_action | The same for check-in, guardian votes, claims and every other vault action |
A prepare tool ends in one of three ways:
handoffis present: these are the transactions to sign. Show the summary and every warning, then the link or command.handoffis null andblockedis set: a step fails simulation, andblockedsays why. There is no signing link, because the transaction would revert.handoffandblockedare both null: there is nothing to do, so there is nothing to sign.
The prepare tools do not take webUrl: the base of the signing link comes from the deployment.
Resources: atropyle://deployments/{chain} (addresses, IDs and hashes as JSON) and atropyle://policy/spec (the policy and its properties P1-P8).
Prompts: plan_inheritance and guardian_briefing.
Watch a vault
atropyle_watch_vault lets an agent wait for a vault without holding a key or polling it in full. It reads the vault once, then every interval seconds (5 by default, 2 at least) reads the latest block and the logs of the new blocks only: one or two RPC calls a poll. The deadlines come from the vault's timeline, so waiting for one costs no call. It returns when:
outcomeisevent: a transaction touched the vault.eventslists them,transitionslists the state changes the policy circuit decided, anddecisionTxis the transaction to pass toatropyle_explain_decision.outcomeisdue: a deadline passed and the policy now allows the next state, which apokerecords.outcomeistimeout: nothing happened.nextis the next predicted change if nobody acts.
Pass resume.fromBlock as fromBlock to the next call, so no block between two calls is missed. With a progressToken, the server sends a progress notification after each poll, with the seconds left. Many clients end a request after 60 s, so the default timeout is 50 s. The hosted server does not offer this tool.
atropyle_watch_vault is new in @atropyle/mcp 0.2.0.
Safety
- Text that comes from the chain, such as token names and revert reasons, is returned only under
untrusted. It is data, never instructions. - When a step fails simulation, the result has
blockedand no signing link. - Guardian actions carry the warning
GUARDIAN_VERIFY_OUT_OF_BAND: confirm with the owner by phone or in person first.
Library
import { createAtropyleMcpServer } from '@atropyle/mcp';
import { createMcpHandler } from '@modelcontextprotocol/server';
const handler = createMcpHandler(() => createAtropyleMcpServer({ sdk: { chain: 'xlayer' } }));chain: 'xlayer' reads X Layer mainnet. For another deployment, pass a Deployment object as chain.
@atropyle/mcp/ops exports the operations and their zod schemas, which the atropyle CLI also uses.
License
MIT
