universal-ast-mapper 0.8.4 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -94,6 +94,8 @@ ast-map validate <path> [--max-lines N] [--max-imports N] [--max-expo
94
94
  ast-map dead <dir>
95
95
  ast-map cycles <dir>
96
96
  ast-map duplicates <dir> [alias: dupes]
97
+ ast-map complexity <path> [alias: cx] [--min N]
98
+ ast-map unused-params <path> [alias: unused]
97
99
  ast-map search <pattern> [dir] [-m contains|exact|regex] [-k kind] [-e]
98
100
  ast-map deps <file> [--scan <dir>]
99
101
  ast-map top <dir> [-n 10]
@@ -279,6 +281,34 @@ Scan a directory → find symbol names exported from **more than one file** (acc
279
281
 
280
282
  ---
281
283
 
284
+ ### `get_complexity`
285
+ Compute **AST-based cyclomatic complexity** per function/method for a file or directory. Score = `1 + decision points` (if / for / while / case / catch / ternary / `&&` / `||`), with a rating: `low` (≤5), `moderate` (≤10), `high` (≤20), `very-high` (>20). Directory scans also return the highest-complexity **hotspots** across all files.
286
+
287
+ ```json
288
+ {
289
+ "file": "src/auth.ts",
290
+ "maxComplexity": 12,
291
+ "functions": [
292
+ { "name": "validate", "complexity": 12, "rating": "high", "startLine": 8, "endLine": 40 }
293
+ ]
294
+ }
295
+ ```
296
+
297
+ **Params:** `path`
298
+
299
+ ---
300
+
301
+ ### `find_unused_params`
302
+ Scan a file or directory for **named functions/methods with parameters that are never used** in the body. Skips `_`-prefixed params (conventionally intentional), anonymous callbacks, and destructured bindings — and correctly treats object-shorthand (`{ id }`) as a use — to keep false positives near zero.
303
+
304
+ ```json
305
+ { "file": "src/x.ts", "functions": [ { "function": "greet", "line": 3, "unused": ["salutation"] } ] }
306
+ ```
307
+
308
+ **Params:** `path`
309
+
310
+ ---
311
+
282
312
  ### `get_change_impact`
283
313
  Given a file + symbol, reverse-traverse the import graph to compute **blast radius**.
284
314
 
@@ -501,6 +531,8 @@ src/
501
531
 
502
532
  | Version | What changed |
503
533
  |---------|--------------|
534
+ | **0.8.6** | **Unused parameter detection** — new `find_unused_params` MCP tool + `ast-map unused-params` (alias `unused`) CLI: named functions whose params are never referenced. Skips `_`-prefixed/destructured/anonymous and treats object-shorthand as a use (low false-positive). Server now 17 tools. |
535
+ | **0.8.5** | **Cyclomatic complexity** — new `get_complexity` MCP tool + `ast-map complexity` (alias `cx`, `--min N`) CLI: per-function AST-based complexity score (`1 + if/for/while/case/catch/ternary/&&/\|\|`) with low/moderate/high/very-high ratings and directory hotspots. Server now 16 tools. |
504
536
  | **0.8.4** | **Duplicate symbol detection** — new `find_duplicate_symbols` MCP tool + `ast-map duplicates` (alias `dupes`) CLI command: finds symbol names exported from more than one file, with every file/kind that declares each name. |
505
537
  | **0.8.3** | **TSX/React component props** — component symbols now carry extracted prop fields. PascalCase functions/arrows that return JSX or are typed `React.FC<P>`/`FC<P>` get `propsType` (named props type) + `props[]` (name, type, optional), resolved from same-file `interface`/`type` declarations or inline object types. Plus: MCP server now reports its real version from `package.json` (was hardcoded `0.5.3`). |
506
538
  | **0.8.2** | **Swift cross-file wiring** — `import <Module>` resolves to that module's files (module = the `Sources/<Module>/` directory, else parent dir), wired into `build_symbol_graph` + `resolve_imports`. System modules (Foundation, UIKit, …) stay external. Completes cross-file graph/resolver support for all four v0.8.0 languages. |
package/dist/cli.js CHANGED
@@ -10,6 +10,8 @@ import { findSymbol, findRelatedSymbols, findServerImports, isApiRoute, findMiss
10
10
  import { resolveFileImports } from "./resolver.js";
11
11
  import { buildSymbolGraph } from "./graph.js";
12
12
  import { findDeadExports, findCircularDeps, getChangeImpact, getFileDeps, getTopSymbols, findDuplicateSymbols } from "./graph-analysis.js";
13
+ import { computeFileComplexity } from "./complexity.js";
14
+ import { findUnusedParams } from "./unused-params.js";
13
15
  import { buildCallGraph } from "./callgraph.js";
14
16
  import { searchSymbols } from "./search.js";
15
17
  const ROOT = path.resolve(process.env.AST_MAP_ROOT ?? process.cwd());
@@ -366,6 +368,91 @@ program
366
368
  }
367
369
  console.log();
368
370
  });
