# @alvinveroy/codecompass [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/alvinveroy/codecompass  
**GitHub Stars:** 14  
**npm Downloads (last month):** 244  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/alvinveroy-codecompass

## Description
AI-powered MCP server for codebase navigation and LLM prompt optimization

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "codecompass": {
    "command": "npx",
    "args": ["-y","@alvinveroy/codecompass@latest"]
  }
}
```

## Documentation

## What @alvinveroy/codecompass does

@alvinveroy/codecompass indexes a Git repository and exposes its structure and contents through MCP tools. It is intended for existing or legacy projects where names, dependencies, documentation, and file organization may not provide enough context for an AI coding assistant.

The indexed repository is stored in Qdrant for semantic retrieval. CodeCompass can then locate relevant snippets, inspect complete files, list directories, examine neighboring chunks, and assemble a repository overview. Large files are split into chunks, and large diffs, file lists, or snippets can be summarized during context preparation.

## How it works

Start the command from a repository, optionally passing a repository path and utility HTTP port. The MCP connection primarily uses standard input/output. A separate HTTP service, using port 3001 by default, provides health checks, indexing status, and repository update notifications from Git hooks.

The main `agent_query` tool plans multi-step investigations. It can invoke internal capabilities for semantic code search, full-file retrieval, directory listing, adjacent chunk retrieval, repository overview generation, and additional search results. It can also request more processing time when a query needs further work.

Qdrant runs through Docker. Ollama supplies local embeddings and, when selected, local suggestions. DeepSeek can be configured for cloud-based suggestions with an API key. The default model examples are `nomic-embed-text:v1.5` for embeddings and `llama3.1:8b` for Ollama suggestions.

## Setup and configuration

The prerequisites are Node.js 20 or newer, Docker, and Ollama when using local models. Start Qdrant with its HTTP and gRPC ports exposed, install the package with:

```bash
npx -y @alvinveroy/codecompass@latest
```

Run `codecompass` in the repository to use the current directory, or pass a path such as `codecompass /path/to/project`. The `--port` option changes the utility HTTP port and takes precedence over `HTTP_PORT`.

CodeCompass also has a CLI client mode for invoking tools against a spawned server. Its command form accepts a tool name, JSON parameters, an optional repository path, `--json` for raw responses, and an optional utility port.

## Tools and capabilities

- `agent_query` coordinates multi-step repository investigation.
- `search_code` performs semantic code search.
- `get_changelog` reads the repository changelog.
- `get_indexing_status` reports indexing progress.
- `trigger_repository_update` requests re-indexing.
- `switch_suggestion_model` changes the suggestion provider or model.
- Internal capabilities retrieve full files, list directories, inspect adjacent chunks, summarize repository context, and fetch more search results.

## Limitations and notes

Only one CodeCompass instance should normally own a utility HTTP port. If another CodeCompass process already uses that port, a new process can relay utility requests to the existing instance while continuing MCP communication over stdio. If the port belongs to a different service, the new process exits after reporting the conflict.

Git hooks should target the utility port of the primary running instance. Core MCP communication remains available over stdio, while indexing and repository-update operations depend on the utility service.

_Full upstream README: https://allmcps.com/mcp/alvinveroy-codecompass/readme_

