> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wassist.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish to WhatsApp Button

> Add a one-click Publish to WhatsApp button for your MCP server — zero backend code, instant WhatsApp preview, and partner referrals via referer=.

Give your customers a one-click path from your MCP server straight to a live WhatsApp agent — with no API integration, no credentials to store, and no WhatsApp Business setup required on your side.

[Publish to WhatsApp
](https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp)

[https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp](https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp)

## How the link works

The button is a single URL pointing to the Wassist WhatsApp Harness with your customer's Streamable HTTP MCP endpoint in the `url` query parameter:

```text theme={null}
https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp
```

If you are an MCP hosting platform, builder, or marketplace, add your partner identifier with `referer=` so every signup and deployment is attributed to you:

```text theme={null}
https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp&referer=your-company
```

### Query parameters

| Parameter | Required | Description |
| - | - | - |
| `url` | Yes | The public Streamable HTTP MCP endpoint (e.g. `https://mcp.yourproduct.com/mcp`). Both `https://...` and schemeless `mcp.yourproduct.com/mcp` formats are accepted. |
| `referer` | Optional | Your partner or company identifier (e.g. `acme-mcp`) for referral attribution and partner revenue sharing. |

## What happens when a user clicks it

**1. Automatic MCP discovery**

Wassist connects to the MCP endpoint, reads its tool schemas via `tools/list`, and automatically detects OAuth 2.1 / PKCE if the server requires authentication. No live tools are executed during preview generation.

**2. Instant simulated WhatsApp preview**

Within seconds, the visitor sees an interactive WhatsApp mockup with realistic multi-turn customer conversations tailored to the server's real tools — before connecting a phone number or signing up.

**3. One-click WhatsApp sandbox**

Clicking **Try on WhatsApp** claims a dedicated agent into the user's Wassist workspace and opens a live WhatsApp sandbox conversation wired to their MCP server, complete with in-chat per-user OAuth and full transcript history.

**4. Production WhatsApp Business ready**

When ready to launch to customers, they can attach a dedicated WhatsApp Business number from their Wassist dashboard without changing a line of their MCP server.

## Add the button to your dashboard or docs

Drop the button directly into your MCP deployment page, marketplace listing, or documentation. Replace `https://mcp.yourproduct.com/mcp` with the user's MCP URL and `your-company` with your partner ID.

```html HTML theme={null}
<a
  href="https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp&referer=your-company"
  target="_blank"
  rel="noopener noreferrer"
  style="
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 9999px;
    background: #25D366;
    color: #062014;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
  "
>
  <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
    <path d="M12.03 2C6.5 2 2.02 6.48 2.02 12c0 1.97.57 3.81 1.56 5.36L2 22l4.78-1.53A9.96 9.96 0 0 0 12.03 22C17.56 22 22 17.52 22 12S17.56 2 12.03 2zm5.79 14.12c-.24.68-1.42 1.3-1.97 1.38-.52.08-1.18.11-1.9-.12-.44-.14-1-.33-1.72-.64-3.02-1.31-5-4.36-5.15-4.56-.15-.2-1.23-1.64-1.23-3.13s.78-2.22 1.06-2.52c.28-.3.61-.38.81-.38.2 0 .41 0 .59.01.19.01.44-.07.69.53.25.6.86 2.1.94 2.25.08.15.13.33.02.53-.1.2-.15.33-.3.51-.15.18-.32.4-.46.54-.15.15-.31.31-.13.61.18.3.79 1.3 1.7 2.11 1.17 1.04 2.15 1.36 2.45 1.51.3.15.48.13.66-.08.18-.2.76-.89.96-1.19.2-.3.4-.25.68-.15.28.1 1.77.84 2.07.99.3.15.5.23.58.35.07.13.07.74-.17 1.42z"/>
  </svg>
  <span>Publish to WhatsApp</span>
</a>
```