371
+ // ─── Command: unused-params ───────────────────────────────────────────────────
372
+ program
373
+ .command("unused-params <path>")
374
+ .alias("unused")
375
+ .description("Find function parameters that are never used in the body")
376
+ .option("--json", "Output as JSON")
377
+ .action(async (inputPath, opts) => {
378
+ const { abs, rel } = resolveArg(inputPath);
379
+ const stat = fs.statSync(abs);
380
+ const results = [];
381
+ if (stat.isDirectory()) {
382
+ const sopts = resolveOptions({ detail: "outline", emitHtml: false });
383
+ for (const file of collectSourceFiles(abs, sopts)) {
384
+ const fileRel = path.relative(ROOT, file).split(path.sep).join("/");
385
+ const r = await findUnusedParams(file, fileRel);
386
+ if (r && r.functions.length > 0)
387
+ results.push(r);
388
+ }
389
+ }
390
+ else {
391
+ const r = await findUnusedParams(abs, rel);
392
+ if (!r)
393
+ die(`Unsupported file type: ${rel}`);
394
+ if (r.functions.length > 0)
395
+ results.push(r);
396
+ }
397
+ const rows = results.flatMap((r) => r.functions.map((f) => ({ file: r.file, ...f })));
398
+ if (opts.json)
399
+ return jsonOut({ path: rel, count: rows.length, functions: rows });
400
+ header(`Unused Parameters — ${rel}`);
401
+ if (rows.length === 0) {
402
+ console.log(indent(green("✓ No unused parameters found.")));
403
+ }
404
+ else {
405
+ table(rows.map((f) => [f.function, yellow(f.unused.join(", ")), f.file]), [["Function", 26], ["Unused params", 28], ["File", 36]]);
406
+ const totalP = rows.reduce((a, f) => a + f.unused.length, 0);
407
+ console.log(`\n ${yellow(`${totalP} unused parameter(s)`)} in ${rows.length} function(s)`);
408
+ }
409
+ console.log();
410
+ });
411
+ // ─── Command: complexity ──────────────────────────────────────────────────────
412
+ program
413
+ .command("complexity <path>")
414
+ .alias("cx")
415
+ .description("Cyclomatic complexity per function (file or directory)")
416
+ .option("--json", "Output as JSON")
417
+ .option("--min <n>", "Only show functions with complexity >= n", (v) => parseInt(v, 10))
418
+ .action(async (inputPath, opts) => {
419
+ const { abs, rel } = resolveArg(inputPath);
420
+ const stat = fs.statSync(abs);
421
+ const min = opts.min ?? 1;
422
+ const fileResults = [];
423
+ if (stat.isDirectory()) {
424
+ const sopts = resolveOptions({ detail: "outline", emitHtml: false });
425
+ for (const file of collectSourceFiles(abs, sopts)) {
426
+ const fileRel = path.relative(ROOT, file).split(path.sep).join("/");
427
+ const fc = await computeFileComplexity(file, fileRel);
428
+ if (fc)
429
+ fileResults.push(fc);
430
+ }
431
+ }
432
+ else {
433
+ const fc = await computeFileComplexity(abs, rel);
434
+ if (!fc)
435
+ die(`Unsupported file type: ${rel}`);
436
+ fileResults.push(fc);
437
+ }
438
+ const rows = fileResults
439
+ .flatMap((r) => r.functions.map((f) => ({ file: r.file, ...f })))
440
+ .filter((f) => f.complexity >= min)
441
+ .sort((a, b) => b.complexity - a.complexity);
442
+ if (opts.json)
443
+ return jsonOut({ path: rel, functionCount: rows.length, functions: rows });
444
+ header(`Cyclomatic Complexity — ${rel} ${dim(`(${fileResults.length} file(s))`)}`);
445
+ if (rows.length === 0) {
446
+ console.log(indent(green("✓ No functions found.")));
447
+ }
448
+ else {
449
+ const colorFor = (r) => (r === "very-high" || r === "high" ? yellow : r === "moderate" ? bold : dim);
450
+ table(rows.slice(0, 40).map((f) => [String(f.complexity), colorFor(f.rating)(f.rating), f.name, f.file]), [["Cx", 4], ["Rating", 11], ["Function", 26], ["File", 38]]);
451
+ const high = rows.filter((f) => f.complexity > 10).length;
452
+ console.log(`\n ${rows.length} function(s)` + (high > 0 ? ` · ${yellow(`${high} above 10`)}` : ""));
453
+ }
454
+ console.log();
455
+ });
369
456
  // ─── Command: duplicates ──────────────────────────────────────────────────────
