mindgraph-mcp 0.14.4 → 0.14.5

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/cli.js CHANGED
@@ -916,6 +916,15 @@ var init_dist = __esm({
916
916
  });
917
917
 
918
918
  // src/codegraph.ts
919
+ function unavailabilityCaveats(reason, message) {
920
+ const caveats = [message || "codegraph status failed"];
921
+ if (reason === "absent") {
922
+ caveats.push(
923
+ "Optional: install codegraph (https://github.com/colbymchenry/codegraph) and run `codegraph init` in this repository to enable code anchoring and structural recall. Memory and work tools are unaffected."
924
+ );
925
+ }
926
+ return caveats;
927
+ }
919
928
  function normalizePath(path6) {
920
929
  return path6.replaceAll("\\", "/").replace(/^\.\//, "");
921
930
  }
@@ -1272,11 +1281,12 @@ var init_codegraph = __esm({
1272
1281
  return availability;
1273
1282
  } catch (cause) {
1274
1283
  const failure = cause;
1284
+ const reason = failure.kind ?? "command_failed";
1275
1285
  return {
1276
1286
  available: false,
1277
- reason: failure.kind ?? "command_failed",
1287
+ reason,
1278
1288
  stale: false,
1279
- caveats: [failure.message || "codegraph status failed"]
1289
+ caveats: unavailabilityCaveats(reason, failure.message)
1280
1290
  };
1281
1291
  }
1282
1292
  }
@@ -4893,7 +4903,7 @@ Capture knowledge when the user shares something worth remembering:
4893
4903
  server = new import_server.Server(
4894
4904
  {
4895
4905
  name: "mindgraph",
4896
- version: "0.14.4"
4906
+ version: "0.14.5"
4897
4907
  },
4898
4908
  {
4899
4909
  capabilities: {
@@ -6185,6 +6195,7 @@ async function main2() {
6185
6195
  console.log(
6186
6196
  `Installed ${result.added} and refreshed ${result.updated} MindGraph Claude Code hook entries in ${result.path}`
6187
6197
  );
6198
+ printCodegraphStatus();
6188
6199
  if (apiKey || baseUrl || agentId) {
6189
6200
  const envPath = saveHookEnv({ apiKey, baseUrl, agentId });
6190
6201
  console.log(`Saved hook connection settings to ${envPath} (mode 600)`);
package/dist/index.js CHANGED
@@ -45,6 +45,15 @@ var import_promises = require("fs/promises");
45
45
  var import_node_os = require("os");
46
46
  var import_node_path = require("path");
47
47
  var import_node_crypto = require("crypto");
48
+ function unavailabilityCaveats(reason, message) {
49
+ const caveats = [message || "codegraph status failed"];
50
+ if (reason === "absent") {
51
+ caveats.push(
52
+ "Optional: install codegraph (https://github.com/colbymchenry/codegraph) and run `codegraph init` in this repository to enable code anchoring and structural recall. Memory and work tools are unaffected."
53
+ );
54
+ }
55
+ return caveats;
56
+ }
48
57
  var DEFAULT_TIMEOUT_MS = 5e3;
49
58
  var DEFAULT_STATUS_TTL_MS = 6e4;
50
59
  var MAX_OUTPUT_BYTES = 5 * 1024 * 1024;
@@ -364,11 +373,12 @@ var CodegraphAdapter = class {
364
373
  return availability;
365
374
  } catch (cause) {
366
375
  const failure = cause;
376
+ const reason = failure.kind ?? "command_failed";
367
377
  return {
368
378
  available: false,
369
- reason: failure.kind ?? "command_failed",
379
+ reason,
370
380
  stale: false,
371
- caveats: [failure.message || "codegraph status failed"]
381
+ caveats: unavailabilityCaveats(reason, failure.message)
372
382
  };
373
383
  }
374
384
  }
@@ -3931,7 +3941,7 @@ if (PROFILE === "coding") {
3931
3941
  var server = new import_server.Server(
3932
3942
  {
3933
3943
  name: "mindgraph",
3934
- version: "0.14.4"
3944
+ version: "0.14.5"
3935
3945
  },
3936
3946
  {
3937
3947
  capabilities: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindgraph-mcp",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "description": "MCP server for MindGraph — connect Claude Desktop, Claude Code, and any MCP client to your knowledge graph",
5
5
  "repository": {
6
6
  "type": "git",