Rohan Protocol MCP
v0.8.3Stateless zero-knowledge trust gateway and WebMCP shield for AI agents on Midnight.
Values you need
| Variable | What it is | |
|---|---|---|
ROHAN_AGENT_PRIVATE_KEY | optional | 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_ADDRESS | optional | Midnight Preprod Contract Address for Rohan Trust Gateway Default: 585ac0c4448257507d8ffa2a89e2aa00abd86ec9e94bdb6f553bc83e05f4dd0e |
ROHAN_RELAYER_URL | optional | Rohan Relayer API URL Default: https://api.rohanprotocol.network/api/v1/handshake |
ROHAN_NETWORK | optional | Midnight network: preprod, testnet, or mainnet Default: preprod |
ROHAN_API_KEY | optional | 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-mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- 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.
- 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