# Windsurf

> Add the Stableship MCP server to Windsurf (now Devin Desktop) with a token.

Windsurf, now Devin Desktop, connects to the Stableship MCP server with a token, and reads `AGENTS.md` from your repository. Once it is connected, ask Cascade to fix what Stableship found; it reads each fix brief, fixes the code and asks Stableship to verify the fix.

> **Note** We have not yet tested Windsurf with Stableship end to end. It connects over MCP with the steps below, taken from Windsurf's own docs. If a step does not match what you see, tell us at support@stableship.ai.

## Connect

First make a token: in Stableship open **Settings**, then **Connections**, open **API tokens and connected apps**, and choose **Create token** with **Read findings and rules** and **Start checks and verify fixes**. Copy it: it starts with `sst_` and is shown once. Use it where these steps say `sst_your_token`.

In Windsurf (now Devin Desktop): Cascade, the … menu, MCPs, Open MCP config file. Add this:

`mcp_config.json`:

```
{
  "mcpServers": {
    "stableship": {
      "serverUrl": "https://api.stableship.ai/mcp",
      "headers": {
        "Authorization": "Bearer sst_your_token"
      }
    }
  }
}
```

Keep the token out of your repository.

## Check it works

In Cascade's MCPs list, turn Stableship on. Then ask Windsurf to list your Stableship projects: it calls `list_projects` and names your app.

If it does not connect:

- Check the token was pasted whole.
- Restart the app, then open a new Cascade chat.

## Keep the rules in your repository

Ask Cascade to call `get_repo_files` and commit what it returns: `.gate/rules.md`, `.gate/context.md`, and a Stableship section in `AGENTS.md` that tells every chat how to use the rules and the tools. Stableship never writes to your repository, so your agent commits these.
