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

  • Claude Desktop installed (requires Claude Pro or Team subscription)
  • CodeAlive account with API key (Sign up here)
  • Indexed repositories in your CodeAlive dashboard

Installation Methods

Important: CodeAlive MCP server doesn’t support OAuth authentication required by Claude Desktop’s remote MCP feature. You must use local configuration with API key or Docker.

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 Workspaces

{
  "mcpServers": {
    "codealive-production": {
      "type": "http",
      "url": "https://mcp.codealive.ai/api/",
      "headers": {
        "Authorization": "Bearer PROD_API_KEY"
      }
    },
    "codealive-development": {
      "type": "http",
      "url": "https://mcp.codealive.ai/api/",
      "headers": {
        "Authorization": "Bearer DEV_API_KEY"
      }
    }
  }
}

Proxy Configuration

For corporate networks:
{
  "mcpServers": {
    "codealive": {
      "type": "http",
      "url": "https://mcp.codealive.ai/api/",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY",
        "Proxy-Authorization": "Basic PROXY_AUTH"
      },
      "proxy": "http://proxy.company.com:8080"
    }
  }
}

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