
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@warda_protocol/mcp
Advanced tools
MCP server exposing a Warda grant's whole life to agent frameworks: authority, spends, delegation, settlement, revocation and recovery. Builds unsigned transactions and explains verdicts; never holds a key, never enforces — the covenant does that on-chain
An MCP server that lets an agent framework reason about its own economic authority, and drive a grant's whole life — spend, delegate, settle, revoke, and find it again when the record goes stale — without a Kaspa integration.
Nothing to install and no Kaspa of your own. Put this in your client's config
— claude_desktop_config.json for Claude Desktop, .cursor/mcp.json for
Cursor — and restart it:
{
"mcpServers": {
"warda": { "command": "npx", "args": ["-y", "@warda_protocol/mcp"] }
}
}
Cold, with an empty npm cache, that is about seven seconds to eleven tools.
npx -y @warda_protocol/mcp # the same thing, by hand, speaking stdio
From a checkout instead:
node --experimental-strip-types src/server.ts # stdio
npm test # 34 tests, real transport
That last pair used to be the whole of this section, which was the wrong instruction for the only readers this file has: people who arrive from the MCP registry and will never clone anything.
warda_build_spend returns an unsigned transaction and the digest to sign.
This server never sees a key. Whoever holds the agent key signs the digest
wherever that key lives, splices the 65 bytes into the fixed-width slot, and
broadcasts. An MCP server that signed would be a custodian, and the point of
Warda is that nobody has to be.
A test asserts the signature slot in every built transaction is still 65 zero bytes, and that no key material appears anywhere in the response.
An agent is free to ignore every answer this server gives, build the transaction anyway, and broadcast it. The covenant will refuse it. Warda's security has never depended on the agent asking permission first — that is the entire premise, and a server that implied otherwise would contradict the protocol it serves.
Every response says so, in a field called enforcement, and a test asserts it
is there.
warda_grant_authority
computes it.VerifyError.Every verdict comes from @warda_protocol/core — the same code the covenant was
verified against, sharing the same 45 tests. This server carries no copy of
the protocol rules.
That constraint is deliberate. A second implementation of the rules would drift, and the failure mode is bad in both directions: telling an agent it may spend when the chain will refuse wastes money, and telling it that it may not when the chain would allow it silently strands funds. One source, or none.
| Tool | Answers |
|---|---|
warda_wallet | The whole wallet view: address, limits, spending power, allowlist. |
warda_grant_authority | What may this agent spend right now? |
warda_grant_address | Where does this grant live? |
warda_check_spend | Would this payment be accepted, and if not, why? |
warda_check_delegation | Is this child grant a legal narrowing? |
warda_build_spend | Bytes to sign for this payment. |
warda_build_delegation | Bytes to sign to subdivide this grant. |
warda_build_settlement | Bytes to sign to collapse a child back into its parent. |
warda_build_exit | Bytes to sign to revoke this grant, or reclaim it after expiry. |
warda_recover_grant | Find a grant again from a transaction that spent it. |
Four of these were missing for a while, and the shape of the gap is worth stating: an agent could ask what it may spend and get a spend built, and nothing else in a grant's life was reachable. A monitor that noticed misbehaviour could file a report and not act on it. A caller whose record had fallen behind had no way back to the grant at all.
warda_wallet uses the word a developer arrives with, and the moment a tool
does that the obvious next field is a balance. This server has no node.
Every figure it returns comes from the descriptor it was handed, so an on-chain
balance is deliberately absent and says so in the response rather than being
quietly omitted — a balance derived from a stale record is the failure this
protocol keeps meeting, and it is the one that looks most like success.
A test asserts the absence, so that giving this server a node later is a decision somebody makes rather than something autocomplete does.
It composes warda_grant_address and warda_grant_authority and computes
nothing new. Two calls that every framework was going to assemble slightly
differently is one implementation of the accounting too many.
A grant's address is a hash of its state, so it changes after every spend
and every delegation. Yesterday's address holds nothing today, and an empty
address is indistinguishable from a grant that was never funded. This is the
single fact that trips up every integration, so warda_grant_address exists
to answer it directly, and every builder returns where the grant lands next.
Kaspa's P2SH requires the covenant script to travel in the clear inside the
signature script of every transaction that spends it — the network cannot check
the hash otherwise — and a grant's state is spliced into that script at known
offsets. So every spend publishes the grant it spent, whether the spender meant
to or not. warda_recover_grant reads it back and walks forward to where the
grant is now.
Without that, a grant is reachable only through a record on somebody's disk: lose it and the coin is perfectly valid on chain and simply unreachable. A protocol whose argument is that limits live in consensus should not have its recoverability live in a filesystem.
A child grant that expires returns its balance to the principal — to the human. A child that is settled returns its unspent remainder to the parent agent's budget, charging the parent only what the child actually spent. That difference is the whole reason settlement exists: an agent halfway through a task cannot use money that has gone back to its owner.
warda_build_settlement returns two digests, deliberately unmerged. The
parent's half is signed by the parent's agent key; the child's by the
revocation key, because collapsing a grant is a revocation of it and a
sub-agent must not be able to end its own grant on terms it picks.
It needs one number that cannot be derived from anything on chain: the parent's
reserve root from before that child was pushed. The reserve is a hash chain,
and popping one means supplying the preimage. warda_build_delegation returns
it as parentReserveRootBefore — keep it.
warda_build_spend builds the transaction even when the advisory verdict says
no, and reports the verdict alongside. That direction is deliberate: a local
rule that is too strict must not be able to block a payment the chain would
accept. Refusing costs a fee; blocking costs a capability.
It does refuse one thing outright — a payee that is not on the allowlist. No proof places it in the tree, so no valid transaction exists; fabricating a borrowed proof would make the covenant's rejection look like a bug in the tree rather than a payee that is not on the list.
{
"mcpServers": {
"warda": {
"command": "npx",
"args": ["-y", "@warda_protocol/mcp"]
}
}
}
warda_build_spend assembles through @warda_protocol/kaspa, which is checked against
golden-spend.json — a reference transaction produced by the same Rust path
that put a spend on testnet-10. mcp/test/build.test.ts closes the last gap:
it describes that same grant the way an agent framework would, in decimal KAS
and named recipients, and requires the result to come out byte-identical.
That matters because three things sit between the two vocabularies — a decimal parser, a Merkle tree built by different code than the SDK's, and a struct laid out by field order. None of them is a rule, so none can wrongly permit a spend. All of them can produce bytes the chain refuses, silently, and only when real money is at stake.
No chain access. The server cannot find the grant's current UTXO — you pass
it in. A grant's address moves after every spend, so a stale UTXO will simply
not be found. (@warda_protocol/kaspa will find it for you: NodeClient.open
takes a node URL, a list of them, or a Kaspa Resolver, and refuses a node that
would answer wrongly.)
No broadcasting. A built spend is an ordinary transaction; submit it with whatever node client you already have.
The template is not a parameter, on purpose. It is loaded from disk
(WARDA_TEMPLATE overrides the path). A caller-supplied template is the
softest attack surface in the protocol: swap it and every address is wrong, so
the grant pays into a script nobody can ever spend.
FAQs
MCP server exposing a Warda grant's whole life to agent frameworks: authority, spends, delegation, settlement, revocation and recovery. Builds unsigned transactions and explains verdicts; never holds a key, never enforces — the covenant does that on-chain
The npm package @warda_protocol/mcp receives a total of 0 weekly downloads. As such, @warda_protocol/mcp popularity was classified as not popular.
We found that @warda_protocol/mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.