@vheins/local-memory-mcp 0.8.5 → 0.8.7
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.
|
@@ -3757,7 +3757,7 @@ for (const name of promptFiles) {
|
|
|
3757
3757
|
try {
|
|
3758
3758
|
PROMPTS[name] = createPromptDefinition(loadPromptFromMarkdown(name));
|
|
3759
3759
|
} catch (e) {
|
|
3760
|
-
|
|
3760
|
+
logger.warn(`Failed to load prompt ${name}: ${e}`);
|
|
3761
3761
|
}
|
|
3762
3762
|
}
|
|
3763
3763
|
async function listPrompts(db, session, params) {
|
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-L2M2KAD5.js";
|
|
47
47
|
|
|
48
48
|
// src/mcp/server.ts
|
|
49
49
|
import readline from "readline";
|
|
@@ -891,7 +891,7 @@ Comments & History:
|
|
|
891
891
|
vectors2
|
|
892
892
|
);
|
|
893
893
|
} catch (error) {
|
|
894
|
-
|
|
894
|
+
logger.error("Failed to archive task to memory", { error: String(error) });
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
async function handleTaskList(args, storage) {
|
|
@@ -1832,6 +1832,17 @@ async function handleTaskGet(args, storage) {
|
|
|
1832
1832
|
function createRouter(db2, vectors2, options) {
|
|
1833
1833
|
const getSessionContext = options?.getSessionContext;
|
|
1834
1834
|
async function handleMethod2(method, params, signal, onProgress) {
|
|
1835
|
+
const t0 = Date.now();
|
|
1836
|
+
try {
|
|
1837
|
+
const result = await _dispatch(method, params, signal, onProgress);
|
|
1838
|
+
logger.debug(`[Router] ${method}`, { ms: Date.now() - t0 });
|
|
1839
|
+
return result;
|
|
1840
|
+
} catch (err) {
|
|
1841
|
+
logger.error(`[Router] ${method} failed`, { ms: Date.now() - t0, error: String(err) });
|
|
1842
|
+
throw err;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
async function _dispatch(method, params, signal, onProgress) {
|
|
1835
1846
|
switch (method) {
|
|
1836
1847
|
// ---- tools ----
|
|
1837
1848
|
case "tools/list":
|
|
@@ -1895,6 +1906,7 @@ function createRouter(db2, vectors2, options) {
|
|
|
1895
1906
|
let result;
|
|
1896
1907
|
const repo = args?.repo || args?.scope?.repo || "unknown";
|
|
1897
1908
|
const isWrite = WRITE_TOOLS.has(toolName);
|
|
1909
|
+
logger.info(`[Tool] ${toolName}`, { repo, write: isWrite });
|
|
1898
1910
|
const executeToolLogic = async () => {
|
|
1899
1911
|
switch (toolName) {
|
|
1900
1912
|
case "memory-store":
|