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 +21 -8
- package/package.json +1 -1
- package/sticky-server/.wrangler/state/v3/observability/miniflare-wobs-trace-store/a590acd76969f996ec6e4b599c3c09f58c283a76f2d61392b5d3046caf557602.sqlite-shm +0 -0
- package/sticky-server/.wrangler/state/v3/observability/miniflare-wobs-trace-store/a590acd76969f996ec6e4b599c3c09f58c283a76f2d61392b5d3046caf557602.sqlite-wal +0 -0
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", "
|
|
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
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
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(
|
|
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
|
Binary file
|