Menu

MCP: tunnels

HTTPS tunnels

Toolsettunnels (default)
Tools8
Permissions granted by weird mcp setuptunnels:read, tunnels:write
With --read-onlytunnels:read
Turn it onon 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 somethingno (read-only)
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
CallslistTunnels

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 somethingno (read-only)
Needs confirmed: trueno
Costa small credit charge per successful request (failed calls are free)
CallsgetTunnel

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 somethingyes
Needs confirmed: trueyes (costs credits)
The person runsweird tunnel <hostname> <port>
CallscreateTunnel

Arguments:

  • 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 fully qualified hostname under a domain the user holds
  • 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
  • local_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 somethingyes
Needs confirmed: trueno
CallsupdateTunnel

Arguments:

  • id, string, required — the tunnel's id
  • offline_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 somethingyes
Needs confirmed: trueyes (cannot be undone)
CallsdeleteTunnel

Arguments:

  • confirmed, boolean, required — must be true, and only after the user explicitly agreed to this action and its cost or consequence
  • id, 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 somethingyes
Needs confirmed: trueno
CallsverifyTunnelDns

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 somethingno (read-only)
Needs confirmed: trueno
The person runsweird 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 somethingyes
Needs confirmed: trueyes (costs credits)
Costa small credit charge per successful request (failed calls are free)
Also needs toolsetsstorage
CallslistTunnels, 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 consequence
  • folder, string, required — a folder on this computer with an index.html
  • 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
  • tunnel, string, required — the tunnel's id or hostname

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