Skip to content

Windsurf IDE Integration ​

Configure GitLab MCP for Windsurf.

Auto-Setup ​

bash
npx @structured-world/gitlab-mcp install --windsurf

Detection ​

MethodDetails
TypeConfig directory
Path~/.codeium/windsurf/
Auto-detectedYes (when config directory exists)

Config File Location ​

OSPath
macOS~/.codeium/windsurf/mcp_config.json
Windows%USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux~/.codeium/windsurf/mcp_config.json

Configuration ​

Add to your mcp_config.json:

json
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@structured-world/gitlab-mcp"],
      "env": {
        "GITLAB_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx",
        "GITLAB_API_URL": "https://gitlab.com"
      }
    }
  }
}

Remote Server ​

Connect to a running GitLab MCP HTTP server:

json
{
  "mcpServers": {
    "gitlab": {
      "serverUrl": "http://localhost:3333/mcp"
    }
  }
}

Windsurf uses serverUrl for remote MCP endpoints. Open its MCP configuration from Cascade to confirm the active file for your installed version.

Verification ​

  1. Open Windsurf
  2. Start a new AI chat session
  3. GitLab tools should be available in the tools list

Troubleshooting ​

  • Server not loading: Restart Windsurf after config changes
  • Config directory missing: Create ~/.codeium/windsurf/ if it doesn't exist
  • Invalid JSON: Validate your config file has no syntax errors

See Also ​

Released under the Apache 2.0 License.