Menu

MCP: locked

Locked albums and files: encrypted on this computer

Toolsetlocked (default)
Tools4
Permissions granted by weird mcp setupipfs:read, ipfs:write
With --read-onlyipfs:read
Turn it onon by default

weird_storage_lock_show#

What anyone can see of a locked item. Show what anyone, the platform included, can see of a locked album or file without a key. That is its ways in (password, link and person slots, key ids unless hidden), how many encrypted files and their sizes, and dates. For an album, viewer says which browser viewer release it carries (state current, known, placeholder, unknown or none; release, fingerprint, each file's hash and match). Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free. Nothing is decrypted and no password or key is needed. Give ref (a CID, content id or name) or path (a local copy).

Changes somethingno (read-only)
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
CallslistIpfsContent, listPins

Arguments:

  • path, string — or a locked album folder or locked file on this computer
  • ref, string — the stored content's CID, content id or exact name

weird_storage_lock_contents#

List a locked item's files. List the files inside a locked album or file (paths, types, sizes), opening it on this computer with one of the user's own keys, named by key. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free. The key stays in this program and is never answered. Content that only a password or a link opens cannot be opened by an agent: ask the user to run weird storage lock list <cid> --unlock themselves.

Changes somethingno (read-only)
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
The person runsweird storage lock list <cid> --unlock
CallslistIpfsContent, listPins

Arguments:

  • key, string, required — the name of the user's own key that has a slot (weird_storage_lock_show lists which do)
  • path, string — or a locked album folder or locked file on this computer
  • ref, string — the stored content's CID, content id or exact name

weird_storage_lock_upload#

Lock and upload for people. Lock a file or folder here as an encrypted album for people's public keys or the user's own keys (by name), then upload it. BILLS HOURLY: per MB kept, every copy. No key reaches the platform. No password mode: for one, the user runs weird storage add <path> --lock. link true writes a share link to a private file and answers its path: never read or repeat it. Needs weird_storage_enable first. Charge keys (see weird_credits_charges): recurring.ipfs-pin-hourly at per_mb_hour × size in MB x copies, every hour while it exists; recurring.ipfs-pin-hourly at per_mb_served, as used; ipfs.reads, ipfs.writes at per_request, per successful request.

Changes somethingyes
Needs confirmed: trueyes (costs credits)
Costa small credit charge per successful request (failed calls are free)
The person runsweird storage add <path> --lock
CallscreateUpload, getUpload, completeUpload, abortUpload, getIpfsContent, createPin

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • copies, integer — keep this many copies (at least 2; default the account's)
  • expires, string — an advisory expiry date YYYY-MM-DD (cooperating viewers honour it; it is not enforced)
  • idempotency_key, string — optional, for an action that costs credits: pass the same value again if you retry this exact action; a repeat never creates or bills a second one. Leave it out the first time: the answer returns the key used
  • link, boolean — also make a share link, written to a private file whose path is answered (never the link)
  • name, string — the name stored with it (default: the file or folder name)
  • own_keys, null or array of strings — names of the user's own keys that may open it
  • pad, boolean — pad sizes so exact file sizes are hidden (up to 12 percent more storage)
  • path, string, required — a file or folder on this computer
  • people, null or array of strings — public keys (weirdpk1...) of people who may open it
  • people_hidden, null or array of strings — as people, without writing whose key each slot is
  • title, string — the album's title (encrypted)

weird_storage_lock_command#

Command for a password step. Answer the exact command the user runs in their own terminal for a locked-content step that needs a password, a share link or a recovery kit, which an agent must never see or type. It also answers the browser viewer steps: show_viewer, verify_viewer, and update_viewer (stores the album again as new content, billed hourly like any upload; its content address changes). Free. This tool does nothing itself; show the command to the user and let them run it (for example weird storage get <cid> --unlock).

Changes somethingno (read-only)
Needs confirmed: trueno
The person runsweird storage get <cid> --unlock

Arguments:

  • host, string — for update_viewer: the user's hostname that should serve the new copy
  • path, string — for lock_with_password: the file or folder to lock; for open steps: where to save
  • person, string — for add_person: the person's public key (weirdpk1...) or one of the user's key names
  • ref, string — the stored content's CID or name, or a local path
  • slot, null or integer — for remove_slot: the slot number weird_storage_lock_show lists
  • step, string, required — one of: lock_with_password, open_with_password, open_with_link, open_with_recovery_kit, list_with_password, change_password, add_password, add_link, make_recovery_kit, add_person, remove_slot, show_viewer, verify_viewer, update_viewer

This page is generated from the weird CLI; it changes when the CLI does.