Indexes all supported files in a directory, adding them to the existing code graph. Unlike stellarion_reindex_workspace which operates on the configured workspace root, this tool lets you add any directory — useful for monorepos, external dependencies, or directories outside the main project.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
path | string | yes | — | Absolute path to the directory to index |
embed | boolean | no | true | Whether to generate embeddings for semantic search (disable for faster indexing if you only need structural analysis) |
Natural language:
Add the packages/shared-utils directory to the code graph
MCP call:
{
"tool": "stellarion_index_directory",
"arguments": {
"path": "/Users/dev/monorepo/packages/shared-utils"
}
}
Natural language:
Index the vendor directory but skip embedding generation — I just need the call graph
MCP call:
{
"tool": "stellarion_index_directory",
"arguments": {
"path": "/Users/dev/project/vendor",
"embed": false
}
}
Natural language:
Add our shared library to the graph so I can trace cross-project calls
MCP call:
{
"tool": "stellarion_index_directory",
"arguments": {
"path": "/Users/dev/shared-lib/src"
}
}
Returns indexing summary:
embed: true)embed: false when you only need structural analysis (call graphs, imports) and don't need semantic search. This significantly speeds up indexing.stellarion_index_files instead.