Labsco
CodeAlive-AI logo

CodeAlive MCP

β˜… 82

from CodeAlive-AI

Provides semantic code search and codebase interaction features via the CodeAlive API.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

CodeAlive MCP: Deepest Context Engine for your projects (especially for large codebases)

<!-- MCP Server Name: io.github.codealive-ai.codealive-mcp -->

CodeAlive Logo

Connect your AI assistant to CodeAlive's powerful code understanding platform in seconds!

This MCP (Model Context Protocol) server enables AI clients like Claude Code, Cursor, Claude Desktop, Continue, VS Code (GitHub Copilot), Cline, Codex, OpenCode, Qwen Code, Gemini CLI, Roo Code, Goose, Kilo Code, Windsurf, Kiro, Qoder, n8n, and Amazon Q Developer to access CodeAlive's advanced semantic code search and codebase interaction features.

What is CodeAlive?

CodeAlive is a Context Engine for large codebases, powered by graph-based retrieval and exposed through MCP. It gives AI agents like Cursor, Claude Code, Codex, and other MCP-compatible tools precise repository context instead of forcing them to read files blindly. In our RepoQA benchmark, CodeAlive + Qwen3.6 deep reached frontier-agent quality at ~25x lower model cost, and semantic search reduced captured tokens by 45%.

It's like Context7, but for your (large) codebases.

It allows AI-Coding Agents to:

  • Find relevant code faster with semantic search
  • Understand the bigger picture beyond isolated files
  • Provide better answers with full project context
  • Reduce costs and time by removing guesswork

πŸ›  Available Tools

Once connected, you'll have access to these powerful tools:

  1. get_data_sources - List your indexed repositories and workspaces
  2. semantic_search - Canonical semantic search across indexed artifacts
  3. grep_search - Exact literal or regex text search inside file content, plus literal file-name/path matching (returns files like Form.xml even when their content never mentions the name), with line-level previews for content matches
  4. fetch_artifacts - Load the full source for relevant search hits (missing or inaccessible identifiers are reported back in a <not_found> block, not silently dropped)
  5. get_artifact_relationships - Expand call graph, inheritance, and reference relationships for one artifact
  6. chat - Slower synthesized codebase Q&A, typically only after search
  7. codebase_search - Deprecated legacy semantic search alias kept for backward compatibility
  8. codebase_consultant - Deprecated alias for chat

πŸ“š Agent Skill

For an even better experience, install the CodeAlive Agent Skill alongside the MCP server. The MCP server gives your agent access to CodeAlive's tools; the skill teaches it the best workflows and query patterns to use them effectively.

For most agents (Cursor, Copilot, Gemini CLI, Codex, and 30+ others) β€” install the skill:

npx skills add CodeAlive-AI/codealive-skills@codealive-context-engine

For Claude Code β€” install the plugin (recommended), which includes the skill plus Claude-specific enhancements:

/plugin marketplace add CodeAlive-AI/codealive-skills
/plugin install codealive@codealive-marketplace

Table of Contents

πŸ€– AI Client Integrations

<details> <summary><b>Claude Code</b></summary>

Option 1: Remote HTTP (Recommended)

claude mcp add --transport http codealive https://mcp.codealive.ai/api --header "Authorization: Bearer YOUR_API_KEY_HERE"

Option 2: Docker (STDIO)

claude mcp add codealive-docker /usr/bin/docker run --rm -i -e CODEALIVE_API_KEY=YOUR_API_KEY_HERE ghcr.io/codealive-ai/codealive-mcp:main

Replace YOUR_API_KEY_HERE with your actual API key.

</details> <details> <summary><b>Cursor</b></summary>

