How to connect the Context Pruner MCP Tool to Windsurf
Intelligently ranks and filters file relevance against your active task using keyword overlap. This guide provides the exact configuration required to load the context_pruner tool inside Windsurf.
Step 1: Open the configuration file
Locate and open your Windsurf configuration file at the following path:
macOS / Linux
~/.codeium/windsurf/mcp_config.jsonWindows
%USERPROFILE%\.codeium\windsurf\mcp_config.jsonStep 2: Add the server config
Copy and paste the following JSON snippet into the file. Save the file and restart Windsurf.
mcp_config.json
{
"mcpServers": {
"agenticstore": {
"command": "uvx",
"args": ["agentic-store-mcp", "--tools", "context_pruner"]
}
}
}Step 3: Try it out
Once restarted, ask Windsurf something like this to trigger the tool:
"Prune my current file list to only show things relevant to database migrations."