pip install "mcp-codebase-index[mcp]"Add to .mcp.json:
{
"mcpServers": {
"codebase-index": {
"command": "mcp-codebase-index",
"env": { "PROJECT_ROOT": "/path/to/project" }
}
}
}Replace /path/to/project with the actual project root directory.