vexp-mcp 3.1.0 → 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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vexp-mcp",
3
- "version": "3.1.0",
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",