Skip to content

Quickstart

You need Python 3.11 or newer and git on your PATH.

Terminal window
pip install cidx

Or run it without installing, using uv:

Terminal window
uvx cidx --version

Run this from the repository root:

Terminal window
cidx index --repo .

The index is one SQLite file in your user cache. Nothing is written inside the repository.

Terminal window
cidx query Context --repo .
Terminal window
cidx query echo --references --repo .
Terminal window
cidx query src/click/globals.py --outline --repo .
Terminal window
cidx query --repo-map --repo .

Add cidx to any MCP client that can start a stdio server. Use an absolute path:

{
"mcpServers": {
"cidx": {
"command": "uvx",
"args": ["cidx", "serve", "--repo", "/absolute/path/to/repo"]
}
}
}

The full documentation is being written and will replace this page.