jarvis-graph-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| JARVIS_GRAPH_LITE_PATH | No | Path to the jarvis-graph-lite src directory. Optional; the server can also auto-discover a sibling checkout or use the Windows default C:\JARVIS\tools\jarvis-graph-lite\src\. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local-first code intelligence for Python repos. Use these tools to find refactor priorities, untested hotspots, dead code, import cycles, complexity issues, and actionable TODO comments — all without uploading source to any cloud service. Every tool takes a repo_path (absolute path to a Python repository root) and returns a structured result you can reason about.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| refactor_priorityA | Rank the top N untested complexity hotspots in a Python repo. Combines cyclomatic complexity, line count, caller count, and test coverage into one composite score. Use this to answer 'what should I refactor first?' |
| find_coverage_gapsB | List public symbols in a repo that no test entry point can reach via the call graph. Use this to find where to add tests next. |
| generate_test_skeletonA | Emit a unittest.TestCase skeleton for a given symbol. Pairs with |
| health_reportA | Full-repo health scan combining every signal: complexity, coverage, dead code, cycles, unused imports, god files, TODO density, and fan-out coupling. Use at the start of a session to get a one-shot overview of the codebase state. |
| detect_changesB | Diff the current filesystem against the last cached index. Shows which files were added, modified, or removed since the last index run. Use this to know what changed between sessions. |
| summaryA | Deterministic per-repo summary: file count, symbol count, import count, call count, indexed size. Stable across runs on the same commit. |
| queryA | Locate where a concept lives in the repo. Pass a keyword or partial symbol name and get back the files and symbols that match. Use this as the entry point to 'where is X implemented?' |
| contextA | Explain a symbol's role in the codebase: what it calls, what calls it, what file it lives in, how complex it is. Use this after |
| impactA | Estimate the blast radius of modifying a symbol. Returns the transitive set of callers that would be affected by a change. Use this before refactoring to know what you're touching. |
| find_pathB | Find a shortest resolved call chain between two symbols. Answers 'how does foo eventually end up calling bar?' in a single hop. |
| find_dead_codeB | List functions, classes, and methods that have no callers anywhere in the repo. Has built-in false-positive filters for test classes, dispatch dicts, and module-level convention names. |
| find_unused_importsB | List unused import statements in a Python repo. Honours |
| find_circular_depsB | Detect import cycles between modules. A cycle is almost always a refactoring smell; use this to catch them before they calcify. |
| find_complexityC | List functions and methods with cyclomatic complexity above a threshold. Higher complexity = harder to test, more likely to hide bugs. |
| find_long_functionsC | List functions and methods over a line-count threshold. Long functions are a proxy for scope creep and often correlate with high complexity. |
| find_god_filesB | Rank files by symbols × LOC × fan-in. God files concentrate too much responsibility and become refactoring bottlenecks. |
| find_high_fan_outB | List files that import many other in-repo files. High fan-out indicates coupling risk — changing a high-fan-out file ripples through more of the codebase. |
| find_todo_commentsA | Rank TODO/FIXME/HACK/BUG/XXX comments by composite risk (tag severity + complexity + line count of the enclosing symbol). Use this to find the author-annotated debt that actually matters instead of every stray 'TODO' in the codebase. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 18 tools
Most tools have clearly distinct purposes and the descriptions explicitly chain them (query→context→impact, find_coverage_gaps→generate_test_skeleton). The only mild overlaps are refactor_priority vs find_complexity/find_long_functions and health_report vs the individual find_* signals, but each is framed as composite vs atomic so an agent can still choose correctly.
A large find_* group (find_dead_code, find_path, find_complexity, etc.) is very consistent, but the set mixes conventions: verb_noun (generate_test_skeleton, detect_changes), noun phrases (refactor_priority, health_report), and bare single-word nouns/verbs (summary, query, context, impact). Readable but not a single predictable pattern.
18 tools is on the heavier side but each maps to a distinct code-analysis signal, so they largely earn their place. It is slightly over the comfortable 3-15 band, but the scope (graph analysis + quality heuristics) justifies most of the surface.
The surface covers the full analysis lifecycle: discovery (query/context/impact/find_path), quality signals (complexity, long functions, god files, fan-out, dead code, unused imports, cycles, todos), coverage gaps with test generation, plus health_report, summary, and change detection. No obvious dead ends for a read-only code-graph analysis domain.