Skip to content
OFFICIAL CA0xdafaa1ed0b9f5746a0cfa2be80371cf06a986977

Documentation

MCP server

npm: @upoch/guardMCP (stdio)

Upoch Guard as an MCP server: Claude Code, Cursor, Codex and any MCP client can checkpoint an agent's work on Robinhood Chain, recover it and roll back.

What it does

upoch mcp runs a local MCP server over stdio. It gives the agent eight tools and tells it when to use them: restore at the start, checkpoint after meaningful progress and before consequential actions, record each action as planned and then as confirmed, roll back when something went wrong, and complete at the end. Keys stay on your machine; the agent never holds the owner key.

Setup

Once, in your own terminal (Node.js 24 or later):

terminal
npm install -g @upoch/guard
upoch setup                      # keys, funding, registration

upoch setup creates two keys on your machine: the owner, which registers the agent, and the executor, the agent's key, which can only submit checkpoints. It waits while you send the owner a little ETH on Robinhood Chain (0.001 ETH is plenty), then registers the agent and gives the executor gas for checkpoints. If Claude Code is installed, it offers to add the server. Otherwise, one line:

ClientOne line
Claude Codeclaude mcp add upoch -- upoch mcp
Cursor, Codex, Claude Desktop, any MCP clientan MCP server with the command: upoch mcp (stdio)
mcp.json
{
  "mcpServers": {
    "upoch": { "command": "upoch", "args": ["mcp"] }
  }
}

Tools

ToolWhat it doesOn-chain
upoch_restoreRestores the latest checkpoint after verifying it: state, note, completed and unresolved actionsread
upoch_checkpointSaves the current state as a checkpoint1 transaction
upoch_record_actionRecords an external action (planned, submitted, confirmed, failed) with its transaction hashno, goes into the next checkpoint
upoch_rollbackGoes back to an earlier checkpoint and continues from it; lists actions since then that were not undone on-chain1 transaction
upoch_completeSaves a final checkpoint and marks the run finished1 transaction
upoch_historyLists recent checkpointsread
upoch_verifyVerifies one checkpoint without restoring itread
upoch_statusShows the workflow, executor funds and today's usageread

Safety

  • Each checkpoint is one transaction from the executor key, with a daily limit (100 by default, maxCheckpointsPerDay in ~/.upoch/config.json).
  • State that looks like private keys, seed phrases or API tokens is refused before anything is stored: checkpoints are permanent.
  • Keys stay on your machine in ~/.upoch/secrets.json, unencrypted (owner-only permissions on macOS and Linux). Back it up, and keep only small amounts on these keys.
  • The Upoch contracts have not been audited.