mcp-server

v0.1.1
@nanorix/mcp-server Checked 2 days ago Published 1 month ago

Nanorix Model Context Protocol (MCP) server — drive sealed ephemeral capsule lifecycle as agent tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

nanorix_create_capsule

Open a sealed, ephemeral Nanorix capsule to handle regulated or sensitive data (PHI, PII, financial, credentials). Each command in the capsule runs in its own Linux namespaces and root filesystem; the capsule's data directories are memory-backed (tmpfs) and are overwritten and unmounted when it is destroyed, and it then emits an AuditProof — cryptographic evidence of what ran and that the data was destroyed. Each command runs in its own user namespace. Where the API runs as root, which includes the hosted service and the documented Kubernetes profiles, each capsule leases its own non-root us…

ParameterTypeDescription
capsulefile *stringID of the Capsulefile to run (the sealed runtime + entrypoint + files the capsule boots from). Use nanorix_list_capsulefiles to discover available IDs.
data_classificationstringCustomer-declared sensitivity of the data the capsule will handle. Nanorix never inspects or infers this — you declare it. Stored in the AuditProof's capsule context.
max_lifetime_secondsintegerOptional hard ceiling on capsule lifetime before automatic reclamation.
metadataobjectOptional customer-defined string key/value context bound into the AuditProof (max 16 keys, 64-char keys, 256-char values, 4 KB total). Keys beginning with 'nanorix:' are reserved and rejected.

nanorix_exec

Execute a command inside a running sealed capsule and return its stdout, stderr, and exit code. Use this to run the regulated workload after creating the capsule and uploading any input files. The command runs in its own Linux namespaces and its own root filesystem, which holds read-only system directories, six device nodes, a fresh /proc and the capsule's memory-backed workspace and does not mount the host's other paths or other capsules' directories, apart from a read-only directory holding the socket of the capsule's own sealed HTTP daemon when an egress profile is bound. If isolation setup…

ParameterTypeDescription
capsule_id *stringID of a running capsule (from nanorix_create_capsule).
commandstringCommand to execute inside the capsule. If omitted, the Capsulefile's entrypoint runs.
input_datastringOptional data written to /data/input/uploads/data inside the capsule before the command runs (max 512 KB, counted as UTF-8 bytes). It is not sent to stdin.
timeoutintegerOptional execution timeout in seconds.

nanorix_upload

Upload an input file into a running capsule's input directory before executing the workload. Provide text content directly, or base64 for binary data. Returns the file reference and its SHA-512 content hash (the hash is bound into the AuditProof).

ParameterTypeDescription
capsule_id *stringID of a running capsule (from nanorix_create_capsule).
content *stringFile contents. Plain text by default, or base64 when encoding='base64'.
filename *stringName the file will have inside the capsule's input directory.
encodingstringHow `content` is encoded. Use 'base64' for binary files; defaults to 'utf8'.

nanorix_download

Download an output file produced by a capsule's workload. Do this BEFORE destroying the capsule — once destroyed, only the AuditProof remains and the data is gone. Returns the file content (text or base64) and its SHA-512 hash for integrity checking.

ParameterTypeDescription
capsule_id *stringID of the capsule whose output you want to retrieve.
filename *stringName of the output file to download from the capsule.
encodingstringHow to return `content`. Use 'base64' for binary output; defaults to 'utf8'.

nanorix_get_auditproof

Fetch the AuditProof JSON for a capsule. The AuditProof is the cryptographic record of the capsule's lifecycle — an 8-step SHA-512 hash chain plus an Ed25519 attestation. Retrieve it after destroying the capsule, then pass it to nanorix_verify_auditproof to confirm its integrity independently.

ParameterTypeDescription
capsule_id *stringID of a destroyed capsule whose AuditProof you want to fetch.

nanorix_verify_auditproof

Independently verify the cryptographic AuditProof an agent's capsule produced. Runs entirely offline (no API key, no network) and re-derives the 8-step SHA-512 hash chain and the Ed25519 signature. Returns PASS or FAIL plus the failing step on mismatch. This is a STRUCTURAL integrity check (the chain and signature are intact) — it is not a regulatory or compliance judgement; an auditor certifies regulatory adequacy. Unless the proof was given as a string that is not JSON, the result includes verification_scope, which says what PASS covers: the signing key is the one the proof carries and was…

ParameterTypeDescription
proof *The AuditProof to verify, as either a JSON object or a JSON string. Typically the value returned by nanorix_get_auditproof or nanorix_destroy.

nanorix_destroy

Destroy a capsule. This cryptographically shreds its volatile memory and data, then returns the terminal AuditProof — the evidence of what ran and that the data was destroyed. Always download any output you need (nanorix_download) BEFORE calling this: after destruction only the AuditProof remains. Pass the returned proof to nanorix_verify_auditproof to confirm it independently.

ParameterTypeDescription
capsule_id *stringID of the capsule to destroy.

nanorix_status

Check a capsule's current lifecycle status (e.g. active, destroyed). Use this to decide your next step — whether the capsule is still running and accepting commands/uploads, or already destroyed (in which case fetch its AuditProof with nanorix_get_auditproof).

ParameterTypeDescription
capsule_id *stringID of the capsule to inspect.

nanorix_list_capsulefiles

List the customer's available Capsulefiles (the sealed runtime + entrypoint + file definitions a capsule boots from). Call this to discover which capsulefile ID to pass to nanorix_create_capsule. Takes no arguments.