Payaion

v1.2.2
io.github.defdone/payaion Checked 1 day ago Published 1 month ago

Agent file transfer. No API key to start; price downloads in USDC on Base.

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

upload_file Upload File

Low-level upload. Prefer the 'transfer' tool instead — it handles polling automatically. This tool returns immediately with PENDING_UPLOAD status; you must poll get_upload_status yourself. Max file size follows the account plan (Basic 500 MB / Pro 1 GB). Provide EITHER 'filePath' (local stdio only) OR 'content' (base64). Use only when you need explicit control over the upload lifecycle.Over stdio no API key is required: without one you upload as a guest (100 MB, 24-hour link); a key raises the limits and lets you sell.

ParameterTypeDescription
contentstringBase64-encoded file content (standard or URL-safe base64)
fileNamestringOriginal filename with extension (e.g. report.pdf). Required when using 'content', optional for 'filePath' (derived from path).
filePathstringAbsolute path to a local file. Only works when this MCP server runs locally (stdio transport). Preferred over base64 — zero tokens wasted.
idempotencyKeystringUnique key for retry-safe uploads. Needs an API key; ignored without one.
mimeTypestringMIME type override (auto-detected if omitted)
payoutAddressstringWallet that a priced download pays out to. Only for running without an API key — it is what lets you sell with no account. Ignored when a key is set, because that account's payout address is a dashb…
pricePerDownloadnumberPrice per download in USD (e.g. 0.50 or 0.00005). When set, downloaders pay this amount in USDC. Omit for free downloads.

upload_from_url Upload from URL

Low-level upload from URL. Prefer the 'transfer' tool instead — it handles polling automatically. This tool returns immediately with PENDING_UPLOAD status; you must poll get_upload_status yourself. Max file size follows the account plan (Basic 500 MB / Pro 1 GB). Private/internal URLs are blocked. Use only when you need explicit control over the upload lifecycle.Over stdio no API key is required: without one you upload as a guest (100 MB, 24-hour link); a key raises the limits and lets you sell.

ParameterTypeDescription
url *stringPublic HTTPS URL of the file to upload
fileNamestringOptional filename override (derived from URL if omitted)
idempotencyKeystringUnique key for retry-safe uploads. Needs an API key; ignored without one.
payoutAddressstringWallet that a priced download pays out to. Only for running without an API key — it is what lets you sell with no account. Ignored when a key is set, because that account's payout address is a dashb…
pricePerDownloadnumberPrice per download in USD (e.g. 0.50 or 0.00005). When set, downloaders pay this amount in USDC. Omit for free downloads.

transfer Transfer File

One-shot file transfer with optional pricing and marketplace listing. Upload a file, set a per-download price, and list on the marketplace — all in a single call. Returns a shareable download URL. Supports free transfers, paid downloads, and marketplace listings. Provide EXACTLY ONE of: 'filePath' (local stdio — zero tokens), 'url' (remote fetch), or 'content' (base64 fallback).Over stdio no API key is required: without one you upload as a guest (100 MB, 24-hour link); a key raises the limits and lets you sell.

ParameterTypeDescription
contentstringBase64-encoded file content (fallback when filePath and url are unavailable).
fileNamestringFilename with extension. Required for 'content', optional for 'url'.
filePathstringAbsolute path to a local file (stdio transport only — zero token cost).
idempotencyKeystringUnique key for retry-safe transfers. Needs an API key; ignored without one.
listingCategorystringMarketplace category.
listingDescriptionstringWhat the buyer gets (40–500 chars). Required when listingTitle is set.
listingTagsarrayDiscovery tags (max 8, alphanumeric + dash).
listingTitlestringMarketplace listing title (3–120 chars). When set, auto-lists the file on the marketplace once ready.
mimeTypestringMIME type override (auto-detected if omitted).
payoutAddressstringWallet that a priced download pays out to. Only for running without an API key — it is what lets you sell with no account. Ignored when a key is set, because that account's payout address is a dashb…
pricePerDownloadnumberPrice per download in USD (e.g. 0.50). Downloaders pay in USDC. Omit or 0 for free.
urlstringPublic HTTPS URL of the file to upload (server fetches it directly — no token cost).

get_upload_status Get Upload Status

Check the processing status of a previously uploaded file. Returns the current status (PENDING_UPLOAD, UPLOADING, READY, FAILED) and whether the file is ready for download. Rarely needed — the 'transfer' tool handles polling automatically. Use this only to check on uploads that timed out or for manual status inspection.Over stdio no API key is required: without one you upload as a guest (100 MB, 24-hour link); a key raises the limits and lets you sell.

