@vheins/local-memory-mcp 0.8.5 → 0.8.6
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.
- package/dist/mcp/server.js +12 -0
- package/package.json +1 -1
package/dist/mcp/server.js
CHANGED
|
@@ -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":
|