@jacklika/dsh-memory-mcp 0.1.1 → 0.1.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.
package/README.md CHANGED
@@ -12,7 +12,7 @@ node packages/memory-mcp/src/server.mjs --vault /path/to/vault
12
12
  npx dsh-memory-mcp --vault /path/to/vault
13
13
  ```
14
14
 
15
- `--vault` defaults to `<cwd>/.dsh/memory/`; `--max-link-depth N` controls `wiki_read` link following (default 1).
15
+ `--vault` defaults to `<cwd>/.plugins/memory/` to match the dsh-memory Bundle default; `--max-link-depth N` controls `wiki_read` link following (default 1).
16
16
 
17
17
  ## Surface
18
18
 
package/README.zh.md CHANGED
@@ -12,7 +12,7 @@ node packages/memory-mcp/src/server.mjs --vault /path/to/vault
12
12
  npx dsh-memory-mcp --vault /path/to/vault
13
13
  ```
14
14
 
15
- `--vault` 默认为 `<cwd>/.dsh/memory/`;`--max-link-depth N` 控制 `wiki_read` 的链接展开深度(默认 1)。
15
+ `--vault` 默认为 `<cwd>/.plugins/memory/`,与 dsh-memory Bundle 默认保持一致;`--max-link-depth N` 控制 `wiki_read` 的链接展开深度(默认 1)。
16
16
 
17
17
  ## 暴露面
18
18
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jacklika/dsh-memory-mcp",
3
3
  "description": "Zero-dependency MCP stdio server exposing the memory vault to any MCP client — one process owns all writes.",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/server.mjs CHANGED
@@ -5,7 +5,7 @@
5
5
  * serialize through the server instead of negotiating filesystem locks.
6
6
  *
7
7
  * Usage: dsh-memory-mcp [--vault <path>] [--max-link-depth N]
8
- * --vault defaults to <cwd>/.dsh/memory/
8
+ * --vault defaults to <cwd>/.plugins/memory/ to match the Bundle default.
9
9
  */
10
10
  import { createHash, randomUUID } from 'node:crypto'
11
11
  import { mkdir, readdir, readFile, realpath, rename, rm, writeFile } from 'node:fs/promises'
@@ -23,7 +23,7 @@ function argValue(flag, fallback) {
23
23
  const i = args.indexOf(flag)
24
24
  return i >= 0 && args[i + 1] !== undefined ? args[i + 1] : fallback
25
25
  }
26
- const VAULT = resolve(argValue('--vault', join(process.cwd(), '.dsh', 'memory')))
26
+ const VAULT = resolve(argValue('--vault', join(process.cwd(), '.plugins', 'memory')))
27
27
  const MAX_LINK_DEPTH = Number(argValue('--max-link-depth', '1'))
28
28
  const EXTENSIONS = ['.md']
29
29
  const EXCLUDE_DIRS = new Set(['.git', 'node_modules', '.obsidian'])