vexp-mcp 3.0.1 → 3.1.1

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.
@@ -483,10 +483,15 @@ function discoverWorkspaceRoot() {
483
483
  break;
484
484
  current = parent;
485
485
  }
486
- // Pass 2: nearest ancestor with a bare .vexp/ (workspace mid-first-index).
486
+ // Pass 2: nearest ancestor with a bare .vexp/ (workspace mid-first-index)
487
+ // — except the home/VEXP_HOME directory, whose .vexp is vexp's own STATE
488
+ // dir: treating it as a workspace let an agent that spawns servers from
489
+ // the home dir target the whole home (field report, 2026-09-02). Lockstep
490
+ // with vexp-core utils::discover_workspace_root.
491
+ const stateHome = path.resolve(process.env.VEXP_HOME && path.isAbsolute(process.env.VEXP_HOME) ? process.env.VEXP_HOME : os.homedir());
487
492
  current = cwd;
488
493
  while (true) {
489
- if (fs.existsSync(path.join(current, ".vexp")))
494
+ if (fs.existsSync(path.join(current, ".vexp")) && path.resolve(current) !== stateHome)
490
495
  return current;
491
496
  const parent = path.dirname(current);
492
497
  if (parent === current)
@@ -23,7 +23,7 @@ export const GET_SKELETON_DEFINITION = {
23
23
  enum: ["minimal", "standard", "detailed"],
24
24
  description: "Skeleton detail level (default: standard)",
25
25
  },
26
- repo: { type: "string", description: "Repo alias (from index_status). Default: primary repo" },
26
+ repo: { type: "string", description: "Repo alias, as run_pipeline reports it (repo: <alias>). Without it: an absolute path pins its repo; a relative path is looked up in the primary, then in every connected repo" },
27
27
  },
28
28
  required: ["files"],
29
29
  },
@@ -97,6 +97,27 @@ function formatStatusAsText(status, targeting) {
97
97
  "Restart the daemon (`vexp daemon-cmd restart`) or re-run `vexp setup-llm` — until then, results are NOT LLM-compressed.");
98
98
  lines.push("");
99
99
  }
100
+ // Coverage gaps (3.1). Files over max_file_size_kb were skipped with an
101
+ // INFO log line and nothing else; this surface said HEALTHY over a graph
102
+ // missing 21% of the bytes of a user's lib/ (tier-4 field report, 2026-08).
103
+ if (status.coverage) {
104
+ const c = status.coverage;
105
+ const gaps = [];
106
+ if ((c.skipped_oversized ?? 0) > 0) {
107
+ const ex = c.skipped_examples?.length ? ` — e.g. ${c.skipped_examples.join(", ")}` : "";
108
+ gaps.push(`- ⚠️ ${c.skipped_oversized} file(s) over max_file_size_kb = ${c.max_file_size_kb ?? "?"} are NOT indexed${ex}. ` +
109
+ `Their symbols and callers are invisible to impact, search and run_pipeline. Full list: .vexp/coverage.json; raise the cap in .vexp/vexp.toml to include them.`);
110
+ }
111
+ if (c.unparsed_code_files?.length) {
112
+ gaps.push(`- Unparsed file types (no parser yet): ${c.unparsed_code_files.map((u) => `${u.count} .${u.ext}`).join(", ")}`);
113
+ }
114
+ if (gaps.length > 0) {
115
+ lines.push("## Coverage gaps");
116
+ lines.push("");
117
+ lines.push(...gaps);
118
+ lines.push("");
119
+ }
120
+ }
100
121
  // Savings Ledger (2.3.3) — the one savings surface, on every agent.
101
122
  // Replaces the old per-call counter as the headline: zero tool calls is
102
123
  // not "not working" — silence on oriented prompts is a logged decision.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vexp-mcp",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "vexp MCP server — AI context tools for coding agents",
6
6
  "type": "module",