ParameterTypeDescription
uploadId *stringUpload ID returned from upload_file or upload_from_url (e.g. up_a1b2c3d4e5f6g7h8)

get_download_url Get Download URL

Get a fresh shareable download URL for a previously uploaded file. The file must be in READY status. Share this URL with anyone — it works without authentication. Requires an API key: a keyless caller cannot fetch a link for an upload it cannot prove it owns. Keep the downloadUrl returned by the upload instead — it belongs to the file, not the caller.

ParameterTypeDescription
uploadId *stringUpload ID returned from upload_file or upload_from_url (e.g. up_a1b2c3d4e5f6g7h8)

list_on_marketplace List on Marketplace

List an already-uploaded file on the public Payaion marketplace. The upload must be READY status and have a price set. Returns the market listing page URL (/m/<hash>) where buyers can view details and buy. Requires the agent key owner to own the upload.

ParameterTypeDescription
description *stringWhat the buyer gets (40–500 characters). Required.
title *stringListing title (3–120 characters).
uploadId *stringUpload ID to list (e.g. up_a1b2c3d4e5f6g7h8)
categorystringOptional file category
tagsarrayOptional tags for discoverability (max 8, alphanumeric with hyphens)

delist_from_marketplace Delist from Marketplace

Take your listing off the public Payaion marketplace. The file itself is not deleted and its share link keeps working. Buyers who already paid keep their download access for the rest of their 30-day window. Requires the agent key owner to own the listing.

ParameterTypeDescription
uploadId *stringUpload ID whose listing to remove (e.g. up_a1b2c3d4e5f6g7h8)

browse_marketplace Browse Marketplace

Search and browse active listings on the Payaion marketplace. Filter by keyword, category, and paginate through results. Returns listing details including title, price, file info, and the market page URL (/m/<hash>). No API key required over stdio.

ParameterTypeDescription
categorystringFilter by category.
pageintegerPage number (default 1, max 100).
pageSizeintegerResults per page (default 20, max 100).
qstringSearch query — matches title and description (max 100 chars).

get_payment_requirements Get Payment Requirements

Retrieve payment requirements for a marketplace asset before purchasing. Returns whether the asset is free or paid. For paid assets, includes the x402 payment requirements object that must be signed by the buyer's wallet and passed to the purchase_asset tool.

ParameterTypeDescription
uploadId *stringUpload ID of the marketplace asset to check payment requirements for.

purchase_asset Purchase Asset

Finalize the purchase of a paid marketplace asset. Requires a signed x402 payment payload from the buyer's wallet. First call get_payment_requirements to obtain the payment requirements, sign them with your EVM wallet, then pass the signed payload here. Returns the purchase receipt including a directDownloadUrl — you can GET that URL with your X-Aion-Key header to download the file immediately, no extra steps needed.

ParameterTypeDescription
paymentPayload *objectSigned x402 payment payload from the buyer's wallet.
uploadId *stringUpload ID of the marketplace asset to purchase.

list_storage List Storage

List the account's storage: every folder (with its full path and file count) plus the files inside one folder. Omit folderId to list files sitting at the root. Also returns bytes used against the plan limit. Start here before moving, renaming or deleting anything — the ids it returns are what the other folder tools take.

ParameterTypeDescription
folderIdstringFolder to list files from. Omit (or pass 'root') for the storage root.

create_folder Create Folder

Create a storage folder. Pass parentId to nest it inside another folder (up to 8 levels), or omit it for a top-level folder. Names are unique among siblings and cannot contain slashes.

ParameterTypeDescription
name *stringFolder name (1-64 characters, no slashes)
parentIdstringParent folder id. Omit for a top-level folder.

update_folder Rename or Move Folder

Rename a folder, move it under a different parent, or both. Pass parentId: null to move it back to the top level. A folder cannot be moved inside itself or its own subfolders.

ParameterTypeDescription
folderId *stringFolder id (uuid) as returned by list_storage or create_folder
namestringNew name (omit to keep the current one)
parentIdNew parent folder id; null or 'root' moves it to the top level. Omit to leave the parent unchanged.

delete_folder Delete Folder

Delete a folder and its subfolders. Files are NOT deleted — they move back to the storage root. Deleting the files themselves is a separate, explicit action.

ParameterTypeDescription
folderId *stringFolder id (uuid) as returned by list_storage or create_folder

move_file Move File to Folder

Move an uploaded file into a folder, or pass folderId: null to move it back to the storage root. This only re-files the item — the share link, price and expiry stay exactly as they were.

ParameterTypeDescription
folderId *Destination folder id, or null/'root' for the storage root
uploadId *stringUpload id (e.g. up_a1b2c3d4e5f6g7h8)