Scrubby
Integration

Scrubby + Windsurf

Windsurf (formerly Codeium) ships its agentic IDE around the Cascade agent, with full Model Context Protocol support. Wire Scrubby into Cascade and the agent picks up your repo's architectural domains, conventions, and co-change patterns automatically — the same way it would discover any other MCP tool.

What you get

Setup

1. Add the MCP server

Open Windsurf's MCP config file at:

Create the file if it doesn't exist (Windsurf doesn't create one on first launch). Add the Scrubby entry:

{
  "mcpServers": {
    "scrubby": {
      "serverUrl": "https://mcp.scrubby.ai/mcp"
    }
  }
}

You can also add Scrubby through Windsurf Settings › Cascade › MCP Servers, which writes to the same file.

2. Reload Cascade

Cascade picks up new MCP servers on the next chat session. Either start a new conversation or restart Windsurf.

3. Authenticate

The first time Cascade calls a Scrubby tool, you'll be prompted to authenticate via GitHub OAuth. Sign in with the GitHub account you used for Scrubby.

4. Index your repository

Ask Cascade to index:

"Index this repo with Scrubby — it's owner/repo-name."

Indexing takes 1–3 minutes. After that it stays current incrementally.

Tools available to Cascade

ToolPurpose
scrubby_indexIndex a repository for the first time, or re-index after major changes
scrubby_reviewGet domain, conventions, connected files, and git history for a specific file
scrubby_review_changesetCheck changed files for missing co-changes and convention violations
scrubby_get_domainsList all architectural domains discovered in the repository
scrubby_get_segmentsList code segments with their conventions and file summaries
scrubby_get_networkGet the domain connection graph showing how areas of the codebase relate
scrubby_get_findingsRetrieve findings from previous reviews
scrubby_report_findingsReport findings so Scrubby can refine its connection weights

Notes for Windsurf specifically

Cascade picks tools opportunistically

Cascade reads the MCP tool descriptions Scrubby publishes and decides when to call them. You don't need to prompt for specific tools, but you can nudge it: "Run scrubby_review on this file before editing it."

Streamable HTTP transport

Windsurf supports stdio and Streamable HTTP transports for MCP servers. Scrubby uses HTTP, which means no local process to install — Cascade just connects to scrubby.ai.

One config file, every project

The Windsurf MCP config is global, not per-project. Add Scrubby once and Cascade has access to it across every repo you open. Indexing happens per-repo, so each project still needs its own initial scrubby_index call.

Troubleshooting

Give Cascade real codebase context.

Join the Scrubby beta Read the setup docs →