@otskit/mcp 0.7.1 → 0.7.2

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
@@ -104,7 +104,7 @@ npm test # run tests
104
104
 
105
105
  ## Dependencies
106
106
 
107
- - [`@otskit/core`](https://github.com/AlexAlves87/otskit-core) - OpenTimestamps core logic
108
- - [`@otskit/client`](https://github.com/AlexAlves87/otskit-client) - OTS calendar client
107
+ - [`@otskit/core`](https://github.com/OTSkit/otskit-core) - OpenTimestamps core logic
108
+ - [`@otskit/client`](https://github.com/OTSkit/otskit-client) - OTS calendar client
109
109
  - [`@modelcontextprotocol/sdk`](https://github.com/modelcontextprotocol/typescript-sdk) - MCP SDK
110
110
  - `node-sqlite3-wasm` - local database (pure WASM, no native compilation)
@@ -2,7 +2,7 @@ import {
2
2
  getDb,
3
3
  loadConfig,
4
4
  upgradeTimestamp
5
- } from "./chunk-4S4MSBQL.js";
5
+ } from "./chunk-TNLRNQZ3.js";
6
6
 
7
7
  // src/tools/watch.ts
8
8
  var DEFAULT_WATCH_INTERVAL_MINUTES = 30;
@@ -3,8 +3,9 @@ import {
3
3
  getStamp,
4
4
  insertStamp,
5
5
  listStamps,
6
- logOperation
7
- } from "./chunk-4S4MSBQL.js";
6
+ logOperation,
7
+ updateStampStatus
8
+ } from "./chunk-TNLRNQZ3.js";
8
9
  import {
9
10
  writeAtomic
10
11
  } from "./chunk-YFSUDT24.js";
@@ -89,12 +90,20 @@ async function verifyTimestamp(input, db, config) {
89
90
  logOperation(db, { stamp_id: input.id, action: "verify", result: "failed", error_msg: result.error });
90
91
  return { status: "unknown", hash: record.hash };
91
92
  }
93
+ const bitcoinTime = new Date(result.timestamp * 1e3).toISOString();
94
+ const now = (/* @__PURE__ */ new Date()).toISOString();
95
+ updateStampStatus(db, input.id, {
96
+ status: "confirmed",
97
+ bitcoin_block: result.blockHeight,
98
+ bitcoin_time: bitcoinTime,
99
+ confirmed_at: now
100
+ });
92
101
  logOperation(db, { stamp_id: input.id, action: "verify", result: "success" });
93
102
  return {
94
103
  status: "confirmed",
95
104
  hash: record.hash,
96
105
  bitcoin_block: result.blockHeight,
97
- bitcoin_time: new Date(result.timestamp * 1e3).toISOString()
106
+ bitcoin_time: bitcoinTime
98
107
  };
99
108
  }
100
109
 
@@ -300,6 +300,7 @@ export {
300
300
  backupDb,
301
301
  insertStamp,
302
302
  getStamp,
303
+ updateStampStatus,
303
304
  listStamps,
304
305
  logOperation,
305
306
  upgradeTimestamp
@@ -2,13 +2,13 @@ import {
2
2
  createTimestamp,
3
3
  listPending,
4
4
  verifyTimestamp
5
- } from "./chunk-KVHJHTFL.js";
5
+ } from "./chunk-PWAVQJWD.js";
6
6
  import {
7
7
  backupDb,
8
8
  getDb,
9
9
  loadConfig,
10
10
  upgradeTimestamp
11
- } from "./chunk-4S4MSBQL.js";
11
+ } from "./chunk-TNLRNQZ3.js";
12
12
  import "./chunk-YFSUDT24.js";
13
13
 
14
14
  // src/cli.ts
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ Commands:
20
20
  }
21
21
  switch (command) {
22
22
  case "serve": {
23
- const { runServer } = await import("./server-NDG4QZ56.js");
23
+ const { runServer } = await import("./server-DBVOG2RS.js");
24
24
  await runServer();
25
25
  break;
26
26
  }
@@ -49,7 +49,7 @@ switch (command) {
49
49
  break;
50
50
  }
51
51
  case "watch": {
52
- const { normalizeWatchInterval, watchPending } = await import("./watch-TQR2L42L.js");
52
+ const { normalizeWatchInterval, watchPending } = await import("./watch-TOXK5UVL.js");
53
53
  const parsed = args[0] ? parseInt(args[0], 10) : NaN;
54
54
  const interval = normalizeWatchInterval(isNaN(parsed) ? void 0 : parsed);
55
55
  if (args[0] && (isNaN(parsed) || parsed < 15))
@@ -65,7 +65,7 @@ switch (command) {
65
65
  case "check-pending":
66
66
  case "backup":
67
67
  case "scheduler": {
68
- const { runCli } = await import("./cli-WOUUWARK.js");
68
+ const { runCli } = await import("./cli-XKUZWP2T.js");
69
69
  await runCli(command, args);
70
70
  break;
71
71
  }
@@ -2,16 +2,16 @@ import {
2
2
  createTimestamp,
3
3
  listPending,
4
4
  verifyTimestamp
5
- } from "./chunk-KVHJHTFL.js";
5
+ } from "./chunk-PWAVQJWD.js";
6
6
  import {
7
7
  normalizeWatchInterval
8
- } from "./chunk-XG7NDZR3.js";
8
+ } from "./chunk-2QPOSJTC.js";
9
9
  import {
10
10
  getDb,
11
11
  getStamp,
12
12
  loadConfig,
13
13
  upgradeTimestamp
14
- } from "./chunk-4S4MSBQL.js";
14
+ } from "./chunk-TNLRNQZ3.js";
15
15
  import "./chunk-YFSUDT24.js";
16
16
 
17
17
  // src/server.ts
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  normalizeWatchInterval,
3
3
  watchPending
4
- } from "./chunk-XG7NDZR3.js";
5
- import "./chunk-4S4MSBQL.js";
4
+ } from "./chunk-2QPOSJTC.js";
5
+ import "./chunk-TNLRNQZ3.js";
6
6
  import "./chunk-YFSUDT24.js";
7
7
  export {
8
8
  normalizeWatchInterval,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@otskit/mcp",
3
3
  "mcpName": "io.github.AlexAlves87/otskit-mcp",
4
- "version": "0.7.1",
4
+ "version": "0.7.2",
5
5
  "license": "MIT",
6
6
  "description": "OpenTimestamps MCP server — stamp, upgrade, verify via AI agents",
7
7
  "repository": {