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:
"What CodeAlive repositories are available?"
"Search for authentication code in my codebase"
"Explain the main architecture of my project"

Usage Examples

You: "Review the recent changes in the user service for security issues"

Claude: [Searches for user service code]
        [Analyzes security patterns]
        [Provides specific recommendations]

Advanced Configuration

Multiple API Keys

Use separate servers for different teams or environments:
{
  "mcpServers": {
    "codealive-production": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=PROD_API_KEY",
        "ghcr.io/codealive-ai/codealive-mcp:v0.3.0"
      ]
    },
    "codealive-development": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=DEV_API_KEY",
        "ghcr.io/codealive-ai/codealive-mcp:v0.3.0"
      ]
    }
  }
}

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