th-memory-mcp 2.2.0 → 2.2.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.
@@ -1591,4 +1591,7 @@ All previously-deferred future features are implemented. AI-assisted extraction
1591
1591
  ## Release
1592
1592
  - v2.0.0: released — npm `th-memory-mcp@2.0.0` (latest), GitHub Release `v2.0.0`, Official MCP Registry `io.github.worakorn-prince/th-memory-mcp@2.0.0`, Glama listed.
1593
1593
  - v2.1.0: implemented and tested locally; publish skipped (superseded by v2.2.0).
1594
- - v2.2.0: tag + GitHub Release created by the build agent. **npm / Official MCP Registry / Glama publish pending** — requires the owner to re-authenticate (`npm login` / `mcp-publisher` GitHub OAuth) because the publish token expired.
1594
+ - v2.2.0: fully released — tag + GitHub Release, **npm published** (`th-memory-mcp@2.2.0`), Official MCP Registry auto-ingested from npm (manual `mcp-publisher publish` is redundant and errors `duplicate version`), Glama synced. Only `npm publish` + Glama Sync are required.
1595
+ - v2.2.1: Glama quality fix (server failed to start — better-sqlite3 native binding missing under pnpm 10 on Node 24). Added `pnpm.onlyBuiltDependencies: ["better-sqlite3"]` so pnpm runs the install script that downloads the Node 24 prebuild; bumped better-sqlite3 to `^12.9.0`; added `ip-address@^10.2.0` overrides (npm + pnpm) to clear transitive XSS via `@modelcontextprotocol/sdk`. No code changes. Pending `npm publish` + Glama re-test.
1596
+
1597
+ **Packaging note (Glama / Smithery):** these registries build with `pnpm install` + `pnpm run build` on **Node 24** and disable postinstall scripts by default (pnpm 10). Any native dependency (e.g. `better-sqlite3`) MUST be listed in `pnpm.onlyBuiltDependencies` in `package.json`, otherwise its native binary is never fetched and the server crashes at startup with `Could not locate the bindings file`.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Long-term memory MCP server for OpenCode — stores preferences, lessons, and usage history in a single local SQLite file (100% local, no external API) so the AI can "remember and adapt" to the user through context-based learning.
9
9
 
10
- **Status:** v2.2.0 — a temporal, conflict-aware, hybrid-retrieval memory engine. 16 MCP tools, 20 passing test suites. Non-destructive schema migration from v1 (all v1 data preserved). New in v2: lifecycle states, temporal validity, conflict/dedup resolution with USER/SESSION/PROJECT/GLOBAL scope, hybrid FTS+vector retrieval (RRF), memory graph, `get_context` assembly, periodic consolidation, and `link_memory` / `merge_memory` / `update_memory` / `import_memory` / `extract_memories`.
10
+ **Status:** v2.2.2 — a temporal, conflict-aware, hybrid-retrieval memory engine. 16 MCP tools, 20 passing test suites. Non-destructive schema migration from v1 (all v1 data preserved). New in v2: lifecycle states, temporal validity, conflict/dedup resolution with USER/SESSION/PROJECT/GLOBAL scope, hybrid FTS+vector retrieval (RRF), memory graph, `get_context` assembly, periodic consolidation, and `link_memory` / `merge_memory` / `update_memory` / `import_memory` / `extract_memories`.
11
11
 
12
12
  ## Requirements
13
13
 
@@ -212,3 +212,9 @@ data/
212
212
 
213
213
  - DB path can be overridden via the `MEMORY_DB_PATH` env var
214
214
  - everything in `data/` is git-ignored
215
+
216
+ ## License
217
+
218
+ [MIT](LICENSE) © 2026 worakorn-prince
219
+
220
+ This project is licensed under the MIT License — see the [LICENSE](LICENSE) file for the full text.
package/README.th.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  MCP server ความจำระยะยาวสำหรับ OpenCode — เก็บ preferences, lessons, ประวัติการใช้งาน ลง SQLite ไฟล์เดียว (local 100%, ไม่มี external API) เพื่อให้ AI "จำและปรับตัว" กับผู้ใช้ผ่าน context-based learning
9
9
 
