gitmem-mcp 1.6.2 → 1.6.4

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/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.6.4] - 2026-06-11
11
+
12
+ ### Fixed
13
+ - **Init wizard upgrades stale configs**: Running `npx gitmem-mcp@latest init` on a project with an existing gitmem config now detects `"gitmem-mcp"` without `@latest` in the args and upgrades it in-place. Previously it skipped with "already configured" and left the stale reference untouched.
14
+
15
+ ## [1.6.3] - 2026-06-11
16
+
17
+ ### Fixed
18
+ - **Stale npx cache**: All MCP server configs now use `gitmem-mcp@latest` instead of `gitmem-mcp`. Without `@latest`, npx can serve a cached older version indefinitely — the `-y` flag only auto-confirms prompts, it does not force a registry check. Affects: init wizard, configure command, README, docs, and distribution configs.
19
+
10
20
  ## [1.6.2] - 2026-06-11
11
21
 
12
22
  ### Fixed
package/README.md CHANGED
@@ -101,7 +101,7 @@ Add this to your MCP client's config file:
101
101
  "mcpServers": {
102
102
  "gitmem": {
103
103
  "command": "npx",
104
- "args": ["-y", "gitmem-mcp"]
104
+ "args": ["-y", "gitmem-mcp@latest"]
105
105
  }
106
106
  }
107
107
  }
package/bin/gitmem.js CHANGED
@@ -313,7 +313,7 @@ function cmdConfigure() {
313
313
  mcpServers: {
314
314
  gitmem: {
315
315
  command: "npx",
316
- args: ["-y", "gitmem-mcp"],
316
+ args: ["-y", "gitmem-mcp@latest"],
317
317
  },
318
318
  },
319
319
  };
@@ -332,7 +332,7 @@ function cmdConfigure() {
332
332
  mcpServers: {
333
333
  gitmem: {
334
334
  command: "npx",
335
- args: ["-y", "gitmem-mcp"],
335
+ args: ["-y", "gitmem-mcp@latest"],
336
336
  env: {
337
337
  SUPABASE_URL: "https://YOUR_PROJECT.supabase.co",
338
338
  SUPABASE_SERVICE_ROLE_KEY: "eyJ...",
@@ -253,11 +253,11 @@ function log(icon, main, detail) {
253
253
  function buildMcpConfig() {
254
254
  const supabaseUrl = process.env.SUPABASE_URL;
255
255
  if (!supabaseUrl) {
256
- return { command: "npx", args: ["-y", "gitmem-mcp"] };
256
+ return { command: "npx", args: ["-y", "gitmem-mcp@latest"] };
257
257
  }
258
258
  return {
259
259
  command: "npx",
260
- args: ["-y", "gitmem-mcp"],
260
+ args: ["-y", "gitmem-mcp@latest"],
261
261
  env: {
262
262
  SUPABASE_URL: supabaseUrl,
263
263
  SUPABASE_SERVICE_ROLE_KEY:
@@ -555,6 +555,18 @@ async function stepMcpServer() {
555
555
  const hasGitmem = existing?.mcpServers?.gitmem || existing?.mcpServers?.["gitmem-mcp"];
556
556
 
557
557
  if (hasGitmem) {
558
+ // Check if existing config uses stale "gitmem-mcp" without @latest
559
+ const entry = existing.mcpServers.gitmem || existing.mcpServers["gitmem-mcp"];
560
+ const args = entry?.args;
561
+ if (Array.isArray(args)) {
562
+ const idx = args.indexOf("gitmem-mcp");
563
+ if (idx !== -1) {
564
+ args[idx] = "gitmem-mcp@latest";
565
+ writeJson(mcpPath, existing);
566
+ log(CHECK, `Updated MCP args to use gitmem-mcp@latest ${C.dim}(prevents stale npx cache)${C.reset}`);
567
+ return { done: true };
568
+ }
569
+ }
558
570
  log(CHECK, `MCP server already configured ${C.dim}(${mcpName})${C.reset}`);
559
571
  return { done: false };
560
572
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitmem-mcp",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "mcpName": "io.github.gitmem-dev/gitmem",
5
5
  "description": "Persistent learning memory for AI coding agents. Memory that compounds.",
6
6
  "type": "module",