Narsil MCP
未认领Rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more
01 / 选择客户端
03 / 添加配置
claude mcp add --transport stdio 'narsil-mcp' -- 'npx' '-y' '@modelcontextprotocol/inspector' './target/release/narsil-mcp' '--repos' './path/to/repo'04 / 在客户端中确认
打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。
更多Security服务器
浏览完整目录安全概况
已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理
40 个工具中显示 40 个
文档中列出的工具 (40)
内容来自项目文档。服务器握手不会验证每个工具的说明或行为。
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)
reindex
Trigger re-indexing of repositories
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