# Xahau MCP

Executes Xahau WebAssembly smart contracts in an offline virtual machine and audits Hook bytecode without running a blockchain node.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6
- Author: Hugegreencandle
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Hugegreencandle/xahau-mcp
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/xahau-mcp

## What it does

This MCP server equips AI assistants with tools for interacting with the Xahau ledger. At its center sits a standalone WebAssembly engine that runs compiled Hook bytecode locally, eliminating any need for a full `xahaud` node. It inspects contract binaries with a dedicated static rule set, flagging unhandled loops and missing exit paths before deployment.

Developers can preview how ledger updates unfold. The `simulate_transaction` tool tests unsigned payloads against live state, while `what_if` replays historical operations under adjusted parameters. It also decodes the `HookOn` bitmask and computes network reward balances. Operators can run diagnostics on Evernode infrastructure.

Network access is strictly read-only. The server contains neither signing logic nor submission endpoints. All transaction builders return raw unsigned payloads, so private keys remain strictly offline.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `XAHAU_RPC_URLS`, `XAHAU_TEST_RPC_URLS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env XAHAU_RPC_URLS=<XAHAU_RPC_URLS> --env XAHAU_TEST_RPC_URLS=<XAHAU_TEST_RPC_URLS> --transport stdio xahau-mcp -- npx -y xahau-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add xahau-mcp --env XAHAU_RPC_URLS=<XAHAU_RPC_URLS> --env XAHAU_TEST_RPC_URLS=<XAHAU_TEST_RPC_URLS> -- npx -y xahau-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "xahau-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "xahau-mcp"
            ],
            "env": {
                "XAHAU_RPC_URLS": "<XAHAU_RPC_URLS>",
                "XAHAU_TEST_RPC_URLS": "<XAHAU_TEST_RPC_URLS>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "xahau-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "xahau-mcp"
            ],
            "env": {
                "XAHAU_RPC_URLS": "<XAHAU_RPC_URLS>",
                "XAHAU_TEST_RPC_URLS": "<XAHAU_TEST_RPC_URLS>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e XAHAU_RPC_URLS=<XAHAU_RPC_URLS> -e XAHAU_TEST_RPC_URLS=<XAHAU_TEST_RPC_URLS> xahau-mcp npx -y xahau-mcp
```
Replace <…> with your own values

## When to use it
- Execute compiled WebAssembly Hooks locally without running a node
- Detect vulnerabilities and missing exits via static binary analysis
- Simulate transaction execution against active ledger state
- Inspect Evernode host health and accrued network reward balances

## Example prompts
- Audit this `hook.wasm` file with the static engine and highlight flaws.
- Simulate an unsigned transaction for address `r...` to check Hook execution.
- Check reward eligibility and claim timing for account `r...`.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12110
- [Robin: AI-Powered Dark Web OSINT](https://affpapa.org/en/nevibecode/mcp/robin-ai-powered-dark-web-osint.md) — MCP server · ★ 7718
- [jshookmcp](https://affpapa.org/en/nevibecode/mcp/jshookmcp.md) — MCP server · ★ 2066
- [OpenOSINT](https://affpapa.org/en/nevibecode/mcp/openosint.md) — MCP server · ★ 1816

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
