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) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/agex-bundle-rewrapper' \
-F 'file=@/path/to/bundleFile.ext'
# 2) Call the tool with the returned filePath values
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]