@vheins/local-memory-mcp 0.8.7 → 0.8.9
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";
|
|
@@ -1956,6 +1956,7 @@ function createRouter(db2, vectors2, options) {
|
|
|
1956
1956
|
} else {
|
|
1957
1957
|
result = await executeToolLogic();
|
|
1958
1958
|
}
|
|
1959
|
+
logger.info(`[Tool] ${toolName} result`, { repo, result });
|
|
1959
1960
|
try {
|
|
1960
1961
|
const actionType = toolName.split("-")[1] || toolName;
|
|
1961
1962
|
const res = result;
|
|
@@ -2183,6 +2184,7 @@ if (process.argv.includes("doctor")) {
|
|
|
2183
2184
|
var db = await SQLiteStore.create();
|
|
2184
2185
|
var vectors = new RealVectorStore(db);
|
|
2185
2186
|
addLogSink(createFileSink(path3.dirname(db.getDbPath())));
|
|
2187
|
+
logger.info("[Server] startup", { pid: process.pid, db: db.getDbPath() });
|
|
2186
2188
|
vectors.initialize().catch((err) => {
|
|
2187
2189
|
logger.warn("[Server] Initial vector model loading failed. Will retry on first use.", { error: String(err) });
|
|
2188
2190
|
});
|
|
@@ -2224,6 +2226,7 @@ addLogSink((payload) => {
|
|
|
2224
2226
|
});
|
|
2225
2227
|
});
|
|
2226
2228
|
process.on("SIGINT", () => {
|
|
2229
|
+
logger.info("[Server] shutdown", { signal: "SIGINT", pid: process.pid });
|
|
2227
2230
|
for (const pending of pendingClientRequests.values()) {
|
|
2228
2231
|
pending.reject(new Error("Server stopped"));
|
|
2229
2232
|
}
|
|
@@ -2232,6 +2235,7 @@ process.on("SIGINT", () => {
|
|
|
2232
2235
|
process.exit(0);
|
|
2233
2236
|
});
|
|
2234
2237
|
process.on("SIGTERM", () => {
|
|
2238
|
+
logger.info("[Server] shutdown", { signal: "SIGTERM", pid: process.pid });
|
|
2235
2239
|
for (const pending of pendingClientRequests.values()) {
|
|
2236
2240
|
pending.reject(new Error("Server stopped"));
|
|
2237
2241
|
}
|