Rohan Protocol MCP

v0.8.3
io.github.rohan-protocol/mcp Checked 1 hour ago Published 7 days ago

Stateless zero-knowledge trust gateway and WebMCP shield for AI agents on Midnight.

Values you need

VariableWhat it is
ROHAN_AGENT_PRIVATE_KEYoptional Optional 32-byte Ed25519 seed as 64 hex characters to override the auto-provisioned local identity. Keep it in a secret store; never provide it as a tool argument.
ROHAN_CONTRACT_ADDRESSoptional Midnight Preprod Contract Address for Rohan Trust Gateway Default: 585ac0c4448257507d8ffa2a89e2aa00abd86ec9e94bdb6f553bc83e05f4dd0e
ROHAN_RELAYER_URLoptional Rohan Relayer API URL Default: https://api.rohanprotocol.network/api/v1/handshake
ROHAN_NETWORKoptional Midnight network: preprod, testnet, or mainnet Default: preprod
ROHAN_API_KEYoptional Optional relayer API key; keep it in a secret store

npm (npx) verified

Requires Node.js 18+

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

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: rohan_execute_handshake, rohan_get_ledger_state, rohan_get_transaction_history, rohan_verify_commitment, rohan_get_agent_status.
  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