Menu

MCP: storage

Storage: uploads, downloads, pins, hostnames

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

weird_storage_location_notice#

Storage location notice. Read where the copies of the user's stored content may be kept, the notice text to show them, its version, and whether they acknowledged it. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free. Show the text to the user before weird_storage_enable.

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

No arguments.

weird_storage_enable#

Enable storage. Enable storage on the account once, acknowledging the location notice of the version given. COSTS CREDITS: charge key ipfs.storage-enable (one-off; calling again charges nothing). First call weird_storage_location_notice, show its text to the user word for word, and only after they agree call this with that notice_version.

Changes somethingyes
Needs confirmed: trueyes (costs credits)
Call firstweird_storage_location_notice
CallsenableIpfsStorage

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • 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
  • notice_version, integer, required — the version of the location notice the user read and agreed to (from weird_storage_location_notice)

weird_storage_upload#

Upload a file or folder. Upload a file or a folder from this computer (a folder is a website, index.html at its root); answers its CID, content id and gateway address. BILLS HOURLY: per MB kept, every copy. It runs in this computer's weird program: the bytes never pass through tool arguments. Optionally encrypted here first to a public key or key file. Storage must be enabled (weird_storage_enable). Check a site's _redirects/_headers first: weird_storage_check_site. 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)
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)
  • encrypt_to, string — encrypt here first so only the holder of this public key (weirdpk1...) can open it
  • 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
  • key_file, string — encrypt here first with this 32-byte key file on this computer
  • name, string — the name stored with it (default: the file or folder name)
  • path, string, required — a file or folder on this computer

weird_storage_check_site#

Check a site's _redirects and _headers. Check the _redirects and _headers files of a website folder on this computer, the way the gateway reads them. It answers every problem with its line: errors (the gateway would refuse the file and answer an error for the pages it decides; fix before publishing) and notes (a line ignored on some addresses: a free address cannot redirect to another site, some headers apply on the user's own domain only). Free. Nothing is uploaded or sent; limits are the documented defaults. Call it before weird_storage_upload of a site folder; weird_guide topic sites explains the files.

Changes somethingno (read-only)
Needs confirmed: trueno

Arguments:

  • on, string — only what matters on one kind of address: domain (the user's own), free-name, or content (the content's own address); default all
  • path, string, required — the website folder on this computer (absolute path)

weird_storage_download#

Download content. Download stored content (by CID, content id or exact name) to a path on this computer; a folder is unpacked. Files are checked against their content id; encrypted content and locked albums are opened with a key name (a key file opens the older format); content only a password or link opens is saved encrypted (see weird_storage_lock_command). Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free. It runs inside this computer's weird program: the bytes go to the path and never pass through tool arguments; serving counts toward the per-MB serving bill like any visit.

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

Arguments:

  • key, string — open content encrypted to the user's public key, with their key of this name
  • key_file, string — open encrypted content with this 32-byte key file
  • overwrite, boolean — replace existing files
  • path, string — where to save on this computer (a file, or a folder for folder content); default: named after the content in the current folder
  • ref, string, required — the content's CID, content id or exact name

weird_storage_uploads#

Upload sessions. List the user's upload sessions, newest first, or show one (with upload_id): its state, parts received and CID once stored. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

Arguments:

  • limit, integer — page size
  • offset, integer — rows to skip
  • state, string — only sessions in this state: open, completing, stored, failed, aborted or expired
  • upload_id, string — show this upload session instead of listing

weird_storage_upload_abort#

Abandon an upload. Abandon an open, failed or expired upload session; nothing is billed for it. Free. Irreversible: the session cannot be resumed afterwards.

Changes somethingyes
Needs confirmed: trueyes (cannot be undone)
CallsabortUpload

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • 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
  • upload_id, string, required — the upload session's id

weird_storage_content#

Stored content. List what the user stores (filters: status, search, cid, paging), or show one content by cid with its copies and any copy being made. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

