Menu
MCP: tunnels
HTTPS tunnels
| Toolset | tunnels (default) |
| Tools | 8 |
Permissions granted by weird mcp setup | tunnels:read, tunnels:write |
With --read-only | tunnels:read |
| Turn it on | on by default |
weird_tunnels_list#
List tunnels. List the user's HTTPS tunnels with their DNS, certificate and connection progress, plus tunnels shared with them. Small credit charge per successful request (charge key tunnel.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 | listTunnels |
No arguments.
weird_tunnels_get#
Tunnel details. Show one tunnel by id: state, whether a client is connected, DNS and certificate status, the record to add when its DNS is elsewhere. Small credit charge per successful request (charge key tunnel.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 | getTunnel |
Arguments:
id, string, required — the tunnel's id (weird_tunnels_list shows it)
weird_tunnels_create#
Create a tunnel. Create an HTTPS tunnel from a hostname of the user's to this computer; with local_port, this computer starts forwarding that port at once. BILLS HOURLY while the tunnel exists (see weird_credits_charges); weird_tunnels_delete stops it. When the hostname's zone is at weird its record is written automatically; otherwise the answer gives the record to add. The user can also run weird tunnel <hostname> <port> themselves. Charge keys (see weird_credits_charges): recurring.tunnel-hourly at per_hour, every hour while it exists.
| Changes something | yes |
Needs confirmed: true | yes (costs credits) |
| The person runs | weird tunnel <hostname> <port> |
| Calls | createTunnel |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequencehostname, string, required — a fully qualified hostname under a domain the user holdsidempotency_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 usedlocal_port, integer — forward this port of this computer at once (1 to 65535)offline_url, string — an https page to show while this computer is offline
weird_tunnels_update#
Tunnel offline page. Set the https page a tunnel shows while the computer behind it is offline, or clear it for the standard page. Free.
| Changes something | yes |
Needs confirmed: true | no |
| Calls | updateTunnel |
Arguments:
id, string, required — the tunnel's idoffline_url, string — an https page to show while offline; empty restores the standard page
weird_tunnels_delete#
Delete a tunnel. Delete a tunnel: visitors get an error from then on and its automatic DNS record is removed. Free. Its hourly billing stops. Irreversible.
| Changes something | yes |
Needs confirmed: true | yes (cannot be undone) |
| Calls | deleteTunnel |
Arguments:
confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequenceid, string, required — the tunnel's id (weird_tunnels_list shows 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
weird_tunnels_verify_dns#
Re-check tunnel DNS. Re-check a tunnel's DNS now, after the user added or fixed its record; a tunnel waiting for DNS then finishes setting up. Free.
| Changes something | yes |
Needs confirmed: true | no |
| Calls | verifyTunnelDns |
Arguments:
id, string, required — the tunnel's id (weird_tunnels_list shows it)
weird_tunnels_agent_status#
Tunnel helper status. Show whether the helper that keeps tunnels connected runs on this computer, and which tunnels it forwards to which local ports. Free. If it is not running, the user starts it with weird agent start.
| Changes something | no (read-only) |
Needs confirmed: true | no |
| The person runs | weird agent start |
No arguments.
weird_tunnels_set_offline_folder#
Tunnel offline page from a folder. Upload a folder from this computer (with an index.html) and make it the page a tunnel shows while the computer behind it is offline. BILLS HOURLY: the folder is kept in storage, billed per MB kept. It runs inside this computer's weird program: the files never pass through tool arguments. Storage must be enabled (weird_storage_enable). 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; tunnel.reads, 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) |
| Also needs toolsets | storage |
| Calls | listTunnels, updateTunnel, 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 consequencefolder, string, required — a folder on this computer with an index.htmlidempotency_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 usedtunnel, string, required — the tunnel's id or hostname
This page is generated from the weird CLI; it changes when the CLI does.