@vheins/local-memory-mcp 0.7.1 → 0.7.2

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.
@@ -11,13 +11,14 @@ import {
11
11
  // src/dashboard/server.ts
12
12
  import express from "express";
13
13
  import path3 from "path";
14
- import fs2 from "fs";
14
+ import fs3 from "fs";
15
15
  import { fileURLToPath as fileURLToPath3 } from "url";
16
16
 
17
17
  // src/mcp/client.ts
18
18
  import { spawn } from "child_process";
19
19
  import { createInterface } from "readline";
20
20
  import path from "path";
21
+ import fs from "fs";
21
22
  import { fileURLToPath } from "url";
22
23
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
23
24
  var RETRY_DELAYS = [1e3, 2e3, 4e3];
@@ -36,7 +37,7 @@ var MCPClient = class {
36
37
  }
37
38
  async start() {
38
39
  if (this.process) return;
39
- const serverPath = this.serverPathOverride || path.join(__dirname, "./server.js");
40
+ const serverPath = this.serverPathOverride || (fs.existsSync(path.join(__dirname, "../mcp/server.js")) ? path.join(__dirname, "../mcp/server.js") : path.join(__dirname, "./server.js"));
40
41
  this.process = spawn("node", [serverPath], {
41
42
  stdio: ["pipe", "pipe", "inherit"]
42
43
  });
@@ -78,7 +79,7 @@ var MCPClient = class {
78
79
  }
79
80
  }
80
81
  } catch (err) {
81
- logger.error("Failed to parse MCP response", { error: String(err) });
82
+ logger.error("Failed to parse MCP response", { error: String(err), rawLine: line });
82
83
  }
83
84
  });
84
85
  await this.callWithRetry("initialize", {
@@ -200,7 +201,7 @@ import { Router as Router4 } from "express";
200
201
  import { Router } from "express";
201
202
 
202
203
  // src/dashboard/controllers/SystemController.ts
203
- import fs from "fs";
204
+ import fs2 from "fs";
204
205
  import path2 from "path";
205
206
  import { fileURLToPath as fileURLToPath2 } from "url";
206
207
 
@@ -252,8 +253,8 @@ var __dirname2 = path2.dirname(fileURLToPath2(import.meta.url));
252
253
  var pkg = { version: "0.0.0" };
253
254
  try {
254
255
  const pkgPath = path2.join(__dirname2, "../../../package.json");
255
- if (fs.existsSync(pkgPath)) {
256
- const data = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
256
+ if (fs2.existsSync(pkgPath)) {
257
+ const data = JSON.parse(fs2.readFileSync(pkgPath, "utf8"));
257
258
  if (data.version) pkg.version = data.version;
258
259
  }
259
260
  } catch {
@@ -794,8 +795,8 @@ var __dirname3 = path3.dirname(fileURLToPath3(import.meta.url));
794
795
  var pkg2 = { version: "0.0.0" };
795
796
  try {
796
797
  const pkgPath = path3.join(__dirname3, "../../package.json");
797
- if (fs2.existsSync(pkgPath)) {
798
- const data = JSON.parse(fs2.readFileSync(pkgPath, "utf8"));
798
+ if (fs3.existsSync(pkgPath)) {
799
+ const data = JSON.parse(fs3.readFileSync(pkgPath, "utf8"));
799
800
  if (data.version) pkg2.version = data.version;
800
801
  }
801
802
  } catch {
@@ -814,7 +815,7 @@ app.use((req, res, next) => {
814
815
  next();
815
816
  });
816
817
  app.use("/api", routes_default);
817
- var staticRoot = fs2.existsSync(path3.join(__dirname3, "public")) ? path3.join(__dirname3, "public") : path3.join(process.cwd(), "src", "dashboard", "public");
818
+ var staticRoot = fs3.existsSync(path3.join(__dirname3, "public")) ? path3.join(__dirname3, "public") : path3.join(process.cwd(), "src", "dashboard", "public");
818
819
  app.use(express.static(staticRoot));
819
820
  app.use((req, res, next) => {
820
821
  if (req.path.startsWith("/api")) return next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",