crypto
Identity primitives: UUIDs, hashes, secure random bytes. Pure compute — auto-registered by the installer.
Usage
bash
native-mcp cryptoNo flags.
Tools
uuid
| Field | Type | Required | Description |
|---|---|---|---|
version | enum(v4, v7) | no | Default v4. v7 is timestamp-ordered (RFC 9562). |
hash
| Field | Type | Required | Description |
|---|---|---|---|
algorithm | enum(md5, sha1, sha256, sha512) | yes | |
input | string | yes | UTF-8 string. |
Returns the digest as lowercase hex.
random_bytes
| Field | Type | Required | Description |
|---|---|---|---|
length | integer | yes | Number of bytes (1..1024). |
Returns the bytes as lowercase hex, sourced from crypto/rand.
Register in Claude Code
bash
claude mcp add native-crypto native-mcp crypto