Indexing your codebase with HelixDB
.env
file and add the following environment variables.
src
folder inside the codebase_index
directory.
codebase_index/src/index-types.json
file.
The default provided file contains entities for the following languages (and their extensions):
.py
).js
, .jsx
, .mjs
, .cjs
, etc.).ts
, .tsx
, .mts
, .cts
, etc.).c
).cpp
, .hpp
, .h
, etc.).rs
).zig
)codebase_index/src/file_types.json
file.
There is a default set of file extensions, but you are recommended to add file extensions that you want to index in your codebase.
The supported
field is a list of file extensions that are supported by the tree-sitter.
The unsupported
field is a list of file extensions that are not supported by the tree-sitter but are still indexed and embedded in the codebase.
codebase_index
directory. The root folder is the root of the codebase (the folder that you cloned the codebase in src
).
mcp_server
directory.
http://localhost:8000
.
mcp.json
file:
Configure
.
Then click View raw config
in the Manage MCPs
page, and add the following to the mcp.json
file:
Manage MCPs
page and click Refresh
to reload the MCPs, and you should see the codebase-index
MCP server listed.
Make sure your MCP server is running before you refresh the MCPs.
frontend
directory and have the MCP server running.
http://localhost:3000
.