MCP setup · Windsurf

Add Repage to Windsurf

Add Repage as a remote MCP server in Windsurf so Cascade can publish HTML documents and share links without you leaving the editor.

Option A — Settings UI

  1. Open Windsurf SettingsCascade MCP Servers.
  2. Click Add server and choose Remote (HTTP/SSE).
  3. Paste the server URL:
    https://www.repage.app/api/mcp
    Give it the name repage.
  4. A browser tab opens for the Google sign-in. Authorise and return to Windsurf — the server will show as connected.

Option B — config file

Edit (or create) ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "repage": {
      "serverUrl": "https://www.repage.app/api/mcp"
    }
  }
}

Restart Windsurf after saving the file.

Using an API key instead of OAuth

Create an API key on your Repage dashboard and add it to the config:

{
  "mcpServers": {
    "repage": {
      "serverUrl": "https://www.repage.app/api/mcp",
      "headers": {
        "Authorization": "Bearer rpg_your_key_here"
      }
    }
  }
}

Using Repage from Windsurf

Open Cascade and describe what you want. Make sure Cascade is in Write or Agent mode so it can call tools:

Generate an HTML technical spec for this feature and publish it to Repage

Fetch my Repage document abc123 and update the data table with the latest numbers

Windsurf's Cascade will call the appropriate Repage tools and include the shareable URL in its response.

All set — try it in Cascade

Ask Windsurf to generate a report and publish it to Repage.

Publish a document