@vheins/local-memory-mcp 0.8.21 → 0.8.22

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.
@@ -3,8 +3,8 @@ import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
5
5
  var pkgVersion = "0.1.0";
6
- if ("0.8.21") {
7
- pkgVersion = "0.8.21";
6
+ if ("0.8.22") {
7
+ pkgVersion = "0.8.22";
8
8
  } else {
9
9
  let searchDir = __dirname;
10
10
  for (let i = 0; i < 5; i++) {
@@ -8,7 +8,7 @@ import {
8
8
  createFileSink,
9
9
  listResources,
10
10
  logger
11
- } from "../chunk-KZGXPYG7.js";
11
+ } from "../chunk-IIPC7XCA.js";
12
12
 
13
13
  // src/dashboard/server.ts
14
14
  import express from "express";
@@ -43,7 +43,7 @@ import {
43
43
  setLogLevel,
44
44
  updateSessionFromInitialize,
45
45
  updateSessionRoots
46
- } from "../chunk-KZGXPYG7.js";
46
+ } from "../chunk-IIPC7XCA.js";
47
47
 
48
48
  // src/mcp/server.ts
49
49
  import readline from "readline";
@@ -1925,7 +1925,10 @@ function normalizePageLimit(value, fallback) {
1925
1925
  }
1926
1926
 
1927
1927
  // src/mcp/storage/vectors.ts
1928
- import { pipeline } from "@xenova/transformers";
1928
+ import { pipeline, env } from "@xenova/transformers";
1929
+ if (process.env.MCP_SERVER === "true") {
1930
+ env.backends.onnx.logLevel = "error";
1931
+ }
1929
1932
  var RealVectorStore = class {
1930
1933
  db;
1931
1934
  extractor = null;
@@ -1942,7 +1945,16 @@ var RealVectorStore = class {
1942
1945
  }
1943
1946
  async getExtractor() {
1944
1947
  if (!this.extractor) {
1945
- this.extractor = await pipeline("feature-extraction", this.modelName);
1948
+ const isMcp = process.env.MCP_SERVER === "true";
1949
+ const origWrite = process.stdout.write.bind(process.stdout);
1950
+ if (isMcp) {
1951
+ process.stdout.write = (...args) => process.stderr.write(args[0]);
1952
+ }
1953
+ try {
1954
+ this.extractor = await pipeline("feature-extraction", this.modelName);
1955
+ } finally {
1956
+ if (isMcp) process.stdout.write = origWrite;
1957
+ }
1946
1958
  }
1947
1959
  return this.extractor;
1948
1960
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.8.21",
3
+ "version": "0.8.22",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",