traqr-memory-mcp 0.2.11 → 0.2.13

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
@@ -42,7 +42,7 @@ psql postgresql://postgres:postgres@localhost:5432/postgres -f setup.sql
42
42
  {
43
43
  "traqr-memory": {
44
44
  "command": "npx",
45
- "args": ["traqr-memory-mcp"],
45
+ "args": ["traqr-memory-mcp@latest"],
46
46
  "env": {
47
47
  "SUPABASE_URL": "https://xxx.supabase.co",
48
48
  "SUPABASE_SERVICE_ROLE_KEY": "eyJ...",
@@ -57,7 +57,7 @@ psql postgresql://postgres:postgres@localhost:5432/postgres -f setup.sql
57
57
  {
58
58
  "traqr-memory": {
59
59
  "command": "npx",
60
- "args": ["-p", "pg", "traqr-memory-mcp"],
60
+ "args": ["-p", "pg", "traqr-memory-mcp@latest"],
61
61
  "env": {
62
62
  "DATABASE_URL": "postgresql://user:pass@host:5432/dbname",
63
63
  "OPENAI_API_KEY": "sk-..."
@@ -71,7 +71,7 @@ psql postgresql://postgres:postgres@localhost:5432/postgres -f setup.sql
71
71
  {
72
72
  "traqr-memory": {
73
73
  "command": "npx",
74
- "args": ["-p", "@aws-sdk/client-bedrock-runtime", "-p", "pg", "traqr-memory-mcp"],
74
+ "args": ["-p", "@aws-sdk/client-bedrock-runtime", "-p", "pg", "traqr-memory-mcp@latest"],
75
75
  "env": {
76
76
  "DATABASE_URL": "postgresql://user:pass@host:5432/dbname",
77
77
  "EMBEDDING_PROVIDER": "bedrock",
@@ -87,7 +87,7 @@ psql postgresql://postgres:postgres@localhost:5432/postgres -f setup.sql
87
87
  {
88
88
  "traqr-memory": {
89
89
  "command": "npx",
90
- "args": ["traqr-memory-mcp"],
90
+ "args": ["traqr-memory-mcp@latest"],
91
91
  "env": {
92
92
  "SUPABASE_URL": "https://xxx.supabase.co",
93
93
  "SUPABASE_SERVICE_ROLE_KEY": "eyJ...",
@@ -102,7 +102,7 @@ psql postgresql://postgres:postgres@localhost:5432/postgres -f setup.sql
102
102
  {
103
103
  "traqr-memory": {
104
104
  "command": "npx",
105
- "args": ["traqr-memory-mcp"],
105
+ "args": ["traqr-memory-mcp@latest"],
106
106
  "env": {
107
107
  "SUPABASE_URL": "https://xxx.supabase.co",
108
108
  "SUPABASE_SERVICE_ROLE_KEY": "eyJ...",
package/UPGRADING.md CHANGED
@@ -26,6 +26,39 @@
26
26
 
27
27
  4. Restart the MCP server. The startup line should now show the new schema version.
28
28
 
29
+ ## Gotcha: the `npx` cache can freeze you at a stale version
30
+
31
+ Most MCP clients launch this server via **`npx -y traqr-memory-mcp`** (see your
32
+ client config, e.g. `~/.claude.json` → `mcpServers`), **not** via a local
33
+ `npm install`. That changes how upgrades take effect:
34
+
35
+ - With an **unpinned** spec (`traqr-memory-mcp`, no `@version`), npx resolves the
36
+ dependency tree **once**, caches it under `~/.npm/_npx/<hash>/node_modules/`,
37
+ and on later spawns **reuses the cache without re-checking the registry**. New
38
+ publishes never load — you can run week-old code while believing your merges
39
+ and `npm update` took effect. (This bit the whole Traqr fleet 2026-06-07 →
40
+ 06-14: ~7-day-stale memory code ran fleet-wide while every published fix sat
41
+ unloaded. See `docs/claude/proxy-invariant.md` § Distribution layer.)
42
+
43
+ **`npm update` does NOT fix this** — it updates a local `node_modules`, but the
44
+ npx launcher reads from the separate `_npx` cache.
45
+
46
+ **Fixes (either works):**
47
+
48
+ 1. **Clear the npx cache** so the next spawn re-resolves to the latest publish:
49
+ ```bash
50
+ rm -rf ~/.npm/_npx/* # or just the specific <hash> dir holding it
51
+ ```
52
+ 2. **Pin `@latest` in your MCP config** so npx re-checks the registry every
53
+ spawn (no freeze, at the cost of one registry round-trip per cold start):
54
+ ```jsonc
55
+ "args": ["-y", "traqr-memory-mcp@latest"]
56
+ ```
57
+
58
+ **Either way, restart your MCP client.** An already-running server keeps the
59
+ stale code in memory until the client session (e.g. Claude Code) restarts — a
60
+ cache clear only takes effect on the next process spawn.
61
+
29
62
  ## Schema Version Policy
30
63
 
31
64
  - **Patch updates** (0.1.x) never change the database schema
@@ -1 +1 @@
1
- {"version":3,"file":"config-templates.d.ts","sourceRoot":"","sources":["../../src/cli/config-templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,CAAA;AAChD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;AAEnF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,UAAU,CAAA;IACd,SAAS,EAAE,iBAAiB,CAAA;IAE5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAiD1E;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAEhE"}
1
+ {"version":3,"file":"config-templates.d.ts","sourceRoot":"","sources":["../../src/cli/config-templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,CAAA;AAChD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;AAEnF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,UAAU,CAAA;IACd,SAAS,EAAE,iBAAiB,CAAA;IAE5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAsD1E;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAEhE"}
@@ -11,7 +11,12 @@ export function buildMcpConfig(answers) {
11
11
  args.push('-p', '@aws-sdk/client-bedrock-runtime');
12
12
  if (answers.db === 'postgres')
13
13
  args.push('-p', 'pg');
14
- args.push('traqr-memory-mcp');
14
+ // Pin `@latest` (TD-864, Sean-approved 2026-06-15): an UNPINNED `traqr-memory-mcp`
15
+ // makes npx cache the first resolve and never re-check the registry, so users
16
+ // freeze at their install-time version and never receive published fixes. With
17
+ // `@latest`, npx re-checks the registry each spawn. Keep in sync with the README
18
+ // config blocks (the "Templates match the README exactly" contract above).
19
+ args.push('traqr-memory-mcp@latest');
15
20
  // Env vars
16
21
  const env = {};
17
22
  // DB
@@ -1 +1 @@
1
- {"version":3,"file":"config-templates.js","sourceRoot":"","sources":["../../src/cli/config-templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAoBH,MAAM,UAAU,cAAc,CAAC,OAAsB;IACnD,MAAM,IAAI,GAAa,EAAE,CAAA;IAEzB,gCAAgC;IAChC,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS;QAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,iCAAiC,CAAC,CAAA;IACvF,IAAI,OAAO,CAAC,EAAE,KAAK,UAAU;QAAE,IAAI,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,CAAA;IACjE,CAAC;IAED,YAAY;IACZ,QAAQ,OAAO,CAAC,SAAS,EAAE,CAAC;QAC1B,KAAK,QAAQ;YACX,IAAI,OAAO,CAAC,SAAS;gBAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,SAAS,CAAA;YAC7D,MAAK;QACP,KAAK,QAAQ;YACX,IAAI,OAAO,CAAC,SAAS;gBAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,SAAS,CAAA;YAC7D,MAAK;QACP,KAAK,SAAS;YACZ,GAAG,CAAC,kBAAkB,GAAG,SAAS,CAAA;YAClC,GAAG,CAAC,eAAe,GAAG,wBAAwB,CAAA;YAC9C,IAAI,OAAO,CAAC,SAAS;gBAAE,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAA;YACzD,MAAK;QACP,KAAK,QAAQ;YACX,GAAG,CAAC,kBAAkB,GAAG,QAAQ,CAAA;YACjC,IAAI,OAAO,CAAC,SAAS;gBAAE,GAAG,CAAC,eAAe,GAAG,OAAO,CAAC,SAAS,CAAA;YAC9D,IAAI,OAAO,CAAC,WAAW;gBAAE,GAAG,CAAC,eAAe,GAAG,OAAO,CAAC,WAAW,CAAA;YAClE,MAAK;QACP,KAAK,MAAM;YACT,GAAG,CAAC,kBAAkB,GAAG,MAAM,CAAA;YAC/B,MAAK;IACT,CAAC;IAED,OAAO;QACL,cAAc,EAAE;YACd,OAAO,EAAE,KAAK;YACd,IAAI;YACJ,GAAG;SACJ;KACF,CAAA;AACH,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAA2B;IACtD,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACxC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "traqr-memory-mcp",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Memory-as-a-service MCP server for AI agents. 11 tools, Postgres + pgvector, multi-strategy retrieval. Works with Claude Code, Cursor, Codex, and any MCP client.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",