Evernode MCP
v0.6.1Evernode/HotPocket dApp helper: templates, non-determinism lint, lease math, live host lookup.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_templates List dApp templates
List the available HotPocket dApp templates (escrow, subscription, game_backend, voting, token_gated, payment_splitter, oracle_consumer, streaming_payment, multisig_treasury, blank).
generate_contract Generate a HotPocket dApp
Generate a HotPocket dApp file set (contract + state helper + hp.cfg.override + package.json + client) for a template. Templates avoid the known non-determinism sources (no wall-clock, randomness, or network in the contract path; time = ctx.lclSeqNo) and pass check_determinism with no HIGH findings — lint-clean, not proven deterministic.
| Parameter | Type | Description |
|---|---|---|
template * | string | |
name | string | project/contract name (default: mycontract) |
check_determinism Check contract determinism
Heuristic linter for HotPocket contract source: flags known non-deterministic patterns that can break cluster consensus (wall-clock, randomness, network I/O, env/host reads, timers/races, filesystem outside the state file, unordered iteration/serialization, locale/ICU, floating-point literals). HIGH findings are likely consensus breakers. A clean result means none of these patterns were found — it does not prove the contract is deterministic.
| Parameter | Type | Description |
|---|---|---|
source * | string | the contract JS/TS source to scan |
check_contract_api Check HotPocket contract API usage
Heuristic static check that a HotPocket Node.js contract uses the contract API correctly: an hpc.init(...) entry point, reading ctx (users / lclSeqNo), persisting ONLY through the consensused state mechanism (no arbitrary fs writes to non-state paths), handling ctx.users I/O, using ctx.lclSeqNo for time (not Date.now), and awaiting async consensus ops. Severity-rated with fix + why. Sibling to check_determinism — guidance, NOT a proof.
| Parameter | Type | Description |
|---|---|---|
source * | string | the HotPocket contract JS/TS source to check |
recommend_pattern Recommend a HotPocket pattern
Given a plain-English use-case, recommend the HotPocket pattern (node count, state model, oracle/NPL usage, Xahau settlement) with the determinism caveats that matter.
| Parameter | Type | Description |
|---|---|---|
use_case * | string |
check_hook_compat Xahau Hook settlement workflow
Returns the recommended workflow (no analysis is performed) for a dApp that settles value on Xahau through a Hook-guarded account: build/lint the Hook with xahc, simulate it with xahau-mcp, prove the spend invariant with xahc-prover, then install via an unsigned SetHook.
| Parameter | Type | Description |
|---|---|---|
involves_hook * | boolean | does the dApp's Xahau account run a Hook? |
what | string | what the hook should enforce, e.g. 'per-tx spend limit' |
generate_settlement Generate Xahau settlement bundle
For a value-moving dApp, generate the cluster-side Xahau payout code (a starting point; multisig aggregation is left to you) + an unsigned `xahc install-tx` command for the agent_guardrail Hook (per-tx LIM spend cap + optional DST lock) on the cluster account + the `xahc prove` command to check it. Emits commands only — no safety verdict. While that Hook is installed it makes the ledger reject outgoing Payments over LIM or to a non-allowed DST; it fires on Payment only, so it does not stop the account's signers from removing it with SetHook or moving value with other transaction types.
| Parameter | Type | Description |
|---|---|---|
limit_drops * | integer | per-tx spend cap in drops (the LIM hook param) |
template * | string | |
cluster_account | string | the cluster's Xahau (multisig) account r-address |
dest | string | optional r-address to LOCK payouts to (the DST hook param) |
estimate_lease_cost Estimate EVR lease cost
Estimate tenant EVR lease cost = evrPerMoment × moments × nodes. Rates are host-set (no network standard); registration fees are host-side, not included.
| Parameter | Type | Description |
|---|---|---|
evr_per_moment * | number | host's per-Moment lease rate in EVR (from its offer) |
moments * | number | number of Moments to lease |
nodes * | number | cluster size |
moment_minutes | number | Moment window in minutes (default 60) |
recommend_hosts Recommend Evernode hosts (live)
Fetch + rank live Evernode hosts from the public OnLedger API (api.onledger.net, which indexes the Evernode registry on Xahau) by cheap | capacity | reputation; the filters (min_reputation, min_slots, country, min_ram_mb, limit) are passed to that live query. Or pass your own `hosts` list to rank it (filters are not applied to a supplied list; top 10 returned). Real data only — never invents hosts.
| Parameter | Type | Description |
|---|---|---|
country | string | 2-letter ISO code, e.g. DE, US, JP |
hosts | array | optional: rank this supplied list instead of fetching live |
limit | number | max hosts (default 10) |
min_ram_mb | number | |
min_reputation | number | 0–255 host reputation floor |
min_slots | number | minimum free instances (default 1) |
prefer | string |
host_diagnostics Diagnose an Evernode host (live)
Health view of a single Evernode host by r-address: registration status, reputation, active/total/available instance slots, lease rate (EVR per Moment and/or drops, if the source has them), RAM/disk, and red-flags (flagged in the registry, marked inactive, reputation < 50, zero reputation, full capacity). Fetches live from the public OnLedger API (api.onledger.net) — or pass a `host` object to diagnose it. REAL data only: unknown fields are OMITTED (never invented); honest found:false + note on not-found / fetch failure.
| Parameter | Type | Description |
|---|---|---|
address | string | the host's Xahau r-address to look up live on OnLedger |
host | object | optional: diagnose this supplied host object instead of fetching live |
generate_deploy_commands Generate deploy commands
Generate the command sequence for: local (hpdevkit dev cluster), single (evdevkit acquire one host), cluster (evdevkit N-node cluster), or cluster-manager (connect to Offledger Cluster Manager).
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
host | string | |
instance_name | string | |
nodes | number |
explain_error Explain an Evernode/HotPocket error
Map a HotPocket/Evernode error message to its likely cause and fix (connection, consensus stall, no hosts, insufficient EVR, lease expiry, docker, Hook rejection).
| Parameter | Type | Description |
|---|---|---|
error_text * | string |