story-vault-mcp 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/dist/index.cjs +12 -10
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -49551,16 +49551,18 @@ var chatSessions = sqliteTable(
49551
49551
  // server/mcp.ts
49552
49552
  var import_meta = {};
49553
49553
  function debugLog(message) {
49554
- try {
49555
- const base = process.env.STORY_VAULT_DATA_DIR || import_node_path.default.resolve(process.cwd(), "mcp-debug.log");
49556
- const target = base.endsWith(".log") ? base : import_node_path.default.join(base, "mcp-debug.log");
49557
- import_node_fs.default.appendFileSync(
49558
- target,
49559
- `[${(/* @__PURE__ */ new Date()).toISOString()}] ${message}
49560
- `,
49561
- "utf-8"
49562
- );
49563
- } catch {
49554
+ const line = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${message}
49555
+ `;
49556
+ const targets = /* @__PURE__ */ new Set();
49557
+ if (process.env.STORY_VAULT_DATA_DIR) {
49558
+ targets.add(import_node_path.default.join(process.env.STORY_VAULT_DATA_DIR, "mcp-debug.log"));
49559
+ }
49560
+ targets.add(import_node_path.default.resolve(process.cwd(), "mcp-debug.log"));
49561
+ for (const target of targets) {
49562
+ try {
49563
+ import_node_fs.default.appendFileSync(target, line, "utf-8");
49564
+ } catch {
49565
+ }
49564
49566
  }
49565
49567
  }
49566
49568
  debugLog(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "story-vault-mcp",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "MCP server for Story Vault — lets external AI clients (Claude Desktop, Cursor, Cline, Qwen Chat…) read and write your local encrypted writing vault.",
5
5
  "license": "MIT",
6
6
  "type": "module",