{"at":"2026-11-23T02:50:51.137Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:50:51.511Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:50:51.611Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:50:52.006Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"evernode-mcp","version":"0.6.0"}}}}
{"at":"2026-11-23T02:50:52.006Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:50:52.006Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:50:52.011Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List dApp templates"},"description":"List the available HotPocket dApp templates (escrow, subscription, game_backend, voting, token_gated, payment_splitter, oracle_consumer, streaming_payment, multisig_treasury, blank).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_templates","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"templates":{"items":{"type":"string"},"type":"array"}},"type":"object"},"title":"List dApp templates"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate a HotPocket dApp"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"project/contract name (default: mycontract)","type":"string"},"template":{"enum":["blank","escrow","subscription","game_backend","voting","token_gated","payment_splitter","oracle_consumer","streaming_payment","multisig_treasury"],"type":"string"}},"required":["template"],"type":"object"},"name":"generate_contract","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"files":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"notes":{"items":{},"type":"array"},"template":{"type":"string"}},"type":"object"},"title":"Generate a HotPocket dApp"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Check contract determinism (heuristic)"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"source":{"description":"the contract JS/TS source to scan","type":"string"}},"required":["source"],"type":"object"},"name":"check_determinism","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"findings":{"items":{"additionalProperties":{},"properties":{"column":{"type":"number"},"fix":{"type":"string"},"line":{"type":"number"},"rule":{"type":"string"},"severity":{"type":"string"},"snippet":{"type":"string"},"why":{"type":"string"}},"type":"object"},"type":"array"},"summary":{"type":"string"}},"type":"object"},"title":"Check contract determinism"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Check HotPocket contract API usage (heuristic)"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"source":{"description":"the HotPocket contract JS/TS source to check","type":"string"}},"required":["source"],"type":"object"},"name":"check_contract_api","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"findings":{"items":{"additionalProperties":{},"properties":{"column":{"type":"number"},"fix":{"type":"string"},"line":{"type":"number"},"rule":{"type":"string"},"severity":{"type":"string"},"snippet":{"type":"string"},"why":{"type":"string"}},"type":"object"},"type":"array"},"summary":{"type":"string"}},"type":"object"},"title":"Check HotPocket contract API usage"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Recommend a HotPocket pattern"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"use_case":{"type":"string"}},"required":["use_case"],"type":"object"},"name":"recommend_pattern","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"nodes":{"type":"string"},"notes":{"items":{},"type":"array"},"pattern":{"type":"string"}},"type":"object"},"title":"Recommend a HotPocket pattern"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Xahau Hook settlement workflow"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"involves_hook":{"description":"does the dApp's Xahau account run a Hook?","type":"boolean"},"what":{"description":"what the hook should enforce, e.g. 'per-tx spend limit'","type":"string"}},"required":["involves_hook"],"type":"object"},"name":"check_hook_compat","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"involvesHook":{"type":"boolean"},"repos":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"workflow":{"items":{},"type":"array"}},"type":"object"},"title":"Xahau Hook settlement workflow"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate Xahau settlement bundle"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cluster_account":{"description":"the cluster's Xahau (multisig) account r-address","type":"string"},"dest":{"description":"optional r-address to LOCK payouts to (the DST hook param)","type":"string"},"limit_drops":{"description":"per-tx spend cap in drops (the LIM hook param)","maximum":9007199254740991,"minimum":0,"type":"integer"},"template":{"enum":["escrow","subscription","payment_splitter","streaming_payment","multisig_treasury"],"type":"string"}},"required":["template","limit_drops"],"type":"object"},"name":"generate_settlement","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"files":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"install":{"type":"string"},"limitDrops":{"type":"number"},"notes":{"items":{},"type":"array"},"prove":{"type":"string"},"template":{"type":"string"}},"type":"object"},"title":"Generate Xahau settlement bundle"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Estimate EVR lease cost"},"description":"Estimate tenant EVR lease cost = evrPerMoment × moments × nodes. Rates are host-set (no network standard); registration fees are host-side, not included.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"evr_per_moment":{"description":"host's per-Moment lease rate in EVR (from its offer)","type":"number"},"moment_minutes":{"description":"Moment window in minutes (default 60)","type":"number"},"moments":{"description":"number of Moments to lease","type":"number"},"nodes":{"description":"cluster size","type":"number"}},"required":["evr_per_moment","moments","nodes"],"type":"object"},"name":"estimate_lease_cost","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"approxDurationHours":{"type":"number"},"inputs":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"notes":{"items":{},"type":"array"},"perNodeEVR":{"type":"number"},"totalEVR":{"type":"number"}},"type":"object"},"title":"Estimate EVR lease cost"},{"annotations":{"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Recommend Evernode hosts (live)"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"country":{"description":"2-letter ISO code, e.g. DE, US, JP","type":"string"},"hosts":{"description":"optional: rank this supplied list instead of fetching live","items":{"properties":{"address":{"type":"string"},"availableInstances":{"type":"number"},"countryCode":{"type":"string"},"hostReputation":{"type":"number"},"leaseAmount":{"type":"number"},"leaseDrops":{"type":"number"},"maxInstances":{"type":"number"},"ramMb":{"type":"number"}},"required":["address"],"type":"object"},"type":"array"},"limit":{"description":"max hosts (default 10)","type":"number"},"min_ram_mb":{"type":"number"},"min_reputation":{"description":"0–255 host reputation floor","type":"number"},"min_slots":{"description":"minimum free instances (default 1)","type":"number"},"prefer":{"enum":["cheap","capacity","reputation"],"type":"string"}},"type":"object"},"name":"recommend_hosts","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"mode":{"type":"string"},"note":{"type":"string"},"prefer":{"type":"string"},"query":{"type":"string"},"ranked":{"items":{},"type":"array"},"source":{"type":"string"}},"type":"object"},"title":"Recommend Evernode hosts (live)"},{"annotations":{"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Diagnose an Evernode host (live)"},"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"address":{"description":"the host's Xahau r-address to look up live on OnLedger","type":"string"},"host":{"description":"optional: diagnose this supplied host object instead of fetching live","properties":{"active":{"description":"1 = active, 0 = inactive (as reported by the source)","type":"number"},"activeInstances":{"type":"number"},"address":{"type":"string"},"availableInstances":{"type":"number"},"countryCode":{"type":"string"},"diskMb":{"type":"number"},"flagged":{"type":"number"},"hostReputation":{"type":"number"},"lastHeartbeatLedger":{"type":"number"},"leaseAmount":{"type":"number"},"leaseDrops":{"type":"number"},"maxInstances":{"type":"number"},"ramMb":{"type":"number"},"version":{"type":"string"}},"required":["address"],"type":"object"}},"type":"object"},"name":"host_diagnostics","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"address":{"type":"string"},"found":{"type":"boolean"},"lease":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"note":{"type":"string"},"redFlags":{"items":{"type":"string"},"type":"array"},"registration":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"reputation":{"type":"number"},"slots":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"source":{"type":"string"},"specs":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}},"type":"object"},"title":"Diagnose an Evernode host (live)"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Generate deploy commands"},"description":"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).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"host":{"type":"string"},"instance_name":{"type":"string"},"mode":{"enum":["local","single","cluster","cluster-manager"],"type":"string"},"nodes":{"type":"number"}},"required":["mode"],"type":"object"},"name":"generate_deploy_commands","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"notes":{"items":{},"type":"array"},"steps":{"items":{},"type":"array"}},"type":"object"},"title":"Generate deploy commands"},{"annotations":{"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Explain an Evernode/HotPocket error"},"description":"Map a HotPocket/Evernode error message to its likely cause and fix (connection, consensus stall, no hosts, insufficient EVR, lease expiry, docker, Hook rejection).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"error_text":{"type":"string"}},"required":["error_text"],"type":"object"},"name":"explain_error","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"explanations":{"items":{},"type":"array"},"matched":{"type":"boolean"},"message":{"type":"string"}},"type":"object"},"title":"Explain an Evernode/HotPocket error"}]}}}