370
457
  program
371
458
  .command("duplicates <dir>")
@@ -0,0 +1,98 @@
1
+ import fs from "node:fs";
2
+ import { parseSource } from "./parser.js";
3
+ import { detectLanguage } from "./registry.js";
4
+ import { buildSkeleton } from "./skeleton.js";
5
+ import { resolveOptions } from "./config.js";
6
+ // ─── Decision points ───────────────────────────────────────────────────────────
7
+ /**
8
+ * Node types that introduce a branch (each adds 1 to cyclomatic complexity).
9
+ * This is a deliberately broad cross-language union; languages that use a node
10
+ * type not listed here simply undercount rather than miscount.
11
+ */
12
+ const DECISION_TYPES = new Set([
13
+ // conditionals
14
+ "if_statement", "if_expression", "elif_clause", "else_if_clause",
15
+ // loops
16
+ "for_statement", "for_in_statement", "for_of_statement", "enhanced_for_statement",
17
+ "for_expression", "while_statement", "while_expression", "do_statement", "loop_statement",
18
+ // switch / match arms (the default/else arm is intentionally excluded)
19
+ "switch_case", "expression_case", "type_case", "case_clause", "when_entry",
20
+ "when_clause", "match_arm", "case_statement",
21
+ // exception handlers
22
+ "catch_clause", "except_clause", "rescue_clause",
23
+ // ternary
24
+ "ternary_expression", "conditional_expression",
25
+ // python `and` / `or`
26
+ "boolean_operator",
27
+ ]);
28
+ const FN_KINDS = new Set(["function", "method"]);
29
+ function rate(c) {
30
+ if (c <= 5)
31
+ return "low";
32
+ if (c <= 10)
33
+ return "moderate";
34
+ if (c <= 20)
35
+ return "high";
36
+ return "very-high";
37
+ }
38
+ /** Collect the start line of every decision point in the tree. */
39
+ function collectDecisionLines(node, out) {
40
+ const t = node.type;
41
+ if (DECISION_TYPES.has(t)) {
42
+ out.push(node.startPosition.row + 1);
43
+ }
44
+ else if (t === "binary_expression") {
45
+ // Short-circuit operators add a branch; arithmetic operators do not.
46
+ const op = node.childForFieldName("operator");
47
+ if (op && (op.text === "&&" || op.text === "||"))
48
+ out.push(node.startPosition.row + 1);
49
+ }
50
+ for (let i = 0; i < node.namedChildCount; i++) {
51
+ const c = node.namedChild(i);
52
+ if (c)
53
+ collectDecisionLines(c, out);
54
+ }
55
+ }
56
+ function flatten(symbols, acc = []) {
57
+ for (const s of symbols) {
58
+ acc.push(s);
59
+ flatten(s.children, acc);
60
+ }
61
+ return acc;
62
+ }
63
+ /**
64
+ * Compute cyclomatic complexity for every function/method in a file.
65
+ * Complexity is attributed by line range, so a function's score includes the
66
+ * control flow of any closures/nested functions declared inside it.
67
+ */
68
+ export async function computeFileComplexity(absPath, relPath) {
69
+ const lang = detectLanguage(absPath);
70
+ if (!lang)
71
+ return null;
72
+ const source = fs.readFileSync(absPath, "utf8");
73
+ const root = await parseSource(lang.grammar, source);
74
+ const decisionLines = [];
75
+ collectDecisionLines(root, decisionLines);
76
+ const opts = resolveOptions({ detail: "outline", emitHtml: false });
77
+ const skel = await buildSkeleton(absPath, relPath, opts);
78
+ const functions = flatten(skel.symbols)
79
+ .filter((s) => FN_KINDS.has(s.kind))
80
+ .map((s) => {
81
+ const count = decisionLines.filter((l) => l >= s.range.startLine && l <= s.range.endLine).length;
82
+ const complexity = 1 + count;
83
+ return {
84
+ name: s.name,
85
+ kind: s.kind,
86
+ startLine: s.range.startLine,
87
+ endLine: s.range.endLine,
88
+ complexity,
89
+ rating: rate(complexity),
90
+ };
91
+ })
92
+ .sort((a, b) => b.complexity - a.complexity);
93
+ const maxComplexity = functions.reduce((m, f) => Math.max(m, f.complexity), 0);
94
+ const averageComplexity = functions.length === 0
95
+ ? 0
96
+ : Math.round((functions.reduce((s, f) => s + f.complexity, 0) / functions.length) * 10) / 10;
97
+ return { file: skel.file, functions, maxComplexity, averageComplexity };
98
+ }
package/dist/index.js CHANGED
@@ -15,6 +15,8 @@ import { buildSymbolGraph } from "./graph.js";
15
15
  import { findDeadExports, findCircularDeps, getChangeImpact, getFileDeps, getTopSymbols, findDuplicateSymbols } from "./graph-analysis.js";
