vexp-mcp 2.6.3 → 2.7.0

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/dist/index.js CHANGED
@@ -19,6 +19,7 @@ import { SEARCH_MEMORY_DEFINITION, handleSearchMemory, } from "./tools/search-me
19
19
  import { SAVE_OBSERVATION_DEFINITION, handleSaveObservation, } from "./tools/save-observation.js";
20
20
  import { RUN_PIPELINE_DEFINITION, handleRunPipeline, } from "./tools/run-pipeline.js";
21
21
  import { EXPAND_VEXP_REF_DEFINITION, handleExpandVexpRef, } from "./tools/expand-vexp-ref.js";
22
+ import { VERIFY_DONE_DEFINITION, handleVerifyDone, } from "./tools/verify-done.js";
22
23
  const ALL_TOOL_DEFINITIONS = [
23
24
  RUN_PIPELINE_DEFINITION,
24
25
  GET_CONTEXT_CAPSULE_DEFINITION,
@@ -31,6 +32,7 @@ const ALL_TOOL_DEFINITIONS = [
31
32
  SEARCH_MEMORY_DEFINITION,
32
33
  SAVE_OBSERVATION_DEFINITION,
33
34
  EXPAND_VEXP_REF_DEFINITION,
35
+ VERIFY_DONE_DEFINITION,
34
36
  ];
35
37
  /**
36
38
  * Minimal tool surface exposed to agents when VEXP_ALL_TOOLS is not set.
@@ -53,6 +55,7 @@ const ESSENTIAL_TOOL_DEFINITIONS = [
53
55
  GET_SKELETON_DEFINITION,
54
56
  INDEX_STATUS_DEFINITION,
55
57
  EXPAND_VEXP_REF_DEFINITION,
58
+ VERIFY_DONE_DEFINITION,
56
59
  ];
57
60
  /**
58
61
  * Default surface (2.3.3): the two tools an agent needs up front. Every
@@ -72,6 +75,12 @@ const ESSENTIAL_TOOL_DEFINITIONS = [
72
75
  const MINIMAL_TOOL_DEFINITIONS = [
73
76
  RUN_PIPELINE_DEFINITION,
74
77
  GET_SKELETON_DEFINITION,
78
+ // Listed, not optional: the CLAUDE.md vexp writes into every project tells
79
+ // the agent to call this before declaring a multi-file task complete. An
80
+ // instruction that names a tool the agent cannot see is worse than no
81
+ // instruction. The Rust server has always listed it; this surface did not
82
+ // even implement it, and a user found that out for us.
83
+ VERIFY_DONE_DEFINITION,
75
84
  ];
76
85
  function allToolsEnabled() {
77
86
  const v = process.env.VEXP_ALL_TOOLS;
@@ -125,6 +134,9 @@ export function createMcpServer(daemon) {
125
134
  case "index_status":
126
135
  text = await handleIndexStatus(args, daemon);
127
136
  break;
137
+ case "verify_done":
138
+ text = await handleVerifyDone(args, daemon);
139
+ break;
128
140
  case "workspace_setup":
129
141
  text = await handleWorkspaceSetup(args, daemon);
130
142
  break;
@@ -0,0 +1,51 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * The completion check, on the Node surface.
4
+ *
5
+ * It existed in the Rust MCP and in the daemon (`verify_done` socket op) and
6
+ * nowhere in this server — while the `CLAUDE.md` vexp writes into every
7
+ * project instructs the agent to call it before declaring a multi-file task
8
+ * complete. An agent configured through the Node bundle was being told to use
9
+ * a tool that did not exist, and reported it (2026-08-21).
10
+ *
11
+ * The daemon does all the work; this is a dispatch.
12
+ */
13
+ export const VerifyDoneSchema = z.object({
14
+ task_text: z
15
+ .string()
16
+ .optional()
17
+ .describe("The task as it was given to you. Optional: with it, the check also " +
18
+ "verifies the instructions were followed and reports scope drift."),
19
+ });
20
+ export const VERIFY_DONE_DEFINITION = {
21
+ name: "verify_done",
22
+ description: "Mechanical completion check for the CURRENT working tree - call BEFORE declaring a multi-file " +
23
+ "task complete. Returns: touched files that no longer parse, imports of names that no longer " +
24
+ "exist (partial renames), dependents referencing symbols you changed but left untouched " +
25
+ "(file:line), and IMPACTED TESTS tied to your changes. Fix broken imports, visit each " +
26
+ "dependent, then RUN the impacted tests - one passing run proves behavior; repeating this " +
27
+ "check does not.",
28
+ inputSchema: {
29
+ type: "object",
30
+ properties: {
31
+ task_text: {
32
+ type: "string",
33
+ description: "The task as it was given to you. Optional: enables the instruction and scope checks.",
34
+ },
35
+ },
36
+ required: [],
37
+ },
38
+ };
39
+ export async function handleVerifyDone(params, daemon) {
40
+ const validated = VerifyDoneSchema.parse(params ?? {});
41
+ const result = await daemon.call("verify_done", validated);
42
+ // The daemon returns its own rendered report when it has one; anything else
43
+ // is passed through as JSON rather than swallowed, so a shape change shows
44
+ // up as odd output instead of silence.
45
+ if (typeof result === "string")
46
+ return result;
47
+ const rendered = result?.output;
48
+ if (typeof rendered === "string")
49
+ return rendered;
50
+ return JSON.stringify(result, null, 2);
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vexp-mcp",
3
- "version": "2.6.3",
3
+ "version": "2.7.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "vexp MCP server — AI context tools for coding agents",
6
6
  "type": "module",