@cocaxcode/logbook-mcp 0.4.5 → 0.4.9

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
@@ -59,7 +59,7 @@ Your TODOs live in 5 different places: Jira, sticky notes, code comments, your h
59
59
  ### Claude Code (recommended)
60
60
 
61
61
  ```bash
62
- claude mcp add logbook-mcp -- npx @cocaxcode/logbook-mcp@latest --mcp
62
+ claude mcp add --scope user logbook -- npx @cocaxcode/logbook-mcp@latest --mcp
63
63
  ```
64
64
 
65
65
  ### Claude Desktop
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/cli.ts
4
- var VERSION = true ? "0.4.4" : "0.0.0";
4
+ var VERSION = true ? "0.4.9" : "0.0.0";
5
5
  async function runCli(argv) {
6
6
  if (argv.includes("--version") || argv.includes("-v")) {
7
7
  console.log(`logbook-mcp v${VERSION}`);
package/dist/index.js CHANGED
@@ -6,13 +6,13 @@ async function main() {
6
6
  const hasMcpFlag = argv.includes("--mcp");
7
7
  if (hasMcpFlag) {
8
8
  const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
9
- const { createServer } = await import("./server-ZZPLDJYJ.js");
9
+ const { createServer } = await import("./server-SU6V6LNU.js");
10
10
  const server = createServer();
11
11
  const transport = new StdioServerTransport();
12
12
  await server.connect(transport);
13
13
  console.error("logbook-mcp server running on stdio");
14
14
  } else {
15
- const { runCli } = await import("./cli-UXMTSIJO.js");
15
+ const { runCli } = await import("./cli-LHRPHO2C.js");
16
16
  await runCli(argv);
17
17
  }
18
18
  }
@@ -59,8 +59,6 @@ CREATE INDEX IF NOT EXISTS idx_todos_repo ON todos(repo_id);
59
59
  CREATE INDEX IF NOT EXISTS idx_todos_topic ON todos(topic_id);
60
60
  CREATE INDEX IF NOT EXISTS idx_todos_status ON todos(status);
61
61
  CREATE INDEX IF NOT EXISTS idx_todos_date ON todos(created_at);
62
- CREATE INDEX IF NOT EXISTS idx_todos_remind ON todos(remind_at);
63
-
64
62
  CREATE TABLE IF NOT EXISTS code_todo_snapshots (
65
63
  id INTEGER PRIMARY KEY AUTOINCREMENT,
66
64
  repo_id INTEGER NOT NULL REFERENCES repos(id) ON DELETE CASCADE,
@@ -117,6 +115,9 @@ ALTER TABLE todos ADD COLUMN remind_at TEXT;
117
115
  ALTER TABLE todos ADD COLUMN remind_pattern TEXT;
118
116
  ALTER TABLE todos ADD COLUMN remind_last_done TEXT;
119
117
  `;
118
+ var POST_MIGRATION_SQL = `
119
+ CREATE INDEX IF NOT EXISTS idx_todos_remind ON todos(remind_at);
120
+ `;
120
121
  var SEED_TOPICS_SQL = `
121
122
  INSERT OR IGNORE INTO topics (name, description, commit_prefix, is_custom) VALUES
122
123
  ('feature', 'Funcionalidad nueva', 'feat', 0),
@@ -146,9 +147,14 @@ function getDb(dbPath) {
146
147
  for (const stmt of MIGRATIONS_SQL.split(";").map((s) => s.trim()).filter(Boolean)) {
147
148
  try {
148
149
  db.exec(stmt);
149
- } catch {
150
+ } catch (e) {
151
+ const msg = e instanceof Error ? e.message : String(e);
152
+ if (!msg.includes("duplicate column")) {
153
+ console.error(`Migration warning: ${msg}`);
154
+ }
150
155
  }
151
156
  }
157
+ db.exec(POST_MIGRATION_SQL);
152
158
  db.exec(SEED_TOPICS_SQL);
153
159
  return db;
154
160
  }
@@ -1133,7 +1139,7 @@ function registerRemindersResource(server) {
1133
1139
  }
1134
1140
 
1135
1141
  // src/server.ts
1136
- var VERSION = true ? "0.4.4" : "0.0.0";
1142
+ var VERSION = true ? "0.4.9" : "0.0.0";
1137
1143
  function createServer() {
1138
1144
  const server = new McpServer({
1139
1145
  name: "logbook-mcp",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocaxcode/logbook-mcp",
3
- "version": "0.4.5",
3
+ "version": "0.4.9",
4
4
  "description": "Developer logbook MCP server. Notes, TODOs, reminders, code TODOs with full-text search. Zero config, auto-detects projects, SQLite-powered. Works with Claude, Cursor, Windsurf, Copilot, Gemini, Codex.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,8 @@
20
20
  "test": "vitest run",
21
21
  "test:watch": "vitest",
22
22
  "typecheck": "tsc --noEmit",
23
- "inspector": "npx @modelcontextprotocol/inspector node dist/index.js -- --mcp"
23
+ "inspector": "npx @modelcontextprotocol/inspector node dist/index.js -- --mcp",
24
+ "prepublishOnly": "npm run typecheck && npm test && npm run build"
24
25
  },
25
26
  "engines": {
26
27
  "node": ">=20.0.0"