Overview
Connect CodeAlive with Windsurf (by Codeium) to enhance your AI coding assistant with deep contextual understanding of your entire codebase. Windsurf uses a unique MCP configuration withserverUrl instead of url.
Prerequisites
- Windsurf installed (windsurf.com)
- CodeAlive account with API key (Sign up here)
- Indexed repositories in your CodeAlive dashboard
Setup
1
Locate Config File
Windsurf reads MCP configuration from:Create the file if it doesn’t exist.
2
Add CodeAlive Server
- Remote HTTP (Recommended)
- Docker (STDIO)
Add this to
~/.codeium/windsurf/mcp_config.json:YOUR_API_KEY_HERE with your actual CodeAlive API key.3
Restart Windsurf
Close and reopen Windsurf to load the new MCP configuration.
4
Verify Integration
In Windsurf’s AI chat, try:
- “What repositories are available in CodeAlive?”
- “Search for authentication code in my codebase”
Usage
Once connected, Windsurf’s AI assistant can:- Search your codebase semantically across all indexed repositories
- Answer architecture questions with full project context
- Find patterns and implementations across multiple services
Troubleshooting
MCP server not connecting
MCP server not connecting
- Verify you’re using
serverUrl(noturl) in the config - Check that the config file is at
~/.codeium/windsurf/mcp_config.json - Ensure the
typeisstreamable-http - Restart Windsurf completely
Authentication errors
Authentication errors
- Verify your API key is correct
- Ensure the
Authorizationheader includesBearerprefix - Try regenerating your API key in the dashboard
Related Resources
Instruct Your Agent
Connecting CodeAlive makes its tools available, but the agent may still default to its built-in search. For reliable results, add a short instruction in the agent’s native format telling it to prefersemantic_search and grep_search when exploring indexed code. See Instructing Coding Agents.