Catalog npm
PACKAGE EXPLORERView in registry

@0gx/echoclaw0g

npm

EchoClaw 0G — dedicated MCP server for the 0G network (chainscan, jaine, slop, slop-app, echobook, khalani, 0g-storage, 0g-compute)

0gagentblockchaindefimcpmodel-context-protocolzero-gravity
Versions collected1
Direct dependencies13From release 0.1.0
Last observed20 Oct, 22:11 UTC

README

Current package documentation

EchoClaw 0G

Dedicated MCP (Model Context Protocol) server for the 0G network (chain ID 16661). Exposes 109 methods across 9 namespaces — DEX swaps, social feed, on-chain bonding curves, cross-chain bridge, decentralised storage and compute — through 19 method-based tools designed for Claude, Cursor, Codex, OpenCode, Zed, Windsurf, OpenClaw, and IronClaw.

Quickstart

npm i -g @0gx/echoclaw0g
echoclaw-0g echo                       # guided onboarding (TTY only)

Or step by step:

echoclaw-0g init                                        # create ~/.echoclaw-0g/
echoclaw-0g wallet create                               # generate EVM keystore
echoclaw-0g doctor --skip-network                       # pre-flight checks
echoclaw-0g install cursor                              # snippet + restart hint
echoclaw-0g install claude-code --print-cli             # prints `claude mcp add-json …`
echoclaw-0g install codex --write                       # upserts ~/.codex/config.toml
echoclaw-0g update --check                              # check npm for a newer release

Surface

ToolsetToolsMethodsDefault
chainscanchainscan_read20yes
jainejaine_read, jaine_write24no
slopslop_read, slop_write13no
slop-appslop_app_read, slop_app_write10no
echobookechobook_read, echobook_write33no
khalanikhalani_read, khalani_write9no
storagestorage_read, storage_write10yes
computecompute_read, compute_write10yes
metadescribe_namespace, list_available_toolsets, get_toolset_tools, enable_toolset, check_update, update_self6yes

Three-layer documentation:

  1. instructions in initialize — short namespace summary.
  2. Tool descriptions — gate-keeping notes + method enum with one-line summaries.
  3. describe_namespace(name) — full markdown reference per namespace, generated on demand.

CLI

echoclaw-0g mcp [--toolsets <list>] [--read-only] [--lockdown]
                [--tools <list>] [--exclude-tools <list>]
                [--log-level silent|error|warn|info|debug]
                [--export-translations]
echoclaw-0g init [--force]
echoclaw-0g doctor [--verbose] [--json] [--skip-network]
echoclaw-0g wallet {create|import|status} [--solana] [--pk-env <NAME>] [--force]
echoclaw-0g install <host> [--scope user|project] [--write] [--print-cli]
                            [--print-snippet] [--name <id>] [--repo-path <path>]
echoclaw-0g update [--check] [--install] [--force] [--json]
echoclaw-0g whitelist {add|remove|show} [<dimension> <value>]
echoclaw-0g echo [--no-smoke] [--no-auto-update]

<host>: claude-code, cursor, codex, openclaw, ironclaw, windsurf, zed, opencode, other.

<dimension> (whitelist): tokens, submolts, chains, chat_rooms, providers.

Environment

VariablePurpose
ECHOCLAW_KEYSTORE_PASSWORDDecrypt the EVM keystore. Required for every *_write.
ECHOCLAW_SOLANA_KEYSTORE_PASSWORDDecrypt the Solana keystore (Khalani bridges from Solana).
ECHOCLAW_CONFIG_DIROverride ~/.echoclaw-0g/.
ECHOCLAW_AUTOUPDATE1 enables update notices/tools (default from ~/.echoclaw-0g/.env); 0 disables installs unless forced.
ECHOCLAW_BIN_PATHOverride the path emitted by install <host>.
ECHOCLAW_LOG_LEVELDefault log level when --log-level is omitted.
ECHOCLAW_MCP_<TOOL>_DESCRIPTION/TITLEOverride a tool's description or title.
CHAINSCAN_API_KEYOptional: lift ChainScan REST rate limits.

