🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@verusidx/identity-mcp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verusidx/identity-mcp

MCP server for VerusID identities — register, update, revoke, recover, query, set timelock

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

@verusidx/identity-mcp

MCP server for creating, managing, and querying VerusIDs. Covers the full identity lifecycle — registration, updates, revocation, recovery, timelocks — plus VDXF key resolution. For data signing and verification, see @verusidx/data-mcp.

Setup

Prerequisite: @verusidx/chain-mcp must be configured and refresh_chains called at least once so the chain registry exists.

Add to your MCP client config (e.g., Claude Code claude_desktop_config.json):

{
  "mcpServers": {
    "verusidx-identity": {
      "command": "npx",
      "args": ["-y", "@verusidx/identity-mcp"],
      "env": {}
    }
  }
}

Alternative: local install. If you prefer a pinned version or offline use, install into a project directory with npm install @verusidx/identity-mcp (or pnpm add / yarn add) and point your config at the local path instead of using npx.

Environment Variables

VariableDefaultDescription
VERUSIDX_READ_ONLYfalseSet to true to disable write tools. Read tools remain available.
VERUSIDX_AUDIT_LOGtrueSet to false to disable audit logging of write operations.
VERUSIDX_AUDIT_DIROS defaultCustom directory for audit log files.

Read-Only Mode

Set VERUSIDX_READ_ONLY=true to disable write tools. In read-only mode, 5 read tools remain available: getidentity, getidentitycontent, getidentityhistory, getvdxfid, listidentities.

Write tools (registernamecommitment, registeridentity, updateidentity, revokeidentity, recoveridentity, setidentitytimelock) are not registered and won't appear in the tool list.

You can set read-only mode independently per MCP server. For example, keep identity-mcp read-write while running send-mcp in read-only mode.

Tools

Always available (including read-only mode)

ToolDescription
getidentityLook up a VerusID by name or i-address — current state, authorities, content, wallet relationship
getidentitycontentGet identity content/data with optional VDXF key filter and height range (cumulative)
getidentityhistoryFull revision history — one snapshot per update transaction
getvdxfidResolve a VDXF URI to its on-chain i-address, with optional key/hash/index binding
listidentitiesList wallet's VerusIDs — spendable, signable, and/or watch-only

Write tools (disabled in read-only mode)

ToolDescription
registernamecommitmentStep 1 of ID registration — create a name commitment transaction
registeridentityStep 2 of ID registration — register using a confirmed commitment
updateidentityUpdate identity fields (addresses, content, authorities)
revokeidentityRevoke an identity (safety mechanism for key compromise)
recoveridentityRecover a revoked/compromised identity with new keys
setidentitytimelockSet or modify a spending timelock on an identity

Identity Registration (Two-Step)

Registering a new VerusID is a two-step process:

  • registernamecommitment — creates a commitment that reserves the name without revealing it (prevents front-running). The commitment data is automatically saved to ~/.verusidx/commitments/<chain>/<name>.json.

  • Wait 1 block for the commitment to confirm.

  • registeridentity — registers the identity using the confirmed commitment. On success, the saved commitment file is cleaned up.

The commitment file persists across conversations. If a session ends between steps 1 and 2, the next session can pick up where it left off.

Timelock Safety

The updateidentity, registeridentity, and recoveridentity tools warn that timelock must only be set to 0 in the identity definition. Setting timelock to any other value can lock the identity — potentially making it unspendable for an extremely long time or permanently. Use setidentitytimelock instead, which provides safe unlockatblock and setunlockdelay controls.

Audit Logging

All write operations are logged to date-stamped JSONL files in the audit directory. Each entry records the tool name, chain, parameters, result, and success status. Logs are append-only with 0600 permissions.

Requirements

  • Node.js >= 18.0.0
  • @verusidx/chain-mcp installed and refresh_chains called (chain registry must exist)
  • At least one Verus daemon running for RPC tools

Keywords

verus

FAQs

Package last updated on 10 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts