gitmem-mcp 1.6.3 → 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,11 @@ 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
+
10
15
  ## [1.6.3] - 2026-06-11
11
16
 
12
17
  ### Fixed
@@ -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.3",
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",