@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
- console.warn(`Failed to load prompt ${name}: ${e}`);
3760
+ logger.warn(`Failed to load prompt ${name}: ${e}`);
3761
3761
  }
3762
3762
  }
3763
3763
  async function listPrompts(db, session, params) {
@@ -6,7 +6,7 @@ import {
6
6
  TOOL_DEFINITIONS,
7
7
  listResources,
8
8
  logger
9
- } from "../chunk-NQHH7CDG.js";
9
+ } from "../chunk-L2M2KAD5.js";
10
10
 
11
11
  // src/dashboard/server.ts
12
12
  import express from "express";
@@ -43,7 +43,7 @@ import {
43
43
  setLogLevel,
44
44
  updateSessionFromInitialize,
45
45
  updateSessionRoots
46
- } from "../chunk-NQHH7CDG.js";
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
- console.error("Failed to archive task to memory", error);
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":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",