MCP clients like ChatGPT and Claude need a public URL to reach your server. A tunnel forwards traffic from a public URL to your local dev server — no deployment required.Documentation Index
Fetch the complete documentation index at: https://docs.waniwani.ai/llms.txt
Use this file to discover all available pages before exploring further.
If you started from the MCP Distribution Template,
bun dev already spawns a Cloudflare tunnel and prints the public URL. You don’t need this guide. Continue only if you’re running a custom dev server.1. Start your dev server
3000, 8080, or 8787). Check your server logs or package.json for the exact port.
2. Start a tunnel
- cloudflared (recommended)
- ngrok
Cloudflare Tunnel requires no account for quick tunnels.Install:Run:Cloudflared prints a public URL like
https://<random>.trycloudflare.com. Use that as your MCP server endpoint.3. Use the tunnel URL
Replacelocalhost with the tunnel URL in your MCP client config:
Using the agent skill
If you have the WaniWani SDK agent skill installed, you can run the/waniwani-sdk tunnel command and your AI agent will handle the entire setup for you — detecting the dev server port, picking an available tunnel provider, and printing the public URL. See Commands for details.
Good to know
- Quick tunnels generate a new URL each time. For a stable URL, set up a named Cloudflare tunnel or use an ngrok paid plan.
- stdio transport does not need a tunnel. Tunnels are only needed for HTTP-based transports (Streamable HTTP, SSE).
- ngrok free tier has rate limits and session expiry (typically 2 hours).