@vheins/local-memory-mcp 0.8.4 → 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.
@@ -6,7 +6,7 @@ import {
6
6
  TOOL_DEFINITIONS,
7
7
  listResources,
8
8
  logger
9
- } from "../chunk-E6BKW23Y.js";
9
+ } from "../chunk-NQHH7CDG.js";
10
10
 
11
11
  // src/dashboard/server.ts
12
12
  import express from "express";
@@ -23,6 +23,7 @@ import {
23
23
  addLogSink,
24
24
  completePromptArgument,
25
25
  completeResourceArgument,
26
+ createFileSink,
26
27
  createSessionContext,
27
28
  decodeCursor,
28
29
  encodeCursor,
@@ -42,7 +43,7 @@ import {
42
43
  setLogLevel,
43
44
  updateSessionFromInitialize,
44
45
  updateSessionRoots
45
- } from "../chunk-E6BKW23Y.js";
46
+ } from "../chunk-NQHH7CDG.js";
46
47
 
47
48
  // src/mcp/server.ts
48
49
  import readline from "readline";
@@ -1831,6 +1832,17 @@ async function handleTaskGet(args, storage) {
1831
1832
  function createRouter(db2, vectors2, options) {
1832
1833
  const getSessionContext = options?.getSessionContext;
1833
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) {
1834
1846
  switch (method) {
1835
1847
  // ---- tools ----
1836
1848
  case "tools/list":
@@ -1894,6 +1906,7 @@ function createRouter(db2, vectors2, options) {
1894
1906
  let result;
1895
1907
  const repo = args?.repo || args?.scope?.repo || "unknown";
1896
1908
  const isWrite = WRITE_TOOLS.has(toolName);
1909
+ logger.info(`[Tool] ${toolName}`, { repo, write: isWrite });
1897
1910
  const executeToolLogic = async () => {
1898
1911
  switch (toolName) {
1899
1912
  case "memory-store":
@@ -2137,6 +2150,7 @@ var RealVectorStore = class {
2137
2150
 
2138
2151
  // src/mcp/server.ts
2139
2152
  import fs2 from "fs";
2153
+ import path3 from "path";
2140
2154
  process.env.MCP_SERVER = "true";
2141
2155
  if (process.argv.includes("doctor")) {
2142
2156
  process.stderr.write("\n\u{1F3E5} MCP Local Memory - System Diagnosis\n\n");
@@ -2168,6 +2182,7 @@ if (process.argv.includes("doctor")) {
2168
2182
  }
2169
2183
  var db = await SQLiteStore.create();
2170
2184
  var vectors = new RealVectorStore(db);
2185
+ addLogSink(createFileSink(path3.dirname(db.getDbPath())));
2171
2186
  vectors.initialize().catch((err) => {
2172
2187
  logger.warn("[Server] Initial vector model loading failed. Will retry on first use.", { error: String(err) });
2173
2188
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",