Arguments:

  • cid, string — show this content (alone: its details; with filters: an exact-CID filter)
  • limit, integer — page size, 1 to 500
  • offset, integer — rows to skip
  • order, string — asc (default) or desc
  • search, string — a name fragment or a CID prefix
  • status, string — stored (default), another status, a comma list, or all

weird_storage_content_delete#

Delete stored content. Delete stored content and every copy of it: it stops being billed and served at once and its pins are retired. Free. Irreversible. Refused while a hostname or path map still serves it: retarget or detach those first (weird_storage_domains, weird_storage_path_maps).

Changes somethingyes
Needs confirmed: trueyes (cannot be undone)
CallsdeleteIpfsContent

Arguments:

  • cid, string, required — the content id (CID)
  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • 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

weird_storage_copies_set#

Change the copy count. Keep a content as more or fewer copies (at least 2); new copies are made at other providers, removed ones stop being billed at once. BILLS HOURLY: every copy is billed per MB kept. Safe to repeat with the same count. 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.

Changes somethingyes
Needs confirmed: trueyes (costs credits)
CallssetIpfsContentCopies

Arguments:

  • cid, string, required — the content id (CID)
  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • copies, integer, required — the copies wanted, at least 2
  • copy_no, integer — when lowering by one: the copy to take away
  • 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

weird_storage_pins#

Pins. List the user's pins (the gateway addresses of their content), optionally of one cid or status, or show one pin by pin_id. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

Arguments:

  • cid, string — only the pins of this CID
  • limit, integer — at most this many, 1 to 500
  • pin_id, string — show this pin instead of listing
  • status, string — queued, pinned or failed

weird_storage_pin_create#

Pin content. Give stored content a gateway address by pinning it; an existing pin of the cid is answered instead of a duplicate. Small credit charge per successful request (charge key ipfs.writes per_request in weird_credits_charges); failed calls are free. Data served through it counts toward the per-MB serving bill.

Changes somethingyes
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
CallscreatePin

Arguments:

  • cid, string, required — the content id (CID)

weird_storage_pin_delete#

Retire a pin. Retire a pin: its gateway address stops serving; the content stays stored. Free. Irreversible (pin the content again for a new address).

Changes somethingyes
Needs confirmed: trueyes (cannot be undone)
CallsdeletePin

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • 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
  • pin_id, string, required — the pin's id

weird_storage_cid_inspect#

Inspect a CID. Read what a content id says about itself: version, encoding, hash and its canonical spelling. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

Arguments:

  • cid, string, required — the content id (CID)

weird_storage_status#

Storage usage and unpaid state. Show what the user stores and serves, and whether storage is unpaid: the stage, when serving is suspended and when content may be removed. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free. While unpaid, nothing new can be stored; only the user can add credits (weird credits topup).

Changes somethingno (read-only)
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
The person runsweird credits topup
CallsgetIpfsUsage, getIpfsAccountUnpaid

No arguments.

weird_storage_domains#

Storage hostnames. List the user's hostnames serving stored content, or show one (by domain_id) with its DNS advice and pin count. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

Arguments:

  • domain_id, string — show this storage hostname (its id) instead of listing

weird_storage_domain_attach#

Serve content at a hostname. Serve stored content at a hostname inside one of the user's live DNS zones, or at one of their free names (weird_names_list); its records are written automatically and never overwrite existing ones. COSTS CREDITS: charge key dns.manage (per call).

Changes somethingyes
Needs confirmed: trueyes (costs credits)
CallsattachIpfsDomain

Arguments:

  • as_delegate_of, string — attach in another account's zone under its storage grant (its account id)
  • cid, string, required — the stored content to serve
  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • hostname, string, required — a name inside one of the user's live DNS zones, or one of their free names
  • 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
  • no_dnslink, boolean — do not write the DNSLink record
  • pin_ids, null or array of strings — also serve these pins under the hostname

weird_storage_domain_retarget#

Serve other content. Make a storage hostname serve another stored content of the user. COSTS CREDITS: charge key dns.manage (per call).

