Skip to main content

@helixid/mcp-server

A standalone MCP server that exposes HelixID operator workflows as tools: creating an issuer DID and wallet, creating a status list, issuing a credential, revoking one, and inspecting a wallet. It is the MCP counterpart of @helixid/cli: the same operations and the same wallet and signing code, reached through MCP tool calls instead of a shell.

npm install -g @helixid/mcp-server

Binary: helix-mcp-server. This page describes @helixid/mcp-server 0.2.2.

Not the middleware

@helixid/mcp-middleware is a library that your MCP server imports to authenticate callers. This package is an MCP server. Together they replace the earlier @helixid/mcp package.

Running it​

The server speaks MCP over stdio. Start it directly:

export HELIX_WALLET_PASSPHRASE='your-passphrase'
helix-mcp-server

Or let an MCP client launch it, for example from an .mcp.json or a desktop client's server configuration:

{
"mcpServers": {
"helix": {
"command": "npx",
"args": ["-y", "@helixid/mcp-server"],
"env": { "HELIX_WALLET_PASSPHRASE": "your-passphrase" }
}
}
}

Wallet, status list and credential paths are read and written on the machine that runs the server. Run it where those files should live, as you would the CLI.

Environment variables​

VariableNeeded byPurpose
HELIX_WALLET_PASSPHRASEEvery toolWallet encryption passphrase. It is read from the server's environment and is never a tool argument.
HEDERA_OPERATOR_ID, HEDERA_OPERATOR_KEYdid_create with method: "hedera"The Hedera account that pays for anchoring the DID. This method also needs @helixid/did-hedera, an optional dependency of this package.

Tools​

ToolCLI equivalentWhat it does
did_createhelix did createCreate a DID (did:web or did:hedera) and its encrypted wallet file. did:web also creates the initial status list unless statusList is false.
issuer_inithelix issuer initLoad an issuer wallet and report its DID, public key and verification method.
status_list_createhelix status-list createCreate a signed BitstringStatusList credential file.
vc_issuehelix vc issueSign a HelixAgentCredential for an agent DID and assign it an index in the status list file.
revokehelix revokeRevoke a credential by flipping its bit in the status list file.
wallet_inspecthelix wallet inspectReport a wallet's DID, public key and stored credentials. Never returns the private key.

A successful call returns one text content item holding the result as JSON. A failed call returns the error message with isError: true; the server keeps running and answers the next call.

did_create​

ArgumentRequiredMeaning
methodYesweb or hedera.
walletYesPath to write the new encrypted wallet file. The call fails if the file already exists.
domainFor webThe domain of the did:web DID.
networkNotestnet (default), previewnet or mainnet. hedera only.
statusListNodid:web only. Set false to skip creating the initial status list.
statusListLengthNoStatus list capacity in bits. Default 131,072.
statusListOutputNoStatus list file path. Default: status-list.json next to the wallet file.
statusListBaseUrlNoPublic URL the status list will be served at. Default: https://<domain>/.well-known/helix-status-list.json.

For web, the result holds did, walletPath, didDocument, didDocumentUrl (https://<domain>/.well-known/did.json, where you host the document) and, unless skipped, statusList (output, baseUrl, length). For hedera, it holds did, walletPath and hedera (transactionId, topicId).

issuer_init​

ArgumentRequiredMeaning
walletYesPath to the issuer wallet file.

Returns did, publicKeyHex and verificationMethod.

status_list_create​

ArgumentRequiredMeaning
lengthYesStatus list capacity in bits.
outputYesOutput file path.
baseUrlYesPublic URL the status list will be served at.
walletYesPath to the issuer wallet file.

Returns output, baseUrl and length.

vc_issue​

ArgumentRequiredMeaning
agentDidYesThe agent's DID.
scopesYesComma-separated privilege scopes. At least one.
expiresYesValidity as a number with an s, m, h or d suffix, for example 90d or 24h.
statusListYesPath to the status list JSON file. Updated in place.
baseUrlYesThe public status list URL.
walletYesPath to the issuer wallet file.
outputNoPath to also write the credential to.
maxDelegationDepthNoDefault 1.

Returns vc (the signed credential), vcId, scopes, expiresAt, statusIndex and, when output was given, outputPath.

revoke​

ArgumentRequiredMeaning
vcIdYesThe credential to revoke.
statusListYesPath to the status list JSON file. Updated in place.
walletYesPath to the issuer wallet file.

Returns vcId, index and previousBit. Publish the updated status list file afterwards; verifiers see the revocation the next time they fetch it.

wallet_inspect​

ArgumentRequiredMeaning
walletYesPath to the wallet file.

Returns did, publicKey and credentials (id, scopes, expires for each).

What it does not do​

These tools work on local files with an issuer wallet's own key. They do not call a HelixID API, so they do not onboard agents, sign presentations, delegate, or issue consent grants. Those are API calls: see HelixClient and, for onboarding from a shell, helix agent onboard. There is no MCP tool for agent onboarding.

An MCP client that can call these tools can sign as your issuer

Whoever drives this server can issue and revoke credentials with the wallet it is pointed at. Run it only for MCP clients you would hand the CLI and the passphrase to, and keep the wallet file where the Security Model says a trust anchor belongs.