@otskit/mcp 0.6.1 → 0.6.3
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
|
@@ -226,7 +226,6 @@ var TOOL_DEFINITIONS = [
|
|
|
226
226
|
// src/server.ts
|
|
227
227
|
async function runServer() {
|
|
228
228
|
const config = loadConfig();
|
|
229
|
-
const db = getDb();
|
|
230
229
|
const server = new Server(
|
|
231
230
|
{ name: "ots-mcp", version: "0.1.0" },
|
|
232
231
|
{ capabilities: { tools: {} } }
|
|
@@ -236,6 +235,7 @@ async function runServer() {
|
|
|
236
235
|
}));
|
|
237
236
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
238
237
|
const { name, arguments: args } = request.params;
|
|
238
|
+
const db = getDb();
|
|
239
239
|
try {
|
|
240
240
|
let result;
|
|
241
241
|
switch (name) {
|
|
@@ -273,7 +273,10 @@ async function runServer() {
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
const exit = () => {
|
|
276
|
-
|
|
276
|
+
try {
|
|
277
|
+
getDb().close();
|
|
278
|
+
} catch {
|
|
279
|
+
}
|
|
277
280
|
process.exit(0);
|
|
278
281
|
};
|
|
279
282
|
process.stdin.on("close", exit);
|
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.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "OpenTimestamps MCP server — stamp, upgrade, verify via AI agents",
|
|
7
7
|
"repository": {
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"exports": "./dist/index.js",
|
|
20
20
|
"files": [
|
|
21
|
-
"dist"
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
22
24
|
],
|
|
23
25
|
"scripts": {
|
|
24
26
|
"build": "tsup src/index.ts --format esm --clean --external node-sqlite3-wasm",
|