@postnesia/mcp 0.1.18 → 0.1.19
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 +13 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -410,14 +410,21 @@ async function main() {
|
|
|
410
410
|
await server.connect(transport);
|
|
411
411
|
console.error('Postnesia MCP Server running on stdio');
|
|
412
412
|
}
|
|
413
|
-
const exit = () => {
|
|
413
|
+
const exit = (e) => {
|
|
414
414
|
closeDb();
|
|
415
|
-
|
|
415
|
+
if (e === 'ERROR') {
|
|
416
|
+
process.exit(1);
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
process.exit(0);
|
|
420
|
+
}
|
|
416
421
|
};
|
|
417
|
-
|
|
422
|
+
try {
|
|
423
|
+
await main();
|
|
424
|
+
}
|
|
425
|
+
catch (error) {
|
|
418
426
|
console.error('Fatal error:', error);
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
});
|
|
427
|
+
exit('ERROR');
|
|
428
|
+
}
|
|
422
429
|
process.on('SIGINT', exit);
|
|
423
430
|
process.on('SIGTERM', exit);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postnesia/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "An MCP server to interact with the Postnesia database",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
16
16
|
"zod": "^4.3.6",
|
|
17
|
-
"@postnesia/db": "0.1.
|
|
17
|
+
"@postnesia/db": "0.1.19"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^24.12.0",
|