# Windsurf

Windsurf manages MCP servers from the Cascade panel. Add the Cakewalk gateway through the in-app UI or by editing the underlying `mcp_config.json` file.

## Install Method

Custom form in Windsurf settings. The form writes to `~/.codeium/windsurf/mcp_config.json`. You can also edit that file directly.

## Step 1: Open MCP Settings

Pick one entry point:

* In the Cascade panel, click the **MCPs** icon in the top right menu.
* Open **Windsurf Settings**, then **Cascade**, then **MCP Servers**.

{% hint style="info" %}
On the Enterprise plan, an admin needs to enable MCP servers in Windsurf settings before this option appears. Other plans have it on by default.
{% endhint %}

## Step 2: Add the Cakewalk Gateway

Add a new server entry with:

* **Server URL:** `https://mcp-gateway.getcakewalk.io/mcp`
* **Name:** Cakewalk

Save.

## Step 3: Authenticate

On first use of a Cakewalk tool, Windsurf should open the OAuth flow in your browser. Sign in with your Cakewalk account and approve the Connection. If the flow does not start automatically, re-open the Cascade MCP panel and trigger a tool call.

## Verifying It Works

In the Cascade MCP panel, the cakewalk entry appears with its connection status. In Cakewalk, the Windsurf card on **My Agents** flips to **Connected** after the first agent call.

## Other Install Paths

You can skip the UI and edit `~/.codeium/windsurf/mcp_config.json` directly. The shape for a remote HTTP server is:

```json
{
  "mcpServers": {
    "cakewalk": {
      "serverUrl": "https://mcp-gateway.getcakewalk.io/mcp"
    }
  }
}
```

Note the field name is `serverUrl`, not `url`. Optional `headers` can carry custom tokens; Cakewalk's gateway uses OAuth, so headers are not required.

## Troubleshooting

* **Add Server form is missing (Enterprise):** an admin needs to enable MCP in Windsurf settings first. Other plans have it on by default.
* **Server stays disconnected:** confirm the JSON parses cleanly if you edited the file directly. The `serverUrl` field name is required; `url` will not load.

## Learn more

* [Model Context Protocol in Windsurf Cascade](https://docs.windsurf.com/windsurf/cascade/mcp) from Codeium.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.cakewalk.security/docs/ai-agent-access/connections-and-integrations/agent-platforms/windsurf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
