Back to Guides
MCP setup guide

How to Create Your Waitlist with OpenCode

Add the UseWait MCP server as a remote in opencode.json and have OpenCode build and manage a live waitlist: slug, page design, confirmation emails, and signups.

OpenCode supports remote MCP servers natively, which makes the UseWait integration one JSON block long. After that, the agent can own your whole pre-launch surface: it creates the waitlist, writes page code to match your brand, manages the confirmation email, and pulls signup numbers on demand. Here is how to create your waitlist with OpenCode.

Set up your waitlist with OpenCode

1

Get a key

Create a free account at usewait.com and generate an API key in Dashboard, Settings, API Keys. Copy the uw_live_... value when it appears; it will not be shown again.

2

Declare the remote server

Add the snippet below to your opencode.json (project or global config). Because UseWait's endpoint is streamable HTTP, OpenCode connects directly with no local bridge process.

opencode.json
{
  "mcp": {
    "usewait": {
      "type": "remote",
      "url": "https://usewait.com/api/mcp/mcp",
      "headers": {
        "Authorization": "Bearer uw_live_YOUR_KEY"
      }
    }
  }
}
3

Hand over the brief

Prompt: "Create a waitlist for my indie game. Pick the slug, make the page moody and pixel-art friendly, and set up the confirmation email." OpenCode starts with get_started, learns the page contract from get_page_format, and ships a live page at usewait.com/w/<slug>.

4

Operate it from chat

The same session can raise the referral boost, swap the Open Graph image via a CDN upload, connect your own domain (the tool returns the A record to point), or fetch fresh signups with list_entries.

What OpenCode handles for you

Picks and claims a unique slug
Writes page code matched to your brand
Creates the confirmation email template
Uploads logos and images to the CDN
Walks you through custom domain DNS
Reads signups and referral stats on demand

Frequently asked questions

Does UseWait charge for MCP usage?

No. MCP and REST access ship with every plan, free included. Feature gates like custom domains follow your plan's capabilities.

How does the agent know how to build a valid page?

The get_page_format tool returns the exact contract for page code, including how signups are submitted and how referral links work, so generated pages function on the first try.

What if I prefer raw HTTP?

Point your code at usewait.com/api/v1 with the same key. GET /api/v1 returns a self-describing index of all endpoints.

How many tools will show up in OpenCode?

25, spanning waitlists, entries, email templates, assets, domains, Turnstile keys, and external databases.

Get your API key and let OpenCode launch it

Free plan includes full API and MCP access. Your agent does the rest.

Create your free API key

Full reference at docs.usewait.com and a quick overview on the developers page.