Narsil MCP logo

Narsil MCP

未认领

作者:postrv

Rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more

code-intelligencemcpmcp-servermcp-serversprivacysecurity-tools

01 / 选择客户端

02 / 连接前的准备

认证方式尚未指定。连接前请查看项目说明。

安装项目所需的运行环境,并确保客户端能够使用它。

项目说明

输入项目说明中的变量名,用逗号分隔。只输入名称,不要输入密钥值。

03 / 添加配置

来源:根据公开安装说明生成

claude mcp add --transport stdio 'narsil-mcp' -- 'npx' '-y' '@modelcontextprotocol/inspector' './target/release/narsil-mcp' '--repos' './path/to/repo'

替换占位符后在终端中运行。

04 / 在客户端中确认

打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。

更多Security服务器

浏览完整目录

未认领列表

这个 MCP 服务器是你的吗?

此列表根据公开信息自动生成。认领后,你可以编辑页面、设置兼容性并解锁增长工具。全程不超两分钟。

认领此服务器

安全概况

已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、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

工具变更历史

比较相同配置的完整检查。只列出工具,未调用工具。此处不测量输入结构的变化。

尚无完整工具检查。