# Connect Aroai to Windsurf

Configure Cascade in Windsurf via mcp_config.json to access verified New Zealand and Australian business records.

Canonical: https://aroai.com/integrations/windsurf/

## At a glance

- **macOS / Linux path**: ~/.codeium/windsurf/mcp_config.json
- **Windows path**: %APPDATA%\codeium\windsurf\mcp_config.json
- **Remote URL key**: Use "serverUrl" (Windsurf remote HTTP property; do not use "url")

## Setup configurations

### Option A: Remote server via OAuth (mcp_config.json)

Use serverUrl cleanly without static headers when authenticating interactively.

```text
{
  "mcpServers": {
    "aroai": {
      "serverUrl": "https://mcp.aroai.com/v1"
    }
  }
}
```

### Option B: Workspace API key header (mcp_config.json)

Interpolate AROAI_API_KEY from your shell environment using ${env:AROAI_API_KEY}.

```text
{
  "mcpServers": {
    "aroai": {
      "serverUrl": "https://mcp.aroai.com/v1",
      "headers": {
        "Authorization": "Bearer ${env:AROAI_API_KEY}"
      }
    }
  }
}
```

## What happens once connected

- Cascade picks up Aroai inside its MCP tool shelf so coding workflows can verify NZ/AU compliance dates, tax brackets and award figures inline.

## Prompts to try

- **Verify in Cascade**: "Check aroai_status using the connected Aroai MCP server."

## Troubleshooting

### Windsurf ignores the entry or reports a connection error.

Verify the property is named "serverUrl" (not "url") and that AROAI_API_KEY is exported in your login environment if using Option B headers before clicking Refresh.
