Use narsil-mcp code intelligence tools effectively. Use when searching code, finding symbols, analyzing call graphs, scanning for security vulnerabilities, exploring dependencies, or performing static analysis on indexed repositories.
View on GitHubpostrv/narsil-mcp
narsil
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/postrv/narsil-mcp/blob/main/narsil-plugin/skills/narsil/SKILL.md -a claude-code --skill narsilInstallation paths:
.claude/skills/narsil/# Narsil Code Intelligence Narsil is an MCP server providing 76 code intelligence tools. This skill helps you use them effectively. ## Critical: Parameter Naming Use **short parameter names**. These are the most common mistakes: | Wrong | Correct | |-------|---------| | `repo_path` | `repo` | | `symbol_name` | `symbol` | | `file_path` | `path` | | `function_name` | `function` | The `repo` parameter expects the **repository name** from `list_repos`, not the full filesystem path. ## Getting Started **Always start with:** ``` list_repos → See indexed repositories get_index_status → See which features are enabled ``` ## Feature Requirements Some tools require specific CLI flags when starting narsil-mcp: | Feature | Required Flag | Tools | |---------|--------------|-------| | Git integration | `--git` | get_blame, get_file_history, get_recent_changes, get_hotspots, get_contributors, get_commit_diff, get_symbol_history, get_branch_info, get_modified_files | | Call graph | `--call-graph` | get_call_graph, get_callers, get_callees, find_call_path, get_complexity, get_function_hotspots | | LSP | `--lsp` | Enhanced: get_hover_info, get_type_info, go_to_definition | | Neural search | `--neural` | neural_search, get_neural_stats | | Remote repos | `--remote` | add_remote_repo, list_remote_files, get_remote_file | If a tool returns empty results or errors, check `get_index_status` to verify the feature is enabled. ## Tool Selection Guide ### Finding Code | Task | Best Tool | When to Use | |------|-----------|-------------| | Find files by name | `find_symbols` with `file_pattern` | Know filename pattern | | Find function/class definitions | `find_symbols` | Know symbol type | | Search by content | `search_code` | Keyword search | | BM25-ranked search | `semantic_search` | Better ranking than search_code | | Semantic code search | `hybrid_search` | Natural language queries (combines BM25 + TF-IDF) | | Find similar code | `find_similar_code` | Have a code snippet |