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

# Windsurf

> Connect TryPost to Windsurf for AI-powered social media management with Cascade

[Windsurf](https://windsurf.com) is an AI-powered editor with Cascade, a deep context-aware AI assistant. You can connect it to TryPost's MCP server to manage your social media scheduling.

## Prerequisites

* Windsurf editor installed
* A TryPost Cloud account with an active trial or subscription ([start a 7-day free trial](/knowledge-base/plans-and-billing))

## Setup

<Steps>
  <Step title="Open the MCP configuration file">
    Edit `~/.codeium/windsurf/mcp_config.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "trypost": {
          "serverUrl": "https://app.trypost.it/mcp/trypost"
        }
      }
    }
    ```

    No `Authorization` header — Windsurf discovers OAuth from the URL.
  </Step>

  <Step title="Reload Windsurf">
    Reload the window so Windsurf picks up the new configuration.
  </Step>

  <Step title="Sign in through your browser">
    The first time Cascade calls a TryPost tool, Windsurf opens a browser window for the TryPost sign-in. Approve the request and Cascade continues automatically.
  </Step>

  <Step title="Verify the connection">
    Open Cascade and ask:

    ```
    List all my TryPost posts
    ```
  </Step>
</Steps>

<Accordion title="Bearer token fallback">
  If your environment blocks the OAuth callback, use a Personal Access Token instead:

  ```json theme={null}
  {
    "mcpServers": {
      "trypost": {
        "serverUrl": "https://app.trypost.it/mcp/trypost",
        "headers": {
          "Authorization": "Bearer YOUR_API_KEY"
        }
      }
    }
  }
  ```

  Create the key from **Settings > API Keys** on the [TryPost dashboard](https://app.trypost.it).
</Accordion>

## Example prompts

Use Cascade to interact with TryPost:

```
Create a signature called "Product Launch" with #launch #newproduct #announcement
```

```
Show me all my connected social accounts
```

```
Create a label called "Blog" with color #3b82f6
```