10
- **สถานะ:** v2.2.0 — engine ความจำแบบ temporal, conflict-aware, hybrid-retrieval 16 MCP tools, 20 ชุดเทสผ่าน อัปเกรด schema แบบ non-destructive จาก v1 (ข้อมูล v1 ทั้งหมดถูกเก็บรักษา) ฟีเจอร์ใหม่ใน v2: lifecycle states, temporal validity, การแก้ conflict/dedup พร้อม scope USER/SESSION/PROJECT/GLOBAL, hybrid FTS+vector retrieval (RRF), memory graph, ประกอบ `get_context`, consolidation, และ `link_memory` / `merge_memory` / `update_memory` / `import_memory` / `extract_memories`
10
+ **สถานะ:** v2.2.2 — engine ความจำแบบ temporal, conflict-aware, hybrid-retrieval 16 MCP tools, 20 ชุดเทสผ่าน อัปเกรด schema แบบ non-destructive จาก v1 (ข้อมูล v1 ทั้งหมดถูกเก็บรักษา) ฟีเจอร์ใหม่ใน v2: lifecycle states, temporal validity, การแก้ conflict/dedup พร้อม scope USER/SESSION/PROJECT/GLOBAL, hybrid FTS+vector retrieval (RRF), memory graph, ประกอบ `get_context`, consolidation, และ `link_memory` / `merge_memory` / `update_memory` / `import_memory` / `extract_memories`
11
11
 
12
12
  > English: [README.md](README.md)
13
13
 
@@ -169,3 +169,9 @@ data/
169
169
 
170
170
  - path ของ DB override ได้ผ่าน env `MEMORY_DB_PATH`
171
171
  - ทุกอย่างใน `data/` ถูก git ignore
172
+
173
+ ## License
174
+
175
+ [MIT](LICENSE) © 2026 worakorn-prince
176
+
177
+ โปรเจกต์นี้เผยแพร่ภายใต้สัญญาอนุญาต MIT — อ่านข้อความฉบับเต็มได้ในไฟล์ [LICENSE](LICENSE)
package/design.md CHANGED
@@ -55,4 +55,5 @@
55
55
 
56
56
  ## Release
57
57
  - v2.0.0 ปล่อยแล้ว (npm, GitHub Release, Official MCP Registry, Glama)
58
- - v2.2.0 — tag + GitHub Release สร้างโดย build agent; `npm` / Official MCP Registry / Glama publish รอเจ้าของ re-auth (publish token หมดอายุ)
58
+ - v2.2.0 — ปล่อยครบ: tag + GitHub Release, **npm publish เรียบร้อย**, Official MCP Registry ดึงจาก npm อัตโนมัติ (ไม่ต้องรัน mcp-publisher แยก), Glama Sync เรียบร้อย
59
+ - v2.2.1 — แก้ Glama quality: เพิ่ม `pnpm.onlyBuiltDependencies: ["better-sqlite3"]` ให้ pnpm รันสคริปต์ดาวน์โหลด native binary สำหรับ Node 24, ขยับ better-sqlite3 เป็น `^12.9.0`, เพิ่ม override `ip-address@^10.2.0` (npm+pnpm) อุดช่องโหว่ XSS ผ่าน MCP SDK ไม่มีการเปลี่ยนโค้ด รอ `npm publish` + Glama ทดสอบใหม่
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "th-memory-mcp",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "mcpName": "io.github.worakorn-prince/th-memory-mcp",
5
5
  "description": "Adaptive Memory MCP server - SQLite-backed memory for OpenCode",
6
6
  "author": "worakorn-prince",
7
+ "license": "MIT",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "https://github.com/worakorn-prince/th-memory-mcp.git"
@@ -36,9 +37,20 @@
36
37
  },
37
38
  "dependencies": {
38
39
  "@modelcontextprotocol/sdk": "^1.0.0",
39
- "better-sqlite3": "^12.0.0",
40
+ "better-sqlite3": "^12.9.0",
40
41
  "zod": "^3.25.0"
41
42
  },
43
+ "overrides": {
44
+ "ip-address": "^10.2.0"
45
+ },
46
+ "pnpm": {
47
+ "onlyBuiltDependencies": [
48
+ "better-sqlite3"
49
+ ],
50
+ "overrides": {
51
+ "ip-address": "^10.2.0"
52
+ }
53
+ },
42
54
  "devDependencies": {
43
55
  "@types/better-sqlite3": "^7.6.0",
44
56
  "@types/node": "^22.0.0",