lunaarc-mcp 1.2.5 → 1.2.6

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/server.js +9 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -26,7 +26,7 @@ catch (error) {
26
26
  // Create MCP server
27
27
  const server = new index_js_1.Server({
28
28
  name: 'lunaarc-mcp',
29
- version: '1.2.4',
29
+ version: '1.2.6',
30
30
  }, {
31
31
  capabilities: {
32
32
  tools: {},
@@ -77,6 +77,14 @@ async function main() {
77
77
  console.error('LunaArc MCP Server started');
78
78
  console.error(`API URL: ${process.env.LUNAARC_API_URL}`);
79
79
  console.error(`Available tools: ${allTools.map((t) => t.name).join(', ')}`);
80
+ // Handle graceful shutdown
81
+ const shutdown = async () => {
82
+ console.error('LunaArc MCP Server shutting down...');
83
+ await server.close();
84
+ process.exit(0);
85
+ };
86
+ process.on('SIGINT', shutdown);
87
+ process.on('SIGTERM', shutdown);
80
88
  }
81
89
  main().catch((error) => {
82
90
  console.error('Fatal error:', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lunaarc-mcp",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "MCP Server for LunaArc - Access Wiki and Kanban from AI assistants",
5
5
  "main": "dist/server.js",
6
6
  "bin": {