# Windsurf

Configure the Data MCP server for Cascade in Windsurf.

> **Note:** Windsurf's MCP documentation now redirects to Devin Desktop and describes the legacy Cascade agent. The configuration below follows that documentation. On Enterprise plans, an admin must enable MCP first.

## Configuration file

Cascade reads `~/.config/devin/mcp_config.json` (or `$XDG_CONFIG_HOME/devin/mcp_config.json`; on Windows `%APPDATA%\devin\mcp_config.json`). Older Windsurf versions used `~/.codeium/windsurf/mcp_config.json`; if your version still does, use that file with the same content.

## Connect with an API key

```json
{
  "mcpServers": {
    "autouncle-data": {
      "serverUrl": "https://data-services.autouncle.com/mcp",
      "headers": { "Authorization": "Bearer ${env:AUTOUNCLE_API_KEY}" }
    }
  }
}
```

`${env:AUTOUNCLE_API_KEY}` is replaced with the environment variable when Cascade starts the server; an unset variable becomes empty and the server answers `401`. `${file:/path/to/file}` reads a value from a file instead.

## Connect with OAuth

Leave out `headers`. The documentation states that OAuth is supported for remote servers; Cascade discovers AutoUncle's authorization server from the `401` response, and AutoUncle accepts dynamic client registration. Sign in, choose the organization and approve the scopes. OAuth valuations are **live**. Check the Devin Desktop documentation for how your version starts the sign-in.

## Verify the connection

Refresh the MCP servers in Cascade's settings, check that four `autouncle-data` tools appear, and ask:

> Call get_account on autouncle-data and tell me the key mode and remaining credits.

## Troubleshooting

| Symptom | Fix |
| --- | --- |
| `401 invalid_api_key` | `AUTOUNCLE_API_KEY` is not set in the environment the editor started from. |
| No tools | Check the JSON and that MCP is enabled for your plan. |
| Results are live | You are using OAuth or a live key. Use a test key for free results. |

Sources: [Windsurf Cascade MCP](https://docs.windsurf.com/windsurf/cascade/mcp), [Devin Desktop Cascade MCP](https://docs.devin.ai/desktop/cascade/mcp).