Changes somethingyes
Needs confirmed: trueyes (costs credits)
CallsretargetIpfsDomain

Arguments:

  • cid, string, required — the stored content to serve instead
  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • domain_id, string, required — the storage hostname's id
  • 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

weird_storage_domain_detach#

Stop serving a hostname. Stop serving stored content at a hostname and delete the records written for it; the content stays stored. COSTS CREDITS: charge key dns.manage (per call). Irreversible (attach it again for a new one).

Changes somethingyes
Needs confirmed: trueyes (costs credits, cannot be undone)
CallsdetachIpfsDomain

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • domain_id, string, required — the storage hostname's id (from weird_storage_domains)
  • 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

weird_storage_domain_pins#

Pins under a hostname. List the pins served under a storage hostname besides its own content (each at /ipfs/<cid> of the hostname). Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

Arguments:

  • domain_id, string, required — the storage hostname's id
  • limit, integer — page size, 1 to 100
  • offset, integer — rows to skip

weird_storage_domain_pins_update#

Change pins under a hostname. Add and remove pins served under a storage hostname, all or nothing. Small credit charge per successful request (charge key ipfs.writes per_request in weird_credits_charges); failed calls are free.

Changes somethingyes
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
CallsupdateIpfsDomainPins

Arguments:

  • add, null or array of strings — pin ids to serve
  • domain_id, string, required — the storage hostname's id
  • remove, null or array of strings — pin ids to stop serving

weird_storage_path_maps#

Path maps. List the path maps serving a pin under a path of the user's storage hostnames (optionally of one hostname). Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

Arguments:

  • hostname, string — only this storage hostname's path maps

weird_storage_path_map_create#

Create a path map. Serve one of the user's pins under a path of one of their storage hostnames (never the bare root). Small credit charge per successful request (charge key ipfs.writes per_request in weird_credits_charges); failed calls are free.

Changes somethingyes
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
CallscreatePathMap

Arguments:

  • hostname, string, required — one of the user's storage hostnames
  • path_prefix, string, required — the path under the hostname, never the bare root
  • pin_id, string, required — one of the user's pins

weird_storage_path_map_set#

Turn a path map on or off. Serve a path map again or stop serving it (it is kept and can be turned on later). Small credit charge per successful request (charge key ipfs.writes per_request in weird_credits_charges); failed calls are free.

Changes somethingyes
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
CallssetPathMapDesired

Arguments:

  • path_map_id, string, required — the path map's id
  • serve, boolean, required — true serves it, false stops serving it

weird_storage_path_map_delete#

Retire a path map. Retire a path map: its address stops serving. Free. Irreversible (create a new path map to serve it again).

Changes somethingyes
Needs confirmed: trueyes (cannot be undone)
CallsdeletePathMap

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • 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
  • path_map_id, string, required — the path map's id

weird_storage_grants#

Storage grants. List the storage grants the user gave and received: who may manage storage hostnames under which domain, and whose credits that spends. Small credit charge per successful request (charge key ipfs.reads per_request in weird_credits_charges); failed calls are free.

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

No arguments.

weird_storage_grant_create#

Give a storage grant. Let another account (by its email) manage storage hostnames under one of the user's domains; what it creates is the user's. Small credit charge per successful request (charge key ipfs.writes per_request in weird_credits_charges); failed calls are free. What is created spends the payer's credits (owner, grantee or split).

Changes somethingyes
Needs confirmed: trueyes (consequential)
Costa small credit charge per successful request (failed calls are free)
CallscreateIpfsGrant

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • domain, string, required — one of the user's domains
  • email, string, required — the other account's email address
  • 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
  • payer, string — owner (default), grantee or split

weird_storage_grant_revoke#

Revoke a storage grant. End a storage grant: the other account's management stops at once; the hostnames stay the user's. Free. Irreversible (give a new grant to restore it).

Changes somethingyes
Needs confirmed: trueyes (cannot be undone)
CallsrevokeIpfsGrant

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • grant_id, string, required — the grant's id (from weird_storage_grants)
  • 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

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