Option 1: Remote HTTP (Recommended)

  1. Open Cursor β†’ Settings (Cmd+, or Ctrl+,)
  2. Navigate to "Tools & MCP" in the left panel (older builds called this "Tools & Integrations")
  3. Click "New MCP Server"
  4. Paste this configuration:
{
  "mcpServers": {
    "codealive": {
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}
  1. Save β€” Cursor reloads the server automatically. The entry is stored in .cursor/mcp.json (project) or ~/.cursor/mcp.json (global).

Tip: Cursor also supports a one-click install deeplink β€” cursor://anysphere.cursor-deeplink/mcp/install?name=codealive&config=BASE64_CONFIG. Only follow deeplinks from trusted sources.

Option 2: Docker (STDIO)

{
  "mcpServers": {
    "codealive": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
</details> <details> <summary><b>Codex (CLI, App, IDE Extension)</b></summary>

OpenAI Codex ships in three form-factors that share the same configuration: the Codex CLI, the Codex App (macOS / Windows), and the Codex IDE Extension (VS Code openai.chatgpt and JetBrains 2025.3+). All three read ~/.codex/config.toml, so one snippet covers every Codex surface. A project-level .codex/config.toml in the repo root is also supported for trusted projects.

Option 1: One-line add (Recommended)

codex mcp add codealive --url https://mcp.codealive.ai/api

Then open ~/.codex/config.toml and add the bearer-token reference plus the Streamable HTTP feature flag:

[features]
rmcp_client = true

[mcp_servers.codealive]
url = "https://mcp.codealive.ai/api"
bearer_token_env_var = "CODEALIVE_API_KEY"

Finally, export the key:

export CODEALIVE_API_KEY="YOUR_API_KEY_HERE"

Verify with codex mcp list.

Note: Streamable HTTP requires [features].rmcp_client = true. The old top-level experimental_use_rmcp_client = true flag is deprecated. bearer_token_env_var is preferred over inline headers = { Authorization = "Bearer …" } because it keeps secrets out of the config file.

Option 2: Inline header (HTTP)

[features]
rmcp_client = true

[mcp_servers.codealive]
url = "https://mcp.codealive.ai/api"
headers = { Authorization = "Bearer YOUR_API_KEY_HERE" }

Option 3: Docker (STDIO)

[mcp_servers.codealive]
command = "docker"
args = ["run", "--rm", "-i", "ghcr.io/codealive-ai/codealive-mcp:main"]
env_vars = ["CODEALIVE_API_KEY"]
export CODEALIVE_API_KEY="YOUR_API_KEY_HERE"

No [features] flag is needed for stdio. env_vars forwards values from the parent shell β€” safer than embedding the key in args.

Codex App UI: Settings β†’ MCP Servers β†’ Add Server. The UI writes the same ~/.codex/config.toml entry. The CLI and IDE extension pick it up automatically.

</details> <details> <summary><b>Gemini CLI</b></summary>

One command setup (complete):

gemini mcp add --transport http secure-http https://mcp.codealive.ai/api --header "Authorization: Bearer YOUR_API_KEY_HERE"

Replace YOUR_API_KEY_HERE with your actual API key. That's it - no config files needed! πŸŽ‰

</details> <details> <summary><b>Continue</b></summary>

Option 1: Remote HTTP (Recommended)

  1. Create/edit .continue/config.yaml in your project or ~/.continue/config.yaml
  2. Add this configuration:
mcpServers:
  - name: CodeAlive
    type: streamable-http
    url: https://mcp.codealive.ai/api
    requestOptions:
      headers:
        Authorization: "Bearer YOUR_API_KEY_HERE"
  1. Restart VS Code

Option 2: Docker (STDIO)

mcpServers:
  - name: CodeAlive
    type: stdio
    command: docker
    args:
      - run
      - --rm
      - -i
      - -e
      - CODEALIVE_API_KEY=YOUR_API_KEY_HERE
      - ghcr.io/codealive-ai/codealive-mcp:main
</details> <details> <summary><b>Visual Studio Code with GitHub Copilot</b></summary>

Option 1: Remote HTTP (Recommended)

Note: VS Code supports both Streamable HTTP and SSE transports, with automatic fallback to SSE if Streamable HTTP fails.

  1. Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Run "MCP: Add Server"
  3. Choose "HTTP" server type
  4. Enter this configuration:
{
  "servers": {
    "codealive": {
      "type": "http",
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}
  1. Restart VS Code

Option 2: Docker (STDIO)

Create .vscode/mcp.json in your workspace:

{
  "servers": {
    "codealive": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
</details> <details> <summary><b>Claude Desktop</b></summary>

Option 1: Extension bundle .mcpb (Recommended)

The .mcpb bundle gives you one-click install, secure token storage, and self-hosted baseUrl configuration β€” no Docker or CLI required.

  1. Download codealive-mcp.mcpb from the latest GitHub Release
  2. In Claude Desktop, open Settings β†’ Extensions β†’ Install Extension...
  3. Select the downloaded .mcpb file and configure:
    • CodeAlive API Key: your bearer token
    • CodeAlive Base URL: defaults to https://app.codealive.ai; for self-hosted, use your deployment origin (e.g. https://codealive.yourcompany.com)
    • Ignore TLS Errors: only for dev/self-signed environments

Option 2: Docker (STDIO)

  1. Edit your config file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add this configuration:

{
  "mcpServers": {
    "codealive": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
  1. Restart Claude Desktop
</details> <details> <summary><b>Cline</b></summary>

Option 1: Remote HTTP (Recommended)

  1. Open Cline extension in VS Code
  2. Click the MCP Servers icon to configure
  3. Add this configuration to your MCP settings:
{
  "mcpServers": {
    "codealive": {
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}
  1. Save and restart VS Code

Option 2: Docker (STDIO)

{
  "mcpServers": {
    "codealive": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
</details> <details> <summary><b>OpenCode</b></summary>

Add CodeAlive as a remote MCP server in your opencode.json.

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codealive": {
      "type": "remote",
      "url": "https://mcp.codealive.ai/api",
      "enabled": true,
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}
</details> <details> <summary><b>Qwen Code</b></summary>

Qwen Code supports MCP via mcpServers in its settings.json and multiple transports (stdio/SSE/streamable-http). Use streamable-http when available; otherwise use Docker (stdio).

~/.qwen/settings.json (Streamable HTTP)

{
  "mcpServers": {
    "codealive": {
      "type": "streamable-http",
      "url": "https://mcp.codealive.ai/api",
      "requestOptions": {
        "headers": {
          "Authorization": "Bearer YOUR_API_KEY_HERE"
        }
      }
    }
  }
}

Fallback: Docker (stdio)

{
  "mcpServers": {
    "codealive": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "--rm", "-i",
               "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
               "ghcr.io/codealive-ai/codealive-mcp:main"]
    }
  }
}
</details> <details> <summary><b>Roo Code</b></summary>

Roo Code reads a JSON settings file similar to Cline.

Global config: mcp_settings.json (Roo) or cline_mcp_settings.json (Cline-style)

Option A β€” Remote HTTP

{
  "mcpServers": {
    "codealive": {
      "type": "streamable-http",
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}

Option B β€” Docker (STDIO)

{
  "mcpServers": {
    "codealive": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}

Tip: If your Roo build doesn't honor HTTP headers, use the Docker/STDIO option.

</details> <details> <summary><b>Goose</b></summary>

UI path: Settings β†’ MCP Servers β†’ Add β†’ choose Streamable HTTP

Streamable HTTP configuration:

  • Name: codealive
  • Endpoint URL: https://mcp.codealive.ai/api
  • Headers: Authorization: Bearer YOUR_API_KEY_HERE

Docker (STDIO) alternative:

Add a STDIO extension with:

  • Command: docker
  • Args: run --rm -i -e CODEALIVE_API_KEY=YOUR_API_KEY_HERE ghcr.io/codealive-ai/codealive-mcp:main
</details> <details> <summary><b>Kilo Code</b></summary>

UI path: Manage β†’ Integrations β†’ Model Context Protocol (MCP) β†’ Add Server

HTTP

{
  "mcpServers": {
    "codealive": {
      "type": "streamable-http",
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}

STDIO (Docker)

{
  "mcpServers": {
    "codealive": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
</details> <details> <summary><b>Windsurf (Codeium)</b></summary>

File: ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "codealive": {
      "type": "streamable-http",
      "serverUrl": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}
</details> <details> <summary><b>Kiro</b></summary>

Note: Kiro does not yet support remote MCP servers natively. Use the mcp-remote workaround to connect to remote HTTP servers.

Prerequisites:

npm install -g mcp-remote

UI path: Settings β†’ MCP β†’ Add Server

Global file: ~/.kiro/settings/mcp.json Workspace file: .kiro/settings/mcp.json

Remote HTTP (via mcp-remote workaround)

{
  "mcpServers": {
    "codealive": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.codealive.ai/api",
        "--header",
        "Authorization: Bearer ${CODEALIVE_API_KEY}"
      ],
      "env": {
        "CODEALIVE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Docker (STDIO)

{
  "mcpServers": {
    "codealive": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
</details> <details> <summary><b>Qoder</b></summary>

UI path: User icon β†’ Qoder Settings β†’ MCP β†’ My Servers β†’ + Add (Agent mode)

SSE (remote HTTP)

{
  "mcpServers": {
    "codealive": {
      "type": "sse",
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}

STDIO (Docker)

{
  "mcpServers": {
    "codealive": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
</details> <details> <summary><b>Amazon Q Developer (CLI & IDE)</b></summary>

Q Developer CLI

Config file: ~/.aws/amazonq/mcp.json or workspace .amazonq/mcp.json

HTTP server

{
  "mcpServers": {
    "codealive": {
      "type": "http",
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}

STDIO (Docker)

{
  "mcpServers": {
    "codealive": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}

Q Developer IDE (VS Code / JetBrains)

Global: ~/.aws/amazonq/agents/default.json Local (workspace): .aws/amazonq/agents/default.json

Minimal entry (HTTP):

{
  "mcpServers": {
    "codealive": {
      "type": "http",
      "url": "https://mcp.codealive.ai/api",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      },
      "timeout": 310000
    }
  }
}

Use the IDE UI: Q panel β†’ Chat β†’ tools icon β†’ Add MCP Server β†’ choose http or stdio.

</details> <details> <summary><b>JetBrains AI Assistant</b></summary>

Note: JetBrains AI Assistant requires the mcp-remote workaround for connecting to remote HTTP MCP servers.

Prerequisites:

npm install -g mcp-remote

Config file: Settings/Preferences β†’ AI Assistant β†’ Model Context Protocol β†’ Configure

Add this configuration:

{
  "mcpServers": {
    "codealive": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.codealive.ai/api",
        "--header",
        "Authorization: Bearer ${CODEALIVE_API_KEY}"
      ],
      "env": {
        "CODEALIVE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

For self-hosted deployments, replace the URL:

{
  "mcpServers": {
    "codealive": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://your-server:8000/api",
        "--header",
        "Authorization: Bearer ${CODEALIVE_API_KEY}"
      ],
      "env": {
        "CODEALIVE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

See JetBrains MCP Documentation for more details.

</details> <details> <summary><b>n8n</b></summary>

Using AI Agent Node with MCP Tools

  1. Add an AI Agent node to your workflow

  2. Configure the agent with MCP tools:

    Server URL: https://mcp.codealive.ai/api
    Authorization Header: Bearer YOUR_API_KEY_HERE
  3. The server automatically handles n8n's extra parameters (sessionId, action, chatInput, toolCallId)

  4. Use the available tools:

    • get_data_sources - List available repositories
    • semantic_search - Search code semantically
    • grep_search - Search by exact text or regex
    • get_artifact_relationships - Expand relationships for one artifact
    • chat - Slower synthesized codebase Q&A, usually after search
    • codebase_search - Legacy semantic search alias
    • codebase_consultant - Deprecated alias for chat

Example Workflow:

Trigger β†’ AI Agent (with CodeAlive MCP tools) β†’ Process Response

Note: n8n middleware is built-in, so no special configuration is needed. The server will automatically strip n8n's extra parameters before processing tool calls.

</details>

πŸ”§ Advanced: Local Development

For developers who want to customize or contribute to the MCP server.

Prerequisites

  • Python 3.11+
  • uv (recommended) or pip

Installation

# Clone the repository
git clone https://github.com/CodeAlive-AI/codealive-mcp.git
cd codealive-mcp

# Setup with uv (recommended)
uv venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
uv pip install -e .

# Or setup with pip
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate  
pip install -e .

Local Server Configuration

Once installed locally, configure your AI client to use the local server:

Claude Code (Local)

claude mcp add codealive-local /path/to/codealive-mcp/.venv/bin/python /path/to/codealive-mcp/src/codealive_mcp_server.py --env CODEALIVE_API_KEY=YOUR_API_KEY_HERE

Other Clients (Local)

Replace the Docker command and args with:

{
  "command": "/path/to/codealive-mcp/.venv/bin/python",
  "args": ["/path/to/codealive-mcp/src/codealive_mcp_server.py"],
  "env": {
    "CODEALIVE_API_KEY": "YOUR_API_KEY_HERE"
  }
}

Running HTTP Server Locally

# Start local HTTP server
export CODEALIVE_API_KEY="your_api_key_here"
python src/codealive_mcp_server.py --transport http --host localhost --port 8000

# Test health endpoint
curl http://localhost:8000/health

Testing Your Local Installation

After making changes, quickly verify everything works:

# Quick smoke test (recommended)
make smoke-test

# Or run directly
python smoke_test.py

# With your API key for full testing
CODEALIVE_API_KEY=your_key python smoke_test.py

# Run unit tests
make unit-test

# Run all tests
make test

The smoke test verifies:

  • Server starts and connects correctly
  • All tools are registered
  • Each tool responds appropriately
  • Parameter validation works
  • Runs in ~5 seconds

Smithery Installation

Auto-install for Claude Desktop via Smithery:

npx -y @smithery/cli install @CodeAlive-AI/codealive-mcp --client claude

🌐 Community Plugins

Gemini CLI β€” CodeAlive Extension

Repo: https://github.com/akolotov/gemini-cli-codealive-extension

Gemini CLI extension that wires CodeAlive into your terminal with prebuilt slash commands and MCP config. It includes:

  • GEMINI.md guidance so Gemini knows how to use CodeAlive tools effectively
  • Slash commands: /codealive:chat, /codealive:find, /codealive:search
  • Easy setup via Gemini CLI's extension system

Install

gemini extensions install https://github.com/akolotov/gemini-cli-codealive-extension

Configure

# Option 1: .env next to where you run `gemini`
CODEALIVE_API_KEY="your_codealive_api_key_here"

# Option 2: environment variable
export CODEALIVE_API_KEY="your_codealive_api_key_here"
gemini

πŸͺŸ Windows & WSL

<details> <summary><b>Overview</b></summary>

Claude Code on Windows runs inside WSL (Windows Subsystem for Linux). Claude Desktop runs natively on Windows. This creates specific challenges when configuring MCP servers β€” especially around binary paths, environment variables, and networking.

The simplest solution for both Claude Code and Claude Desktop on Windows is Remote HTTP β€” it avoids all subprocess spawning and path issues entirely.

</details> <details> <summary><b>Claude Code in WSL</b></summary>

When Claude Code runs inside WSL, it operates as a normal Linux environment. Use the same commands as on Linux/macOS:

Remote HTTP (Recommended β€” avoids all WSL issues):

claude mcp add --transport http codealive https://mcp.codealive.ai/api --header "Authorization: Bearer YOUR_API_KEY_HERE"

Docker STDIO (if Docker Desktop WSL integration is enabled):

claude mcp add codealive-docker /usr/bin/docker run --rm -i -e CODEALIVE_API_KEY=YOUR_API_KEY_HERE ghcr.io/codealive-ai/codealive-mcp:main

Note: If docker is not found, ensure Docker Desktop has WSL integration enabled for your distro, or use the full path /usr/bin/docker.

</details> <details> <summary><b>Claude Desktop on Windows (Docker STDIO)</b></summary>

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

Option 1: Docker Desktop (Recommended)

If Docker Desktop is installed on Windows, docker.exe is in the Windows PATH:

{
  "mcpServers": {
    "codealive": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}

Option 2: wsl.exe Proxy

If Docker is only available inside WSL, use wsl.exe as a bridge:

{
  "mcpServers": {
    "codealive": {
      "command": "wsl.exe",
      "args": [
        "--", "docker", "run", "--rm", "-i",
        "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE",
        "ghcr.io/codealive-ai/codealive-mcp:main"
      ]
    }
  }
}
</details> <details> <summary><b>Self-Hosted MCP Server in WSL2</b></summary>

If you run the MCP HTTP server inside WSL2 and connect from Windows-side clients:

WSL2 NAT networking issue: By default, localhost inside WSL2 is not reachable from Windows. Two workarounds:

  1. Enable mirrored networking (Windows 11 22H2+) β€” add to %USERPROFILE%\.wslconfig:

    [wsl2]
    networkingMode=mirrored

    Then restart WSL: wsl --shutdown. After this, localhost is shared between Windows and WSL2.

  2. Use WSL2 VM IP β€” run hostname -I inside WSL to get the IP, then connect to http://<WSL_IP>:8000/api instead of http://localhost:8000/api.

</details> <details> <summary><b>Common WSL Pitfalls</b></summary>
ProblemCauseFix
docker: command not foundDocker not in WSL PATHEnable Docker Desktop WSL integration for your distro, or use full path /usr/bin/docker
ENOENT / spawn error for npx or pythonBinary not in non-interactive shell PATHUse absolute path (e.g., /home/user/.nvm/versions/node/v20/bin/npx)
Environment variables missingWSL non-login shell doesn't source .bashrcAdd vars explicitly in MCP config env block
Connection refused to self-hosted serverWSL2 NAT isolates localhostEnable mirrored networking or use WSL2 VM IP
Claude Desktop can't reach WSL MCP serverClaude Desktop doesn't support WSL subprocess spawningUse Remote HTTP, Docker Desktop, or wsl.exe proxy
</details>

πŸ“¦ Publishing to MCP Registry

For maintainers: see DEPLOYMENT.md for instructions on publishing new versions to the MCP Registry.


Privacy Policy

CodeAlive processes the repositories and queries you send through this extension in order to provide semantic search and codebase analysis. For complete privacy details, see CodeAlive Privacy Policy.


πŸ“„ License

MIT License - see LICENSE file for details.


Ready to supercharge your AI assistant with deep code understanding?
Get started now β†’