16
16
  import { buildCallGraph } from "./callgraph.js";
17
17
  import { searchSymbols } from "./search.js";
18
+ import { computeFileComplexity } from "./complexity.js";
19
+ import { findUnusedParams } from "./unused-params.js";
18
20
  /** Files may only be read inside this root (override with AST_MAP_ROOT). */
19
21
  const ROOT = path.resolve(process.env.AST_MAP_ROOT ?? process.cwd());
20
22
  function resolveInRoot(input) {
@@ -567,6 +569,104 @@ server.registerTool("find_duplicate_symbols", {
567
569
  return errorText(describeError(err));
568
570
  }
569
571
  });
572
+ /* ─────────────────── tool: get_complexity ──────────────────────────────── */
573
+ server.registerTool("get_complexity", {
574
+ title: "Get cyclomatic complexity per function",
575
+ description: "Compute AST-based cyclomatic complexity for every function/method in a FILE or DIRECTORY. " +
576
+ "Each function gets a score (1 + decision points: if / for / while / case / catch / ternary / && / ||) " +
577
+ "and a rating (low <=5, moderate <=10, high <=20, very-high >20). For a directory, returns per-file " +
578
+ "results plus the highest-complexity hotspots across the scan.",
579
+ inputSchema: {
580
+ path: z.string().describe("File or directory, relative to project root or absolute within it."),
581
+ },
582
+ }, async ({ path: input }) => {
583
+ try {
584
+ const { abs, rel } = resolveInRoot(input);
585
+ const stat = fs.statSync(abs);
586
+ if (stat.isDirectory()) {
587
+ const opts = resolveOptions({ detail: "outline", emitHtml: false });
588
+ const files = collectSourceFiles(abs, opts);
589
+ const results = [];
590
+ const errors = [];
591
+ for (const file of files) {
592
+ const fileRel = path.relative(ROOT, file).split(path.sep).join("/");
593
+ try {
594
+ const fc = await computeFileComplexity(file, fileRel);
595
+ if (fc)
596
+ results.push(fc);
597
+ }
598
+ catch (err) {
599
+ errors.push({ file: fileRel, error: describeError(err) });
600
+ }
601
+ }
602
+ const hotspots = results
603
+ .flatMap((r) => r.functions.map((f) => ({ file: r.file, ...f })))
604
+ .sort((a, b) => b.complexity - a.complexity)
605
+ .slice(0, 15);
606
+ return jsonText({
607
+ directory: rel.split(path.sep).join("/"),
608
+ scanned: files.length,
609
+ ...(errors.length > 0 ? { errors } : {}),
610
+ hotspots,
611
+ files: results,
612
+ });
613
+ }
614
+ const fc = await computeFileComplexity(abs, rel.split(path.sep).join("/"));
615
+ if (!fc)
616
+ return errorText(`Unsupported file type: ${input}`);
617
+ return jsonText(fc);
618
+ }
619
+ catch (err) {
620
+ return errorText(describeError(err));
621
+ }
622
+ });
623
+ /* ─────────────────── tool: find_unused_params ──────────────────────────── */
624
+ server.registerTool("find_unused_params", {
625
+ title: "Find unused function parameters",
626
+ description: "Scan a FILE or DIRECTORY for named functions/methods that declare parameters never " +
627
+ "referenced in their body. Skips `_`-prefixed params (conventionally intentional), " +
628
+ "anonymous callbacks, and destructured bindings to avoid false positives.",
629
+ inputSchema: {
630
+ path: z.string().describe("File or directory, relative to project root or absolute within it."),
631
+ },
632
+ }, async ({ path: input }) => {
633
+ try {
634
+ const { abs, rel } = resolveInRoot(input);
635
+ const stat = fs.statSync(abs);
636
+ if (stat.isDirectory()) {
637
+ const opts = resolveOptions({ detail: "outline", emitHtml: false });
638
+ const files = collectSourceFiles(abs, opts);
639
+ const results = [];
640
+ const errors = [];
641
+ for (const file of files) {
642
+ const fileRel = path.relative(ROOT, file).split(path.sep).join("/");
643
+ try {
644
+ const r = await findUnusedParams(file, fileRel);
645
+ if (r && r.functions.length > 0)
646
+ results.push(r);
647
+ }
648
+ catch (err) {
649
+ errors.push({ file: fileRel, error: describeError(err) });
650
+ }
651
+ }
652
+ const unusedParamCount = results.reduce((sum, r) => sum + r.functions.reduce((a, f) => a + f.unused.length, 0), 0);
653
+ return jsonText({
654
+ directory: rel.split(path.sep).join("/"),
655
+ scanned: files.length,
656
+ ...(errors.length > 0 ? { errors } : {}),
657
+ unusedParamCount,
658
+ files: results,
659
+ });
660
+ }
661
+ const r = await findUnusedParams(abs, rel.split(path.sep).join("/"));
662
+ if (!r)
663
+ return errorText(`Unsupported file type: ${input}`);
664
+ return jsonText(r);
665
+ }
666
+ catch (err) {
667
+ return errorText(describeError(err));
668
+ }
669
+ });
570
670
  /* ─────────────────── tool: get_change_impact ───────────────────────────── */
