stifler-memex-mcp 0.1.1

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/bin/memex-mcp.js +47 -0
  2. package/package.json +23 -0
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync, spawn } = require('child_process');
4
+ const path = require('path');
5
+
6
+ function check(cmd, label, installUrl) {
7
+ try {
8
+ execSync(`${cmd} --version`, { stdio: 'ignore' });
9
+ } catch {
10
+ console.error(`[stifler-memex-mcp] ${label} is required but not found.`);
11
+ console.error(`[stifler-memex-mcp] Install it from: ${installUrl}`);
12
+ process.exit(1);
13
+ }
14
+ }
15
+
16
+ function hasPythonPackage() {
17
+ try {
18
+ execSync('python -m memex --help', { stdio: 'ignore' });
19
+ return true;
20
+ } catch {
21
+ return false;
22
+ }
23
+ }
24
+
25
+ // Prerequisite checks
26
+ check('python', 'Python 3.11+', 'https://python.org');
27
+ check('uv', 'uv', 'https://docs.astral.sh/uv/getting-started/installation/');
28
+
29
+ // Install memex-mcp Python package if not present
30
+ if (!hasPythonPackage()) {
31
+ console.log('[stifler-memex-mcp] Installing memex-mcp Python package from PyPI...');
32
+ try {
33
+ execSync('uv pip install memex-mcp', { stdio: 'inherit' });
34
+ } catch {
35
+ console.error('[stifler-memex-mcp] Failed to install memex-mcp. Run: uv pip install memex-mcp');
36
+ process.exit(1);
37
+ }
38
+ }
39
+
40
+ // Delegate all args to the Python memex CLI
41
+ const args = process.argv.slice(2);
42
+ const child = spawn('python', ['-m', 'memex', ...args], {
43
+ stdio: 'inherit',
44
+ shell: process.platform === 'win32',
45
+ });
46
+
47
+ child.on('exit', (code) => process.exit(code ?? 0));
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "stifler-memex-mcp",
3
+ "version": "0.1.1",
4
+ "description": "Developer context continuity system for AI coding agents via MCP. Inspired by Vannevar Bush's 1945 concept of a machine that remembers everything.",
5
+ "bin": {
6
+ "memex-mcp": "./bin/memex-mcp.js",
7
+ "memex": "./bin/memex-mcp.js"
8
+ },
9
+ "scripts": {
10
+ "test": "node bin/memex-mcp.js --help"
11
+ },
12
+ "keywords": ["mcp", "ai-agents", "context", "knowledge-graph", "gemini", "claude-code"],
13
+ "author": "Hill Patel <hillaniljppatel@gmail.com>",
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/STiFLeR7/memex"
18
+ },
19
+ "homepage": "https://github.com/STiFLeR7/memex",
20
+ "engines": {
21
+ "node": ">=18"
22
+ }
23
+ }