@vheins/local-memory-mcp 0.8.7 → 0.8.8
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.
|
@@ -180,8 +180,8 @@ function createFileSink(logDir, maxFiles = 5) {
|
|
|
180
180
|
} catch {
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
const logFile = `${logDir}/mcp-${
|
|
183
|
+
const date = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "");
|
|
184
|
+
const logFile = `${logDir}/mcp-${date}.log`;
|
|
185
185
|
return (payload) => {
|
|
186
186
|
const line = `${(/* @__PURE__ */ new Date()).toISOString()} [${payload.level.toUpperCase()}] ${JSON.stringify(payload.data)}
|
|
187
187
|
`;
|
package/dist/dashboard/server.js
CHANGED
package/dist/mcp/server.js
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
setLogLevel,
|
|
44
44
|
updateSessionFromInitialize,
|
|
45
45
|
updateSessionRoots
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-BEKJW4RS.js";
|
|
47
47
|
|
|
48
48
|
// src/mcp/server.ts
|
|
49
49
|
import readline from "readline";
|
|
@@ -2183,6 +2183,7 @@ if (process.argv.includes("doctor")) {
|
|
|
2183
2183
|
var db = await SQLiteStore.create();
|
|
2184
2184
|
var vectors = new RealVectorStore(db);
|
|
2185
2185
|
addLogSink(createFileSink(path3.dirname(db.getDbPath())));
|
|
2186
|
+
logger.info("[Server] startup", { pid: process.pid, db: db.getDbPath() });
|
|
2186
2187
|
vectors.initialize().catch((err) => {
|
|
2187
2188
|
logger.warn("[Server] Initial vector model loading failed. Will retry on first use.", { error: String(err) });
|
|
2188
2189
|
});
|
|
@@ -2224,6 +2225,7 @@ addLogSink((payload) => {
|
|
|
2224
2225
|
});
|
|
2225
2226
|
});
|
|
2226
2227
|
process.on("SIGINT", () => {
|
|
2228
|
+
logger.info("[Server] shutdown", { signal: "SIGINT", pid: process.pid });
|
|
2227
2229
|
for (const pending of pendingClientRequests.values()) {
|
|
2228
2230
|
pending.reject(new Error("Server stopped"));
|
|
2229
2231
|
}
|
|
@@ -2232,6 +2234,7 @@ process.on("SIGINT", () => {
|
|
|
2232
2234
|
process.exit(0);
|
|
2233
2235
|
});
|
|
2234
2236
|
process.on("SIGTERM", () => {
|
|
2237
|
+
logger.info("[Server] shutdown", { signal: "SIGTERM", pid: process.pid });
|
|
2235
2238
|
for (const pending of pendingClientRequests.values()) {
|
|
2236
2239
|
pending.reject(new Error("Server stopped"));
|
|
2237
2240
|
}
|