571
671
  server.registerTool("get_change_impact", {
572
672
  title: "Get change impact (blast radius)",
@@ -0,0 +1,127 @@
1
+ import fs from "node:fs";
2
+ import { parseSource } from "./parser.js";
3
+ import { detectLanguage } from "./registry.js";
4
+ // Named function-like nodes across the supported languages. Anonymous arrows /
5
+ // lambdas are intentionally skipped: they're usually callbacks where an unused
6
+ // parameter is required by the caller's signature (event handlers, map indices).
7
+ const FN_TYPES = new Set([
8
+ "function_declaration",
9
+ "generator_function_declaration",
10
+ "function_definition", // Python / C / C++
11
+ "async_function_definition", // Python
12
+ "method_definition", // TS/JS class member
13
+ "method_declaration", // Go / Java / C#
14
+ "constructor_declaration", // Java / C#
15
+ "function_item", // Rust
16
+ ]);
17
+ const PARAM_CONTAINERS = new Set([
18
+ "formal_parameters", "parameters", "parameter_list", "function_value_parameters",
19
+ ]);
20
+ const ID_TYPES = new Set(["identifier", "simple_identifier"]);
21
+ // Identifier-like nodes that count as a *usage* of a name. Includes object
22
+ // shorthand (`{ foo }` references `foo`), which is ubiquitous in JS/TS.
23
+ const USE_TYPES = new Set([
24
+ "identifier", "simple_identifier",
25
+ "shorthand_property_identifier", "shorthand_property_identifier_pattern",
26
+ ]);
27
+ // Binding shapes we do NOT try to resolve to a single name (avoid false positives).
28
+ const SKIP_PARAM = /splat|rest|spread|object_pattern|array_pattern|tuple_pattern|object_type/;
29
+ function fnName(node) {
30
+ const nm = node.childForFieldName("name");
31
+ if (nm)
32
+ return nm.text;
33
+ // Kotlin/Swift function_declaration: name is the first simple_identifier child.
34
+ for (let i = 0; i < node.namedChildCount; i++) {
35
+ const c = node.namedChild(i);
36
+ if (c && c.type === "simple_identifier")
37
+ return c.text;
38
+ }
39
+ return "(anonymous)";
40
+ }
41
+ function paramsNode(fn) {
42
+ const p = fn.childForFieldName("parameters");
43
+ if (p)
44
+ return p;
45
+ for (let i = 0; i < fn.namedChildCount; i++) {
46
+ const c = fn.namedChild(i);
47
+ if (c && PARAM_CONTAINERS.has(c.type))
48
+ return c;
49
+ }
50
+ return null;
51
+ }
52
+ /** Best-effort binding names for one parameter node (may be empty when unsure). */
53
+ function paramNames(p) {
54
+ if (ID_TYPES.has(p.type))
55
+ return [p.text];
56
+ if (SKIP_PARAM.test(p.type))
57
+ return [];
58
+ const pat = p.childForFieldName("pattern");
59
+ if (pat)
60
+ return ID_TYPES.has(pat.type) ? [pat.text] : [];
61
+ const nm = p.childForFieldName("name");
62
+ if (nm && ID_TYPES.has(nm.type))
63
+ return [nm.text];
64
+ // Go: `a, b int` → several identifier children before the type.
65
+ const ids = [];
66
+ for (let i = 0; i < p.namedChildCount; i++) {
67
+ const c = p.namedChild(i);
68
+ if (c && c.type === "identifier")
69
+ ids.push(c.text);
70
+ }
71
+ return ids;
72
+ }
73
+ /** Collect every bare identifier reference in the subtree (not member/field names). */
74
+ function collectIdentifierUses(node, out) {
75
+ if (USE_TYPES.has(node.type))
76
+ out.add(node.text);
77
+ for (let i = 0; i < node.namedChildCount; i++) {
78
+ const c = node.namedChild(i);
79
+ if (c)
80
+ collectIdentifierUses(c, out);
81
+ }
82
+ }
83
+ function unusedInFunction(fn) {
84
+ const pnode = paramsNode(fn);
85
+ const body = fn.childForFieldName("body");
86
+ if (!pnode || !body)
87
+ return [];
88
+ const names = [];
89
+ for (let i = 0; i < pnode.namedChildCount; i++) {
90
+ const p = pnode.namedChild(i);
91
+ if (p)
92
+ names.push(...paramNames(p));
93
+ }
94
+ if (names.length === 0)
95
+ return [];
96
+ const used = new Set();
97
+ collectIdentifierUses(body, used);
98
+ // Skip `_`-prefixed (conventionally intentional) and `this`/`self`.
99
+ return names.filter((n) => n !== "_" && !n.startsWith("_") && n !== "this" && n !== "self" && !used.has(n));
100
+ }
101
+ export async function findUnusedParams(absPath, relPath) {
102
+ const lang = detectLanguage(absPath);
103
+ if (!lang)
104
+ return null;
105
+ const source = fs.readFileSync(absPath, "utf8");
106
+ const root = await parseSource(lang.grammar, source);
107
+ const functions = [];
108
+ const walk = (node) => {
109
+ if (FN_TYPES.has(node.type)) {
110
+ const unused = unusedInFunction(node);
111
+ if (unused.length > 0) {
112
+ functions.push({
113
+ function: fnName(node),
114
+ line: node.startPosition.row + 1,
115
+ unused,
116
+ });
117
+ }
118
+ }
119
+ for (let i = 0; i < node.namedChildCount; i++) {
120
+ const c = node.namedChild(i);
121
+ if (c)
122
+ walk(c);
123
+ }
124
+ };
125
+ walk(root);
126
+ return { file: relPath, functions };
127
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-ast-mapper",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "MCP server that maps source files into a normalized code skeleton (JSON + HTML) using tree-sitter.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",