chron-mcp 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ const os_1 = require("os");
39
39
  const path_1 = require("path");
40
40
  const index_1 = require("./db/index");
41
41
  const server_1 = require("./server");
42
- const VERSION = '0.1.9';
42
+ const VERSION = '0.1.10';
43
43
  // --version: quick install check, safe to run anywhere
44
44
  if (process.argv[2] === '--version' || process.argv[2] === '-v') {
45
45
  process.stdout.write(`chron-mcp ${VERSION}\n`);
@@ -47,6 +47,17 @@ if (process.argv[2] === '--version' || process.argv[2] === '-v') {
47
47
  }
48
48
  async function main() {
49
49
  const dbPath = process.env.CHRON_DB_PATH ?? (0, path_1.join)((0, os_1.homedir)(), '.chron', 'chron.db');
50
+ // Running interactively in a terminal — not from an MCP client
51
+ if (process.stdin.isTTY) {
52
+ process.stdout.write(`chron-mcp ${VERSION} ✓\n`);
53
+ process.stdout.write(`database: ${dbPath}\n\n`);
54
+ process.stdout.write(`Installation verified. Add to your MCP config:\n\n`);
55
+ process.stdout.write(` Claude Code: claude mcp add chron -- npx -y chron-mcp\n`);
56
+ process.stdout.write(` Claude Desktop: add to claude_desktop_config.json\n`);
57
+ process.stdout.write(` Cursor: add to ~/.cursor/mcp.json\n\n`);
58
+ process.stdout.write(`See README: https://github.com/SirinivasK/chron\n`);
59
+ process.exit(0);
60
+ }
50
61
  process.stderr.write(`chron-mcp ${VERSION} starting\n`);
51
62
  process.stderr.write(`database: ${dbPath}\n`);
52
63
  const db = await (0, index_1.initDb)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chron-mcp",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "mcpName": "io.github.SirinivasK/chron",
5
5
  "description": "Audit-grade timestamped logs for every AI conversation",
6
6
  "repository": {