@vornrun/mcp 0.1.0 → 0.1.1-beta.1
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 +33 -11
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -42,13 +42,7 @@ import fs from "fs";
|
|
|
42
42
|
|
|
43
43
|
// ../server/src/logger.ts
|
|
44
44
|
import pino from "pino";
|
|
45
|
-
var log = pino({
|
|
46
|
-
level: process.env.VITEST ? "silent" : "info",
|
|
47
|
-
// Always write to stderr so the main process can capture via electron-log.
|
|
48
|
-
// Previously production used the default (stdout), but nothing reads stdout
|
|
49
|
-
// after the initial port banner — so all server logs were silently dropped.
|
|
50
|
-
transport: { target: "pino/file", options: { destination: 2 } }
|
|
51
|
-
});
|
|
45
|
+
var log = pino({ level: process.env.VITEST ? "silent" : "info" }, process.stderr);
|
|
52
46
|
var logger_default = log;
|
|
53
47
|
|
|
54
48
|
// ../shared/src/types.ts
|
|
@@ -243,7 +237,8 @@ function createSchema() {
|
|
|
243
237
|
status_source TEXT,
|
|
244
238
|
saved_at INTEGER,
|
|
245
239
|
sort_order INTEGER NOT NULL DEFAULT 0,
|
|
246
|
-
worktree_name TEXT
|
|
240
|
+
worktree_name TEXT,
|
|
241
|
+
agent_session_id TEXT
|
|
247
242
|
);
|
|
248
243
|
|
|
249
244
|
CREATE TABLE IF NOT EXISTS schedule_log (
|
|
@@ -433,7 +428,7 @@ function migrateSchema(d) {
|
|
|
433
428
|
if (version < 6) {
|
|
434
429
|
d.transaction(() => {
|
|
435
430
|
const sessionCols = d.prepare("PRAGMA table_info(sessions)").all();
|
|
436
|
-
if (!sessionCols.some((c) => c.name === "claude_session_id")) {
|
|
431
|
+
if (!sessionCols.some((c) => c.name === "claude_session_id") && !sessionCols.some((c) => c.name === "agent_session_id")) {
|
|
437
432
|
d.exec("ALTER TABLE sessions ADD COLUMN claude_session_id TEXT");
|
|
438
433
|
}
|
|
439
434
|
d.prepare(
|
|
@@ -442,6 +437,33 @@ function migrateSchema(d) {
|
|
|
442
437
|
})();
|
|
443
438
|
logger_default.info("[database] migrated schema to version 6 (claude session id)");
|
|
444
439
|
}
|
|
440
|
+
if (version < 7) {
|
|
441
|
+
d.transaction(() => {
|
|
442
|
+
const sessionCols = d.prepare("PRAGMA table_info(sessions)").all();
|
|
443
|
+
const hasOld = sessionCols.some((c) => c.name === "claude_session_id");
|
|
444
|
+
const hasNew = sessionCols.some((c) => c.name === "agent_session_id");
|
|
445
|
+
if (hasOld && !hasNew) {
|
|
446
|
+
try {
|
|
447
|
+
d.exec("ALTER TABLE sessions RENAME COLUMN claude_session_id TO agent_session_id");
|
|
448
|
+
} catch {
|
|
449
|
+
d.exec("ALTER TABLE sessions ADD COLUMN agent_session_id TEXT");
|
|
450
|
+
d.exec("UPDATE sessions SET agent_session_id = claude_session_id");
|
|
451
|
+
}
|
|
452
|
+
} else if (hasOld && hasNew) {
|
|
453
|
+
d.exec(
|
|
454
|
+
"UPDATE sessions SET agent_session_id = claude_session_id WHERE agent_session_id IS NULL AND claude_session_id IS NOT NULL"
|
|
455
|
+
);
|
|
456
|
+
} else if (!hasNew) {
|
|
457
|
+
d.exec("ALTER TABLE sessions ADD COLUMN agent_session_id TEXT");
|
|
458
|
+
}
|
|
459
|
+
d.prepare(
|
|
460
|
+
"INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('schema_version', '7')"
|
|
461
|
+
).run();
|
|
462
|
+
})();
|
|
463
|
+
logger_default.info(
|
|
464
|
+
"[database] migrated schema to version 7 (rename claude_session_id \u2192 agent_session_id)"
|
|
465
|
+
);
|
|
466
|
+
}
|
|
445
467
|
}
|
|
446
468
|
function verifySchema(d) {
|
|
447
469
|
const expectedByTable = {
|
|
@@ -471,7 +493,7 @@ function verifySchema(d) {
|
|
|
471
493
|
ddl: "ALTER TABLE sessions ADD COLUMN sort_order INTEGER NOT NULL DEFAULT 0"
|
|
472
494
|
},
|
|
473
495
|
{ column: "worktree_name", ddl: "ALTER TABLE sessions ADD COLUMN worktree_name TEXT" },
|
|
474
|
-
{ column: "
|
|
496
|
+
{ column: "agent_session_id", ddl: "ALTER TABLE sessions ADD COLUMN agent_session_id TEXT" }
|
|
475
497
|
],
|
|
476
498
|
agent_commands: [
|
|
477
499
|
{
|
|
@@ -2492,7 +2514,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
|
|
|
2492
2514
|
console.error = (...args) => _origError("[mcp:error]", ...args);
|
|
2493
2515
|
async function main() {
|
|
2494
2516
|
configManager.init();
|
|
2495
|
-
const version = true ? "0.1.
|
|
2517
|
+
const version = true ? "0.1.1-beta.1" : createRequire(import.meta.url)("../package.json").version;
|
|
2496
2518
|
const server = createMcpServer(version);
|
|
2497
2519
|
const transport = new StdioServerTransport();
|
|
2498
2520
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vornrun/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-beta.1",
|
|
4
4
|
"description": "Vorn MCP server — task management, git, and workflow tools for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"dev": "tsx src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
35
|
-
"libsql": "^0.5.
|
|
34
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
35
|
+
"libsql": "^0.5.29",
|
|
36
36
|
"pino": "^10.3.1",
|
|
37
|
-
"ws": "^8.
|
|
38
|
-
"zod": "^3.
|
|
37
|
+
"ws": "^8.20.0",
|
|
38
|
+
"zod": "^4.3.6"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vornrun/server": "0.
|
|
42
|
-
"@vornrun/shared": "0.
|
|
43
|
-
"tsup": "^8.5.
|
|
44
|
-
"tsx": "^4.
|
|
45
|
-
"typescript": "^
|
|
41
|
+
"@vornrun/server": "0.1.1",
|
|
42
|
+
"@vornrun/shared": "0.1.1",
|
|
43
|
+
"tsup": "^8.5.1",
|
|
44
|
+
"tsx": "^4.21.0",
|
|
45
|
+
"typescript": "^6.0.2"
|
|
46
46
|
}
|
|
47
47
|
}
|