Skip to content

nella_index

Index or re-index the workspace codebase for Nella search.

Index or re-index the workspace codebase for Nella search.

The local MCP server uses the same index manager for indexing and search.

Parameters

ParameterTypeRequiredDescription
forcebooleanNoRebuild the index and ignore cached embeddings. Default: false.
pathsstring[]NoSpecific files or directories to index. Each path is resolved relative to the workspace root.

Example

nella_index({
  force: true,
  paths: ["packages/nella/src/mcp", "docs/api-reference"],
});

Response Shape

Index complete.

- Files indexed: 42
- Chunks created: 318
- Embeddings: 318
- Tokens processed: 87124

Storage: /path/to/project/.nella/index

Notes

  • The tool stores index data under .nella/index.
  • paths scopes which files are indexed; it does not change the workspace root.
  • The server excludes .nella/** from indexing.

See nella_search for the query side of the index.