mcp
v0.1.10Agent-first E2EE file transfer over MCP: move files between machines in one tool call, gone in 24h.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
upload_file Upload File
Encrypts and uploads exactly the file or directory at the given local `path` (absolute, or relative to the current working directory). A directory is zipped client-side into a single archive before upload. Reads only that one path – never scans unrelated files or directories. Returns a shareable link (24h expiry, 100MB cap) with the decryption key embedded in the URL fragment; the key is never sent to the API. Optionally make the link one-time (burned when the first download starts) or password-protected.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or cwd-relative path to the local file or directory to upload |
oneTime | boolean | When true, the link burns when the server authorizes the first download, before the file bytes arrive. If that download then fails (storage or disk error), the link cannot be used again, so the sender… |
password | string | Optional password to protect the link. Composed into the decryption key on the client via a fresh salt – never transmitted to the API. When set, the returned link requires this same password to decr… |
get_status Get Transfer Status
Checks whether the YAFL share link at the given `url` is still live — live, uploading, expired, or not found — without downloading or decrypting anything. Returns liveness, size, and expiry only. Reads only the transfer id: the URL fragment (the decryption key) is dropped before the link is parsed, so the key is never decoded, sent, or echoed in a result or an error, and no file bytes are fetched. The fragment is optional; pass the link without it when you can.
| Parameter | Type | Description |
|---|---|---|
url * | string | A YAFL share URL, e.g. https://yafl.dev/t/{id}, with or without its #fragment, or the compact {id}#{key} code. Only the {id} is read and sent to the API. |
download_file Download File
Downloads and decrypts exactly the one file referenced by the given YAFL share `url`, writing it only into `destDir` (default: the current working directory) — never anywhere else. Requires the decryption key embedded in the URL fragment; the key is used only locally to decrypt and is never sent to the API. No YAFL API key is required for retrieval — anyone holding the link can download it; only uploading or managing files requires a key. Optionally pass a `password` for password-protected links.
| Parameter | Type | Description |
|---|---|---|
url * | string | A YAFL share URL including the fragment key (e.g. https://yafl.dev/t/{id}#{key}), OR the compact {id}#{key} retrieval code printed alongside it — both resolve identically. |
destDir | string | Directory to write the downloaded file into (absolute or cwd-relative); defaults to the current working directory. The file is written only inside this directory. |
password | string | Password for a password-protected (v2) link. Used only locally to derive the decryption key — never sent to the API. Required when the link is password-protected; omitting it on such a link returns… |
list_files List Files
Lists the caller's OWN YAFL transfers only — metadata only (id, size, status, expiry, and a download path). Never returns file contents, never a decrypted name, and never another account's files. Optionally cap the number of results with `limit`.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of transfers to return (most recent first). Omit for the full capped list. |
delete_file Delete File
Permanently deletes ONE of the caller's own YAFL transfers, identified by `id` (a bare transfer id or a full share URL — the fragment/key, if present, is never read). This cannot be undone: the R2 object is purged and the transfer record is removed. Destructive action.
| Parameter | Type | Description |
|---|---|---|
id * | string | A YAFL transfer id, or a full share URL, e.g. https://yafl.dev/t/{id}#{key} |
email_link Email a Share Link
Emails this YAFL share link to a recipient. The link carries the decryption key in its fragment – anyone with access to that inbox can open the file. Requires a verified account.
| Parameter | Type | Description |
|---|---|---|
link * | string | A YAFL share URL including the fragment key (e.g. https://yafl.dev/t/{id}#{key}), OR the compact {id}#{key} retrieval code printed alongside it — both resolve identically. |
recipient * | string | The email address to send the share link to. |
login Log In
Starts a device-code login for an MCP agent that has no shell. Returns a verification URL and a short user code for the human to open and approve in a browser; approving is a one-time email-link sign-in that proves the human controls the account. This tool does NOT open a browser itself - relay the returned URL and code to the human. Once approved, the minted API key is stored locally and subsequent tool calls in this session authenticate automatically, with no further action needed.
list_skills List Skills
Lists the YAFL skills (step-by-step instructions for agents) that ship with this server: name, description and last update date, no body. Call it at the start of a session, then load a matching skill with `get_skill`. Read-only; needs no API key.
get_skill Get Skill
Returns the full SKILL.md text of one YAFL skill by `name` (from `list_skills`). Follow the skill before you do the task it describes. Read-only; needs no API key.
| Parameter | Type | Description |
|---|---|---|
name * | string | The skill name from list_skills: lowercase letters, digits and single dashes, e.g. yafl-file-transfer. |