mcp-memory-bucket 0.12.1 → 0.12.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.
@@ -1,2 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import '../dist/src/server.js';
2
+ if (process.argv[2] === 'stop') {
3
+ const { execSync } = await import('node:child_process');
4
+ const port = process.env.PORT || 8767;
5
+ try {
6
+ execSync(`kill -9 $(lsof -ti :${port})`, { stdio: 'ignore' });
7
+ console.error(`[mcp-memory-bucket] stopped server on port ${port}`);
8
+ } catch {
9
+ console.error(`[mcp-memory-bucket] no server running on port ${port}`);
10
+ }
11
+ process.exit(0);
12
+ }
13
+
14
+ await import('../dist/src/server.js');
@@ -2,6 +2,7 @@ import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { fileURLToPath } from 'node:url';
4
4
  import express from 'express';
5
+ import open from 'open';
5
6
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
6
7
  import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
7
8
  import { loadConfig } from './config.js';
@@ -222,6 +223,12 @@ app.listen(PORT, () => {
222
223
  console.error(`[memory-bucket] remote (folderfoo) skill folders${suffix}: ${config.remoteSkillFolders.map((f) => `${f.name}@${f.server}`).join(', ') || '(none)'}`);
223
224
  console.error(`[memory-bucket] remote (folderfoo) memory folders${suffix}: ${config.remoteMemoryFolders.map((f) => `${f.name}@${f.server}`).join(', ') || '(none)'}`);
224
225
  }
226
+ if (!process.env.MCP_MEMORY_BUCKET_NO_OPEN) {
227
+ const url = `http://localhost:${PORT}`;
228
+ open(url).catch(() => {
229
+ console.error(`[memory-bucket] could not auto-open browser — open ${url} manually`);
230
+ });
231
+ }
225
232
  });
226
233
  process.on('SIGINT', () => {
227
234
  remoteSkillPoller?.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-memory-bucket",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "type": "module",
5
5
  "description": "MCP server exposing skill_* (reusable coding patterns) and memory_* (point-in-time working context) tools over a markdown+frontmatter source, cached into SQLite at runtime.",
6
6
  "repository": {
@@ -44,6 +44,7 @@
44
44
  "gray-matter": "^4.0.3",
45
45
  "lit": "^3.3.3",
46
46
  "marked": "^18.0.10",
47
+ "open": "^10.2.0",
47
48
  "zod": "^3.23.8"
48
49
  },
49
50
  "devDependencies": {