Skip to main content

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 with serverUrl instead of url.
Quick install: Run npx @codealive/installer to automatically configure CodeAlive for Windsurf. See the Installation Guide for details.

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:
~/.codeium/windsurf/mcp_config.json
Create the file if it doesn’t exist.
2

Add CodeAlive Server

Replace 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
"Find all API endpoints in the user service"
"Explain how the payment flow works"
"Show me error handling patterns"

Troubleshooting

  1. Verify you’re using serverUrl (not url) in the config
  2. Check that the config file is at ~/.codeium/windsurf/mcp_config.json
  3. Ensure the type is streamable-http
  4. Restart Windsurf completely
  1. Verify your API key is correct
  2. Ensure the Authorization header includes Bearer prefix
  3. Try regenerating your API key in the dashboard
For more solutions, see the Troubleshooting Guide.