arshield-mcp

v0.1.4
arshield-mcp Checked 2 days ago Published 1 month ago

ArShield MCP server — post-quantum file encryption for AI agents.

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

arshield_encrypt_file

Encrypt bytes under hybrid ML-KEM-768 + X25519 and sign the envelope with ML-DSA-65 (ArShield .arshield container). Returns base64url of the container. Sign with a keyfile, a wallet signature, or a fresh ephemeral identity.

ParameterTypeDescription
data_base64 *stringFile bytes encoded base64 (standard) or base64url
filename *stringOriginal filename, stored encrypted inside the payload
addressoptional
keyfile_jsonoptional
passphraseoptional
signature_hexoptional
signature_hex_repeatoptional

arshield_decrypt_file

Decrypt an ArShield .arshield container (base64url). Verifies the ML-DSA-65 signature and returns the original file bytes and filename.

ParameterTypeDescription
container_b64url *stringThe .arshield container encoded base64url
addressoptional
keyfile_jsonoptional
passphraseoptional
signature_hexoptional
signature_hex_repeatoptional

arshield_send_message

Wrap a short plaintext (max 64KB) into a shareable encrypted ArShield message URL. The ciphertext lives in the URL #fragment. With an ephemeral sender the secret key is embedded so the recipient can decrypt without setup.

ParameterTypeDescription
text *stringPlaintext message (max 64KB)
addressoptional
keyfile_jsonoptional
passphraseoptional
signature_hexoptional
signature_hex_repeatoptional

arshield_decrypt_message

Read an ArShield encrypted message URL (like the /m page does). Returns the plaintext and the signer key that sealed it.

ParameterTypeDescription
url *stringThe arshield message URL
addressoptional
keyfile_jsonoptional
passphraseoptional
signature_hexoptional
signature_hex_repeatoptional

arshield_verify_seal

Parse the metadata fields an ArShield Quantum Seal PNG carries (unsigned) and, given an envelope, compare its sha256 against file_hash. Seal fields: file_hash, anchor_tx, anchor_chain, anchor_registry, anchor_time, anchor_account.

ParameterTypeDescription
seal_metadata_json *stringThe seal metadata parsed from the PNG text chunk
envelope_sha256stringsha256 hex of the envelope to compare against file_hash

arshield_sign_x402

Sign an x402 payment payload with ML-DSA-65 under context arshield-v1-x402. Returns the signature (base64url) the server can verify with the provided public key.

ParameterTypeDescription
payload_base64 *stringThe x402 request bytes to sign (base64)
addressoptional
keyfile_jsonoptional
passphraseoptional
signature_hexoptional
signature_hex_repeatoptional