lotero

v0.1.0
io.github.csacanam/lotero Checked 2 days ago Published 4 months ago

Provably fair on-chain slot machine for AI agents: x402 spins on Base, Chainlink VRF results.

Values you need

VariableWhat it is
LOTERO_WALLET_PRIVATE_KEYoptional secret Dedicated wallet with USDC on Base — pays spins/claims via x402. Required only for spin/claim.
LOTERO_PLAYER_ADDRESSoptional Default player — the human's wallet, where winnings accrue and get claimed.
LOTERO_MAX_SPINS_PER_SESSIONoptional Enforced responsible-gambling spin limit per session (default 10).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add lotero -- npx -y lotero-mcp@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "lotero": {
      "args": [
        "-y",
        "lotero-mcp@0.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "lotero": {
      "args": [
        "-y",
        "lotero-mcp@0.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "lotero": {
      "args": [
        "-y",
        "lotero-mcp@0.1.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.lotero]
command = "npx"
args = ["-y", "lotero-mcp@0.1.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: spin, get_round, get_balances, claim, get_contract_health.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json