Skip to main content
Windsurf (by Codeium) supports MCP servers via a JSON config file. Register Perfai globally so it’s available across all workspaces, or add it per-project.
No credentials are required in the config. Calling login opens a browser to Perfai’s own sign-in page (OAuth) and completes automatically — see Login below.

Global installation

File: ~/.codeium/windsurf/mcp_config.json
Create the file if it doesn’t exist:

Project-scoped installation

Add .windsurf/mcp.json to your project root:
Prefer not to use the browser login (headless machines, CI)? Create a Perfai API key and add "env": { "PERFAI_API_KEY": "pfk_xxxxxxxxxxxx_..." } to the perfai-cloud-mcp entry. If you do, don’t commit .windsurf/mcp.json — add it to .gitignore, or keep the key in the global config instead.

Enable the server in Windsurf

After saving the config:
  1. Open Windsurf Settings → MCP Servers.
  2. Confirm perfai-cloud-mcp appears and shows a connected status.
  3. If it shows as disconnected, click Restart.
Alternatively, use the Windsurf command palette and search for “MCP: Refresh Servers”.

Login

The prompts below run inside the Windsurf Cascade chat, not your terminal. The only terminal/file steps are creating the config file.
In the Windsurf AI panel (Cascade), type:
This opens a browser to Perfai’s sign-in page (or uses PERFAI_API_KEY if you set it). Confirm with:

Register an app and run a scan


Fix and verify

One at a time:
All at once, prioritized by severity:
Then confirm the fixes landed: