MCPVault

reindex

MCP tool from Narsil MCP by postrv

Trigger re-indexing of repositories

How to use it

reindex is exposed by the Narsil MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the reindex tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Narsil MCP

$npx @modelcontextprotocol/inspector ./target/release/narsil-mcp --repos ./path/to/repo
FULL NARSIL MCP LISTING

Other tools in Narsil MCP (39)

discover_repos

Auto-discover repositories in a directory

find_call_path

Find path between two functions

find_dead_code

Find unreachable code blocks

find_dead_stores

Assignments that are never read

find_references

Find all references to a symbol

find_semantic_clones

Find Type-3/4 semantic clones of a function

find_similar_code

Find code similar to a snippet (TF-IDF)

find_similar_to_symbol

Find code similar to a symbol

find_symbol_usages

Cross-file symbol usage with imports

find_symbols

Find structs, classes, functions by type/pattern

find_uninitialized

Variables used before initialization

get_call_graph

Get call graph for repository/function

get_callees

Find functions called by a function

get_callers

Find functions that call a function

get_chunk_stats

Statistics about code chunks

get_chunks

Get AST-aware chunks for a file

get_complexity

Get cyclomatic/cognitive complexity

get_control_flow

Get CFG showing basic blocks and branches

get_data_flow

Variable definitions and uses

get_dependencies

Analyze imports and dependents

get_embedding_stats

Embedding index statistics

get_excerpt

Extract code around specific lines with context

get_export_map

Get exported symbols from a file/module

get_file

Get file contents with optional line range

get_function_hotspots

Find highly connected functions

get_index_status

Show index stats and enabled features

get_neural_stats

Neural embedding index statistics

get_project_structure

Get directory tree with file icons and sizes

get_reaching_definitions

Which assignments reach each point

get_symbol_definition

Get symbol source with surrounding context

hybrid_search

Combined BM25 + TF-IDF with rank fusion

infer_types

Infer types for variables in a function without external type checkers

list_repos

List all indexed repositories with metadata

neural_search

Semantic search using neural embeddings (finds similar code even with different names)

search_chunks

Search over AST-aware code chunks

search_code

Keyword search with relevance ranking

semantic_search

BM25-ranked semantic search

validate_repo

Check if path is a valid repository

workspace_symbol_search

Fuzzy search symbols across workspace