sticky-note-cli 3.1.19 → 3.1.20

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/bin/cli.js CHANGED
@@ -1149,7 +1149,7 @@ async function cmdInit() {
1149
1149
  const stickyMcpEntry = {
1150
1150
  type: "stdio",
1151
1151
  command: "npx",
1152
- args: ["-y", "-p", "sticky-note-cli", "sticky-note", "mcp-server"],
1152
+ args: ["-y", "sticky-note-cli", "mcp-server"],
1153
1153
  tools: ["*"],
1154
1154
  };
1155
1155
  if (ensureMcpInCopilotCliConfig("sticky-note", stickyMcpEntry)) {
@@ -1168,14 +1168,15 @@ async function cmdInit() {
1168
1168
  try {
1169
1169
  const claudeGlobal = readJsonSafe(claudeGlobalSettingsPath, {});
1170
1170
  if (!claudeGlobal.mcpServers) claudeGlobal.mcpServers = {};
1171
- if (!claudeGlobal.mcpServers["sticky-note"]) {
1172
- claudeGlobal.mcpServers["sticky-note"] = {
1173
- type: "stdio",
1174
- command: "npx",
1175
- args: ["-y", "-p", "sticky-note-cli", "sticky-note", "mcp-server"],
1176
- };
1171
+ const correctMcpEntry = { type: "stdio", command: "npx", args: ["-y", "sticky-note-cli", "mcp-server"] };
1172
+ const existing = claudeGlobal.mcpServers["sticky-note"];
1173
+ const isStale = existing && JSON.stringify(existing.args) !== JSON.stringify(correctMcpEntry.args);
1174
+ if (!existing || isStale) {
1175
+ claudeGlobal.mcpServers["sticky-note"] = correctMcpEntry;
1177
1176
  fs.writeFileSync(claudeGlobalSettingsPath, JSON.stringify(claudeGlobal, null, 2) + "\n");
1178
- print(" [OK] Registered sticky-note MCP server in ~/.claude/settings.json (Claude Code)");
1177
+ print(isStale
1178
+ ? " [OK] Updated sticky-note MCP entry in ~/.claude/settings.json (fixed args)"
1179
+ : " [OK] Registered sticky-note MCP server in ~/.claude/settings.json (Claude Code)");
1179
1180
  } else {
1180
1181
  print(" ⏭️ sticky-note already registered in ~/.claude/settings.json");
1181
1182
  }
@@ -1363,6 +1364,18 @@ function cmdUpdate() {
1363
1364
  // non-fatal
1364
1365
  }
1365
1366
 
1367
+ // Fix stale MCP entry in ~/.claude/settings.json (old -p flag broke Windows)
1368
+ try {
1369
+ const globalSettingsPath = path.join(os.homedir(), ".claude", "settings.json");
1370
+ const globalSettings = readJsonSafe(globalSettingsPath, {});
1371
+ const mcpEntry = globalSettings.mcpServers && globalSettings.mcpServers["sticky-note"];
1372
+ if (mcpEntry && JSON.stringify(mcpEntry.args).includes("-p")) {
1373
+ globalSettings.mcpServers["sticky-note"].args = ["-y", "sticky-note-cli", "mcp-server"];
1374
+ fs.writeFileSync(globalSettingsPath, JSON.stringify(globalSettings, null, 2) + "\n");
1375
+ print(" [OK] ~/.claude/settings.json: fixed sticky-note MCP args (Windows compat)");
1376
+ }
1377
+ } catch (_) { /* non-fatal */ }
1378
+
1366
1379
  print(`\n ✨ Scripts updated to v${VERSION}`);
1367
1380
 
1368
1381
  // Update instruction files (section-based: only replaces between markers)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sticky-note-cli",
3
- "version": "3.1.19",
3
+ "version": "3.1.20",
4
4
  "description": "Human-to-human handoff for AI coding assistants. Git-backed shared memory for Claude Code and Copilot CLI.",
5
5
  "license": "MIT",
6
6
  "bin": {