For the complete documentation index, see llms.txt. This page is also available as Markdown.

Build with AI

Use AI agents to create, configure, and verify GrowSurf referral and affiliate programs.

MCP

GrowSurf's MCP server lets an AI agent work directly with your GrowSurf programs. It can create a referral or affiliate program, tune the design, inspect email/options defaults, configure rewards, wire webhooks, manage participants, and read analytics.

What an agent can do

Create entire referral/affiliate programs with a one-shot prompt:

Create a GrowSurf referral program for Acme, keep rewards disabled until I approve them, then summarize the Design, Emails, Options, Installation, and Rewards settings.

New to GrowSurf? OAuth connector clients (ChatGPT, Claude, and other sign-in flows) connect to an existing team, so sign up first if you do not have a GrowSurf account. An agent can also sign up for you: connect it to the onboarding endpoint https://mcp.growsurf.com/onboard with no credentials (or use the local server or API-key setup) and have it call growsurf_create_account. The returned API key is locked until the team owner's email address is verified. After the owner clicks the verification link, the agent continues with the same API key.


Connect the MCP server

You need one of these:

  • A GrowSurf account (sign up here or programmatically via /POST Create Account).

  • A GrowSurf API key for local setup or remote clients that do not support GrowSurf sign-in.

  • Optional: a default campaign id. You can skip this if your agent will create a new campaign first, then pass the returned id as campaignId.

Add GrowSurf as a developer-mode app (custom connector) in ChatGPT on the web.

  1. Open Settings > Connectors > Advanced and turn on Developer mode. Enterprise workspaces need an admin to allow it.

  2. In the Connectors tab, select Create, name the app GrowSurf, and set authentication to OAuth.

  3. Use this MCP server URL:

    https://mcp.growsurf.com/mcp
  4. Optional: add the GrowSurf logo.

  5. Finish the OAuth flow, then start a new chat, choose Developer mode from the + menu, and enable GrowSurf.

ChatGPT registers its own OAuth client automatically, so you do not paste an API key.

Hosted Streamable HTTP endpoint

Use hosted OAuth when your MCP client supports remote Streamable HTTP with OAuth:

  • URL: https://mcp.growsurf.com

  • Auth: GrowSurf sign-in and consent.

  • API keys: not required for OAuth clients.

Use this option if your MCP client asks for a URL and custom headers instead of opening GrowSurf sign-in:

  • URL: https://mcp.growsurf.com/mcp

  • Required header for API-calling tools: Authorization: Bearer YOUR_API_KEY

  • Optional header for a default campaign: x-growsurf-campaign-id: YOUR_CAMPAIGN_ID

The local server and manual fallback can use the account-bootstrap tool without an API key. OAuth clients use the GrowSurf team you select and approve. Campaign-scoped tools need either a campaignId argument or a default campaign header/environment value.

Hosted OAuth connector

GrowSurf's hosted MCP endpoint supports OAuth for ChatGPT, Claude.ai, Claude Desktop, Claude Code, GitHub Copilot, Cursor, Codex, Gemini CLI, Windsurf, Cline, Antigravity, and other compatible remote MCP clients. Browser-only clients must support custom remote MCP/OAuth connectors; if yours does not, use a supported coding agent or the local stdio setup.

What access you approve

When you sign in through the hosted connector, GrowSurf asks you to approve access before the agent can do anything. The agent can then, on your behalf:

  • Read and update the selected team.

  • Read, create, and update programs; create, update, or delete their reward configuration and webhooks.

  • Read, add, update, and remove participants.

  • Record or refund sales and approve commissions or rewards.

  • Read analytics.

The hosted MCP server asks only for scopes used by its current tools. It does not request permission to rotate API keys, delete programs, read detailed reward, commission, or payout records, delete issued rewards, or fulfill rewards. API-key rotation is not an MCP action. Rotate a key from GrowSurf Settings or through a direct REST/SDK client whose API key has the api_key:rotate scope.

MCP Team tools stay on the team selected during approval.

You can review or revoke a connected client at any time from your GrowSurf account settings.


Example prompts

After you have the MCP installed, view these example prompts for quickly creating a GrowSurf program.

Referral programs

Ask your agent to use the GrowSurf MCP tools:

The agent should use this order:

  1. growsurf_create_campaign with type: "REFERRAL".

  2. growsurf_get_campaign, growsurf_list_campaign_rewards, growsurf_get_campaign_design, growsurf_get_campaign_emails, growsurf_get_campaign_options, and growsurf_get_campaign_installation.

  3. Patch only requested changes with the growsurf_update_campaign_* tools.

  4. Fetch the updated campaign, Design, Emails, Options, Installation, and Rewards before reporting back.

Affiliate programs

Affiliate programs can create payable obligations, so have the agent confirm payout and tax settings before launch:

The agent should inspect:

  • growsurf_list_campaign_rewards for commission/reward config.

  • growsurf_get_campaign_options for approval, payout, and tax settings.

  • growsurf_get_campaign_design for affiliate portal sections such as commissions, payouts, affiliate summary, and participant settings.

  • growsurf_get_campaign_design, growsurf_get_campaign_emails, and growsurf_get_campaign_options for configuration review.


Agent Skills

GrowSurf also ships an Agent Skill recipe layer with the MCP package. If your agent supports skills, install or copy the growsurf-agent-toolkit skill from the MCP package. It gives the agent a stricter workflow for:

  • Creating referral programs.

  • Creating affiliate programs.

  • Embedding the widget.

  • Adjusting rewards.

  • Wiring webhooks.

  • Reading analytics.

MCP prompts are also bundled in the server, so compatible MCP clients can discover the same recipes without a separate skill install.


Resources

Last updated

Was this helpful?