Menu
MCP: storage
Storage: uploads, downloads, pins, hostnames
| Toolset | storage (default) |
| Tools | 28 |
Permissions granted by weird mcp setup | ipfs:read, ipfs:write |
With --read-only | ipfs:read |
| Turn it on | on 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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | getIpfsLocationNotice |
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 something | yes |
Needs confirmed: true | yes (costs credits) |
| Call first | weird_storage_location_notice |
| Calls | enableIpfsStorage |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequenceidempotency_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 usednotice_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 something | yes |
Needs confirmed: true | yes (costs credits) |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | createUpload, 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 consequencecopies, 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 itidempotency_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 usedkey_file, string — encrypt here first with this 32-byte key file on this computername, 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 something | no (read-only) |
Needs confirmed: true | no |
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 allpath, 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 something | yes |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listIpfsContent, listPins |
Arguments:
key, string — open content encrypted to the user's public key, with their key of this namekey_file, string — open encrypted content with this 32-byte key fileoverwrite, boolean — replace existing filespath, string — where to save on this computer (a file, or a folder for folder content); default: named after the content in the current folderref, 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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listIpfsUploads, getUpload |
Arguments:
limit, integer — page sizeoffset, integer — rows to skipstate, string — only sessions in this state: open, completing, stored, failed, aborted or expiredupload_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 something | yes |
Needs confirmed: true | yes (cannot be undone) |
| Calls | abortUpload |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequenceidempotency_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 usedupload_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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listIpfsContent, getIpfsContent |
Arguments:
cid, string — show this content (alone: its details; with filters: an exact-CID filter)limit, integer — page size, 1 to 500offset, integer — rows to skiporder, string — asc (default) or descsearch, string — a name fragment or a CID prefixstatus, 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 something | yes |
Needs confirmed: true | yes (cannot be undone) |
| Calls | deleteIpfsContent |
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 consequenceidempotency_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 something | yes |
Needs confirmed: true | yes (costs credits) |
| Calls | setIpfsContentCopies |
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 consequencecopies, integer, required — the copies wanted, at least 2copy_no, integer — when lowering by one: the copy to take awayidempotency_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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listPins, getPin |
Arguments:
cid, string — only the pins of this CIDlimit, integer — at most this many, 1 to 500pin_id, string — show this pin instead of listingstatus, 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 something | yes |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | createPin |
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 something | yes |
Needs confirmed: true | yes (cannot be undone) |
| Calls | deletePin |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequenceidempotency_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 usedpin_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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | inspectIpfsCid |
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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| The person runs | weird credits topup |
| Calls | getIpfsUsage, 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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listIpfsDomains, 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 something | yes |
Needs confirmed: true | yes (costs credits) |
| Calls | attachIpfsDomain |
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 serveconfirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequencehostname, string, required — a name inside one of the user's live DNS zones, or one of their free namesidempotency_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 usedno_dnslink, boolean — do not write the DNSLink recordpin_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 something | yes |
Needs confirmed: true | yes (costs credits) |
| Calls | retargetIpfsDomain |
Arguments:
cid, string, required — the stored content to serve insteadconfirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequencedomain_id, string, required — the storage hostname's ididempotency_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 something | yes |
Needs confirmed: true | yes (costs credits, cannot be undone) |
| Calls | detachIpfsDomain |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequencedomain_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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listIpfsDomainPins |
Arguments:
domain_id, string, required — the storage hostname's idlimit, integer — page size, 1 to 100offset, 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 something | yes |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | updateIpfsDomainPins |
Arguments:
add, null or array of strings — pin ids to servedomain_id, string, required — the storage hostname's idremove, 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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listPathMaps |
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 something | yes |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | createPathMap |
Arguments:
hostname, string, required — one of the user's storage hostnamespath_prefix, string, required — the path under the hostname, never the bare rootpin_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 something | yes |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | setPathMapDesired |
Arguments:
path_map_id, string, required — the path map's idserve, 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 something | yes |
Needs confirmed: true | yes (cannot be undone) |
| Calls | deletePathMap |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequenceidempotency_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 usedpath_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 something | no (read-only) |
Needs confirmed: true | no |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | listIpfsGrants |
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 something | yes |
Needs confirmed: true | yes (consequential) |
| Cost | a small credit charge per successful request (failed calls are free) |
| Calls | createIpfsGrant |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequencedomain, string, required — one of the user's domainsemail, string, required — the other account's email addressidempotency_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 usedpayer, 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 something | yes |
Needs confirmed: true | yes (cannot be undone) |
| Calls | revokeIpfsGrant |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequencegrant_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.