```tsx React / Next.js theme={null}
export function PublishToWhatsAppButton({
  mcpUrl,
  referer = "your-company",
}: {
  mcpUrl: string;
  referer?: string;
}) {
  const params = new URLSearchParams({ url: mcpUrl });
  if (referer) params.set("referer", referer);

  return (
    <a
      href={`https://wassist.app/whatsapp-harness?${params.toString()}`}
      target="_blank"
      rel="noopener noreferrer"
      className="inline-flex items-center gap-2.5 rounded-full bg-[#25D366] px-5 py-2.5 text-sm font-bold text-[#062014] shadow-lg shadow-[#25D366]/25 transition hover:bg-[#22c55e]"
    >
      <svg className="h-4 w-4 fill-current" viewBox="0 0 24 24" aria-hidden="true">
        <path d="M12.03 2C6.5 2 2.02 6.48 2.02 12c0 1.97.57 3.81 1.56 5.36L2 22l4.78-1.53A9.96 9.96 0 0 0 12.03 22C17.56 22 22 17.52 22 12S17.56 2 12.03 2zm5.79 14.12c-.24.68-1.42 1.3-1.97 1.38-.52.08-1.18.11-1.9-.12-.44-.14-1-.33-1.72-.64-3.02-1.31-5-4.36-5.15-4.56-.15-.2-1.23-1.64-1.23-3.13s.78-2.22 1.06-2.52c.28-.3.61-.38.81-.38.2 0 .41 0 .59.01.19.01.44-.07.69.53.25.6.86 2.1.94 2.25.08.15.13.33.02.53-.1.2-.15.33-.3.51-.15.18-.32.4-.46.54-.15.15-.31.31-.13.61.18.3.79 1.3 1.7 2.11 1.17 1.04 2.15 1.36 2.45 1.51.3.15.48.13.66-.08.18-.2.76-.89.96-1.19.2-.3.4-.25.68-.15.28.1 1.77.84 2.07.99.3.15.5.23.58.35.07.13.07.74-.17 1.42z" />
      </svg>
      <span>Publish to WhatsApp</span>
    </a>
  );
}
```

```markdown Markdown / README theme={null}
[![Publish to WhatsApp](https://img.shields.io/badge/Publish_to-WhatsApp-25D366?style=for-the-badge&logo=whatsapp&logoColor=white)](https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp&referer=your-company)
```

> [!TIP]
>
> **Dynamic MCP URLs:** If your platform provisions a unique MCP URL per customer or workspace (e.g. `https://mcp.yourplatform.com/t/acme`), pass that tenant URL dynamically into `url=` so each customer's button opens straight into their own WhatsApp preview.

## Partner & referral scheme (`referer=...`)

Building an MCP hosting platform, dev tool, framework, or agency? We offer a **partner referral scheme** for MCP development companies that embed a **Publish to WhatsApp** button.

Append `&referer=<your-partner-id>` to your button URL:

```text theme={null}
https://wassist.app/whatsapp-harness?url=https://mcp.yourproduct.com/mcp&referer=acme-mcp
```

When a user arrives with your `referer` tag:

* **End-to-end attribution:** We persist your `referer` identifier through preview generation, OAuth flows, and account signup so every conversion is tracked back to you.
* **Revenue share & partner perks:** We can set up a custom referral commission, co-marketing, or dedicated onboarding for your customers.
* **Zero maintenance:** Standard deep link — no webhooks or partner SDKs required to get started.

> [card] [Set up a referral partner ID](https://wassist.app/talk)
>
> Book a quick call to register your `referer=` partner code and activate revenue sharing.

> [card] [Email partnerships](mailto:contact@wassist.app?subject=Publish%20to%20WhatsApp%20Partner%20Referral)
>
> Send us your preferred `referer` slug and we will enable tracking on your account.

## Server requirements

To work smoothly with the **Publish to WhatsApp** button, your MCP server should meet these guidelines:

* **Transport:** [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) over HTTPS. Legacy `/sse`-only endpoints are not supported.
* **Public reachability:** Reachable over the public internet (private/loopback addresses are blocked).
* **Authentication:** Public (no auth) or standard MCP OAuth 2.1 with PKCE and Protected Resource Metadata (RFC 9728) — Wassist supports both Dynamic Client Registration (DCR) and Client ID Metadata Documents (CIMD).
* **Clear tool descriptions:** Concise tool names and JSON input schemas help Wassist generate more accurate simulated conversations and agent instructions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.