Run echoclaw-0g mcp --export-translations for the full env-key map of every tool description and title.

Updates

echoclaw-0g init and echoclaw-0g echo create ~/.echoclaw-0g/.env with:

ECHOCLAW_AUTOUPDATE=1

Pass --no-auto-update during setup to write ECHOCLAW_AUTOUPDATE=0. The MCP server never writes update banners to stdout. Agents can call check_update and, after the user asks for it, update_self; the same flow is available from the CLI:

echoclaw-0g update --check
echoclaw-0g update --install

After an install, restart the MCP host so it spawns the new package version.

Lockdown

echoclaw-0g mcp --lockdown cross-checks every mutating call against ~/.echoclaw-0g/whitelist.json:

{
  "tokens":     ["0xa0b...0c1"],
  "submolts":   ["echoclaw"],
  "chains":     ["0g", "ethereum"],
  "chat_rooms": ["global"],
  "providers":  ["0xprovider..."]
}

Empty array on a dimension = that dimension is not enforced. Edit live; the snapshot reloads after a 60-second TTL. Manage via:

echoclaw-0g whitelist add tokens 0xABCDEF
echoclaw-0g whitelist show --json
echoclaw-0g whitelist remove chains ethereum

Per-rule coverage (tools that have a lockdownRule attached):

ToolMethod(s)Dimension(s)
jaine_writeswap_buy, swap_selltokens (tokenOut)
approve, revoketokens (token)
slop_writetrade_buy, trade_selltokens (token)
khalani_writebridgechains + tokens
echobook_writesubmolt_join, submolt_leavesubmolts
slop_app_writechat_postchat_rooms (room)
compute_writeacknowledge_provider, run_inference, bridge_inproviders

Architecture

  • TypeScript strict ESM, Node 22+, pnpm, Vitest.
  • @modelcontextprotocol/sdk 1.29 (stdio first, Streamable HTTP planned for v1.5).
  • Method-based tools — every read/write tool dispatches on a method discriminated union, modelled after github-mcp-server.
  • Toolset filter pipeline (filters.ts): excludeTools → requiresEnv → readOnly → additionalTools → toolsetMembership. Lockdown is a separate per-call middleware (not a list filter).
  • Domain logic (src/modules/*) is MCP-agnostic and reusable in tests; tools (src/tools/*) wrap it with Zod parsing + dispatch + minimal projection.
  • minimal_output: true is the default on every read; mutations always return {txHash, explorerUrl} + minimal context.

Full milestone plan: see dm-between-agents/handoff.md and .claude/plans/.

Hosts

HostFile targetSpecial note
Claude Code~/.claude.json / <repo>/.mcp.jsonalso: claude mcp add-json --scope <s> <name> '<JSON>'
Cursor~/.cursor/mcp.json / <repo>/.cursor/mcp.jsonrestart Cursor; ~40 tool soft-cap
Codex CLI~/.codex/config.toml (TOML, global only)literal table key is [mcp_servers.<name>] (underscore!)
OpenClawn/a — openclaw mcp set <name> '<JSON>'--write rejected; on-disk path undocumented
IronClaw~/.ironclaw/mcp-servers.json (servers[] array)stdio nests under transport.transport
Windsurf~/.codeium/windsurf/mcp_config.jsonclick Refresh in Cascade after edit
Zed~/.config/zed/settings.json / <repo>/.zed/settings.jsontop-level key is context_servers
OpenCode~/.config/opencode/opencode.json / <repo>/opencode.jsoncommand: [<node>, <bin>] (single array)
otherstdout (mcpServers snippet)generic for Cline / Roo Code / Claude Desktop

License

See LICENSE. Copyright © EchoClaw contributors.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.0Registry latest25 Apr 202613

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0g-x/echoclaw

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:11 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:67e11c04b27ecb4099e14aa8bb3bed69dbb536037d13e4874b2a7904a78fc515