Evernode MCP

v0.6.1
io.github.Hugegreencandle/evernode-mcp Checked 3 hours ago Published 16 days ago

Evernode/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.

ParameterTypeDescription
template *string
namestringproject/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.

ParameterTypeDescription
source *stringthe 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.

ParameterTypeDescription
source *stringthe 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.

ParameterTypeDescription
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.

ParameterTypeDescription
involves_hook *booleandoes the dApp's Xahau account run a Hook?
whatstringwhat 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.

ParameterTypeDescription
limit_drops *integerper-tx spend cap in drops (the LIM hook param)
template *string
cluster_accountstringthe cluster's Xahau (multisig) account r-address
deststringoptional 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.

ParameterTypeDescription
evr_per_moment *numberhost's per-Moment lease rate in EVR (from its offer)
moments *numbernumber of Moments to lease
nodes *numbercluster size
moment_minutesnumberMoment 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.

ParameterTypeDescription
countrystring2-letter ISO code, e.g. DE, US, JP
hostsarrayoptional: rank this supplied list instead of fetching live
limitnumbermax hosts (default 10)
min_ram_mbnumber
min_reputationnumber0–255 host reputation floor
min_slotsnumberminimum free instances (default 1)
preferstring

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.

ParameterTypeDescription
addressstringthe host's Xahau r-address to look up live on OnLedger
hostobjectoptional: 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).

ParameterTypeDescription
mode *string
hoststring
instance_namestring
nodesnumber

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).

ParameterTypeDescription
error_text *string