@fractary/codex-mcp 0.3.5 → 0.4.0

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/cli.cjs CHANGED
@@ -5583,7 +5583,7 @@ var {
5583
5583
  Help
5584
5584
  } = import_index.default;
5585
5585
 
5586
- // ../../sdk/js/dist/index.js
5586
+ // node_modules/@fractary/codex/dist/index.js
5587
5587
  init_cjs_shims();
5588
5588
  var import_path = __toESM(require("path"), 1);
5589
5589
  var import_child_process = require("child_process");
@@ -12236,7 +12236,7 @@ var safeLoad = renamed("safeLoad", "load");
12236
12236
  var safeLoadAll = renamed("safeLoadAll", "loadAll");
12237
12237
  var safeDump = renamed("safeDump", "dump");
12238
12238
 
12239
- // ../../sdk/js/dist/index.js
12239
+ // node_modules/@fractary/codex/dist/index.js
12240
12240
  var import_promises = __toESM(require("fs/promises"), 1);
12241
12241
  var FORBIDDEN_PATTERNS = [
12242
12242
  /^\//,
@@ -14272,7 +14272,7 @@ function expandEnvVars(obj) {
14272
14272
  return obj;
14273
14273
  }
14274
14274
  var program2 = new Command();
14275
- program2.name("fractary-codex-mcp").description("MCP server for Fractary Codex knowledge management").version("0.3.5").option("--config <path>", "Path to config file", ".fractary/codex/config.yaml").action(async (options) => {
14275
+ program2.name("fractary-codex-mcp").description("MCP server for Fractary Codex knowledge management").version("0.3.6").option("--config <path>", "Path to config file", ".fractary/codex/config.yaml").action(async (options) => {
14276
14276
  let config = {};
14277
14277
  try {
14278
14278
  const configFile = (0, import_fs.readFileSync)(options.config, "utf-8");
@@ -14288,9 +14288,12 @@ program2.name("fractary-codex-mcp").description("MCP server for Fractary Codex k
14288
14288
  cacheDir: config.cache?.cacheDir || ".fractary/codex/cache",
14289
14289
  ...config.cache
14290
14290
  });
14291
+ if (storage) {
14292
+ cache.setStorageManager(storage);
14293
+ }
14291
14294
  const server = new McpServer({
14292
14295
  name: "fractary-codex",
14293
- version: "0.3.5",
14296
+ version: "0.3.6",
14294
14297
  cache,
14295
14298
  storage
14296
14299
  });