Menu

The MCP server

weird's local MCP server for AI agents: its toolsets and tools, which need a confirmation, and what it tells the agent.

weird mcp is a local MCP server (over stdio) that lets an AI agent act on a weird account. It runs inside your own weird program, with the agent's own API key, limited to the toolsets you chose, never your session. Setting it up is in using weird with an AI assistant; this reference is generated from the CLI's own tool definitions.

$ weird mcp setup# creates the agent's own key, prints the editor configuration$ claude mcp add --scope user weird -- weird mcp

The rules every tool follows#

  • Every description says what the tool costs: "Free", "COSTS CREDITS" with the contract, "BILLS HOURLY", or a small credit charge per successful request.
  • A tool that costs credits up front or cannot be undone needs confirmed: true: the agent describes the action and its cost and asks you first, every time. Metering per successful request alone needs no confirmation.
  • Orders that start at once (a top-up; registering, renewing or transferring a domain) need your own acknowledgement: called without it, the tool answers the text, which the agent shows you word for word.
  • A charged create that is keyed takes an optional idempotency_key and answers the one used, so a retry never creates or bills twice.
  • No tool takes or answers a secret the API marks as one, a password, a share link's key or a private key. Uploads and downloads run from and to local paths: file bytes never pass through tool arguments.
  • Some steps are yours alone: paying, accepting the terms, setting up the authenticator, creating API keys. A tool answers the exact command for you to run.

Toolsets#

The default toolsets are on unless you choose otherwise; opt-in ones are added by name (weird mcp setup --add <toolset>); sensitive ones act on the account itself and need a fresh authenticator code at setup.

ToolsetKindToolsNeed confirmedWhat
guidealways on40Guide and status
creditsdefault50Credits: balance, history and credit charges
domainsdefault1612Domains: availability, registration, renewal, transfers
dnsdefault209DNS zones and records
storagedefault2812Storage: uploads, downloads, pins, hostnames
lockeddefault41Locked albums and files: encrypted on this computer
namesdefault62Free names: a site from storage under weird's own domains
tunnelsdefault83HTTPS tunnels
p2pdefault103P2P apps: signaling, relay, TURN, mailbox
serversdefault155Servers: create, power, hostnames, actions
server-volumesopt-in53Server volumes (extra disks)
server-snapshotsopt-in32Server snapshots
server-keysopt-in21Saving and deleting SSH keys
statsopt-in92Traffic statistics of the user's sites
appsopt-in31One-click server apps
supportopt-in41Support tickets
notificationsopt-in60Notifications and email preferences
legalopt-in30Terms and privacy notice
oauthopt-in21Applications the user authorised
referralsopt-in64Gifts and referral rewards
grantsopt-in74Access shared on domains
accountsensitive, opt-in153Account: profile, email addresses, sessions, closing
securitysensitive, opt-in20Second factor
billingsensitive, opt-in94Billing profiles, top-ups, invoices
withdrawalssensitive, opt-in20Withdrawing from top-ups, refunds
data-exportsensitive, opt-in32A copy of the account's data
keyssensitive, opt-in21API keys
transferssensitive, opt-in51Handing servers to other accounts

What the server tells the agent#

These are the server's own instructions, sent when the agent connects. The guides go deeper into each area.

weird runs a customer's internet presence: domains, DNS, storage, tunnels, peer-to-peer apps and servers, all spending one prepaid credit balance.

How the pieces fit:

  • Credits: everything spends prepaid credits; the only thing bought with money is credits. weird_credits_balance shows the balance; weird_credits_charges lists what each action spends, in credits, by charge key. Only the user can add credits (they run weird credits topup).
  • Domains: a domain is registered (or transferred) through weird, or stays where it is and only uses weird for DNS.
  • DNS zones: a zone holds a domain's records. Each zone gets its own pair of nameservers; the domain must point at them before the records take effect. Tunnels, storage domains, apps and servers write their records into the user's zones automatically.
  • Storage: files and folders kept by content address, with as many copies as the user chooses (each spends credits), and served on the user's own domains. A site's own _redirects and _headers files are checked with weird_storage_check_site before uploading (sites guide).
  • Free names: a name under one of weird's own domains, lent to the user to serve a site from their storage without a domain of their own (weird_names_claim, then weird_storage_domain_attach). Released when nothing is attached for a while; no mail, no other records.
  • Statistics (stats toolset, opt-in): traffic of the user's sites; detailed statistics are switched on per site, bill hourly, and need the user's acceptance of the controller terms.
  • Tunnels: put something running on the user's computer on the internet under a hostname of theirs, with HTTPS.
  • P2P apps: give a browser or device app the relay, signaling and offline mailbox it needs, under the user's hostname.
  • Servers: cloud servers billed by the hour while they exist, plus volumes and snapshots.

Rules:

  • Every tool description says what it costs: "Free", "COSTS CREDITS" with the charge key, "BILLS HOURLY", or a small credit charge per successful request. Tools that cost credits up front (COSTS CREDITS, BILLS HOURLY) or cannot be undone need confirmed: true — describe the action and its cost to the user and ask first, every time.
  • Reading products (listing and showing domains, zones, storage, tunnels, apps, servers) has a small per-request credit charge, charged only when the call succeeds; failed calls are free. Those tools need no confirmed; avoid needless repeats.
  • Orders that start at once (a top-up, registering, renewing or transferring a domain, a change of holder) need the user's own acknowledgement of a text about their right of withdrawal, and switching detailed statistics on needs their acceptance of the controller terms. Call the tool without it to get the text, show it word for word, and pass it only if the user accepts it; never on your own.
  • A restriction after a review (an account suspended, content or a hostname blocked) is a decision, not an obstacle: never work around it with another hostname, content, account or key. Tell the user the contact; they may contest it.
  • Refusals are not dead ends: each one says what happened and the next step. Some steps only the user can take, in a terminal: adding credits, accepting the terms, proving their authenticator, widening this agent's permissions. Ask them to run the exact command given, then retry.
  • This agent acts with its own limited key. If a tool is refused for a missing permission, ask the user to run weird mcp setup --add <toolset>.
  • weird_guide(topic) explains each area in more depth; weird_status shows what this connection can do right now.