@cocaxcode/logbook-mcp 0.4.4 → 0.4.6
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/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-
|
|
9
|
+
const { createServer } = await import("./server-IHILALET.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-
|
|
15
|
+
const { runCli } = await import("./cli-4DE2DIGU.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.
|
|
1142
|
+
var VERSION = true ? "0.4.5" : "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.
|
|
3
|
+
"version": "0.4.6",
|
|
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": {
|