Skip to main content

Overview

Integrate CodeAlive with Claude Desktop to enhance your AI assistant with deep understanding of your entire codebase. This integration uses the Model Context Protocol (MCP) to provide Claude Desktop with semantic search and code intelligence capabilities.
Quick install: Run npx @codealive/installer to automatically configure CodeAlive for this agent. See the Installation Guide for details.

Prerequisites

Installation Methods

Verification

Test the integration by asking Claude:

Usage Examples

Advanced Configuration

Multiple API Keys

Use separate servers for different teams or environments:

Windows & WSL

Claude Desktop on Windows cannot connect to MCP servers running inside WSL directly. Use one of these approaches instead.

Troubleshooting

Solutions:
  1. Verify JSON syntax in configuration file
  2. Ensure Claude Desktop was fully restarted (Cmd+Q/Alt+F4)
  3. Check API key is valid and active
  4. Look for errors in Claude Desktop logs
Solutions:
  1. Verify repositories are indexed in dashboard
  2. Wait for indexing to complete (5-15 minutes)
  3. Check API key has repository access
  4. Test API key with curl command
Solutions:
  1. Check network connectivity
  2. Verify firewall allows outbound HTTPS
  3. Try Docker deployment for local access
  4. Check CodeAlive service status
Solutions:
  1. Ensure Docker is running
  2. Check port 8000 is not in use
  3. Verify environment variables are set
  4. Review container logs for errors
For more solutions, see the Troubleshooting Guide.

Best Practices

Security

Store API keys securely, use environment variables

Performance

Use Docker for faster local responses

Organization

Use separate configs for different projects

Updates

Keep repositories indexed regularly

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 prefer semantic_search and grep_search when exploring indexed code. See Instructing Coding Agents.