@kage-core/kage-graph-mcp 1.1.10 → 1.1.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/viewer/app.js +20 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kage-core/kage-graph-mcp",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Local-first repo memory, code graph, and recall MCP server for coding agents",
5
5
  "main": "dist/index.js",
6
6
  "files": [
package/viewer/app.js CHANGED
@@ -233,7 +233,7 @@
233
233
  if (reviewPath) jobs.push(fetchText(reviewPath).then(function (text) { state.reviewText = text; }).catch(function () { state.reviewText = ""; }));
234
234
  if (pendingPath) jobs.push(loadPending(pendingPath).then(function (packets) { state.pendingPackets = packets; }));
235
235
  if (!graphPaths.length && !jobs.length) {
236
- loadHostedDemo();
236
+ loadHostedDefault();
237
237
  return;
238
238
  }
239
239
  setAutoLoad("loading project graph", false);
@@ -258,16 +258,32 @@
258
258
  });
259
259
  }
260
260
 
261
+ function loadHostedDefault() {
262
+ setAutoLoad("loading hosted repo graph", false);
263
+ Promise.all([
264
+ fetchJson("./data/kage/graph.json"),
265
+ fetchJson("./data/kage/code_graph/graph.json"),
266
+ fetchJson("./data/kage/metrics.json").catch(function () { return null; })
267
+ ]).then(function (items) {
268
+ var merged = mergeNormalizedGraphs([normalizeGraph(items[0]), normalizeGraph(items[1])]);
269
+ state.metrics = items[2];
270
+ loadNormalizedGraph(merged, "Kage repo graph");
271
+ setAutoLoad("Kage repo graph loaded", true);
272
+ }).catch(function () {
273
+ loadHostedDemo();
274
+ });
275
+ }
276
+
261
277
  function loadHostedDemo() {
262
- setAutoLoad("loading hosted demo graph", false);
278
+ setAutoLoad("loading bundled demo graph", false);
263
279
  Promise.all([
264
280
  fetchJson("./demo/graph.json"),
265
281
  fetchJson("./demo/metrics.json").catch(function () { return null; })
266
282
  ]).then(function (items) {
267
283
  var graph = items[0];
268
284
  state.metrics = items[1];
269
- loadNormalizedGraph(normalizeGraph(graph), "hosted demo graph");
270
- setAutoLoad("hosted demo graph loaded", true);
285
+ loadNormalizedGraph(normalizeGraph(graph), "bundled demo graph");
286
+ setAutoLoad("bundled demo graph loaded", true);
271
287
  }).catch(function () {
272
288
  setAutoLoad("manual mode", false);
273
289
  });