Security
Re-encrypt an AGEX bundle with a new passphrase and fresh Argon2id/XChaCha parameters
Call this tool from your code in three languages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/agex-bundle-rewrapper' \
-H 'Content-Type: application/json' \
-d '{"filename":"bundleFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/en/api/tools/agex-bundle-rewrapper' \
-F 'bundleFile=/public/processing/example.agex.json' \
-F 'currentPassphrase=old-passphrase-123' \
-F 'newPassphrase=new-passphrase-456' \
-F 'strength=moderate' \
-F 'signerId=Optional signer label for the new bundle' \
-F 'signerPrivateKey=Optional base64 Ed25519 secret key used to sign the rewrapped bundle'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/agex-bundle-rewrapper| Name | Type | Required | Description |
|---|---|---|---|
| bundleFile | fileupload required | Yes | — |
| currentPassphrase | text | Yes | — |
| newPassphrase | text | Yes | — |
| strength | select | Yes | — |
| signerId | text | No | — |
| signerPrivateKey | textarea | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-agex-bundle-rewrapper": {
"name": "agex-bundle-rewrapper",
"description": "Re-encrypt an AGEX bundle with a new passphrase and fresh Argon2id/XChaCha parameters",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=agex-bundle-rewrapper",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "agex-bundle-rewrapper",
"arguments": {
"bundleFile": "/public/processing/example.agex.json",
"currentPassphrase": "old-passphrase-123",
"newPassphrase": "new-passphrase-456",
"strength": "moderate",
"signerId": "Optional signer label for the new bundle",
"signerPrivateKey": "Optional base64 Ed25519 secret key used to sign the rewrapped bundle"
}
}
}Questions or issues? Contact [email protected]