nucleus-mcp 1.8.1 → 1.12.0
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/README.md +3 -3
- package/index.js +3 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,17 +20,17 @@ Pick your runtime:
|
|
|
20
20
|
|
|
21
21
|
**uvx** (zero install):
|
|
22
22
|
```json
|
|
23
|
-
{ "mcpServers": { "nucleus": { "command": "uvx", "args": ["nucleus-mcp"], "env": { "
|
|
23
|
+
{ "mcpServers": { "nucleus": { "command": "uvx", "args": ["nucleus-mcp"], "env": { "NUCLEUS_BRAIN_PATH": ".brain" } } } }
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
**npx** (zero install):
|
|
27
27
|
```json
|
|
28
|
-
{ "mcpServers": { "nucleus": { "command": "npx", "args": ["-y", "nucleus-mcp"], "env": { "
|
|
28
|
+
{ "mcpServers": { "nucleus": { "command": "npx", "args": ["-y", "nucleus-mcp"], "env": { "NUCLEUS_BRAIN_PATH": ".brain" } } } }
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
**pip** (`pip install nucleus-mcp` first):
|
|
32
32
|
```json
|
|
33
|
-
{ "mcpServers": { "nucleus": { "command": "nucleus-mcp", "env": { "
|
|
33
|
+
{ "mcpServers": { "nucleus": { "command": "nucleus-mcp", "env": { "NUCLEUS_BRAIN_PATH": ".brain" } } } }
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## Links
|
package/index.js
CHANGED
|
@@ -34,8 +34,7 @@ function install() {
|
|
|
34
34
|
return true;
|
|
35
35
|
} catch (e) {
|
|
36
36
|
console.error('[Nucleus] ERROR: Failed to install nucleus-mcp via pip.');
|
|
37
|
-
console.error(
|
|
38
|
-
console.error('[Nucleus] If pip is missing: python3 -m ensurepip --upgrade');
|
|
37
|
+
console.error(e.message);
|
|
39
38
|
return false;
|
|
40
39
|
}
|
|
41
40
|
}
|
|
@@ -43,10 +42,6 @@ function install() {
|
|
|
43
42
|
async function run() {
|
|
44
43
|
if (!checkPython()) {
|
|
45
44
|
console.error('[Nucleus] ERROR: python3 is not installed or not in PATH.');
|
|
46
|
-
console.error('[Nucleus] Install Python 3.9+ from https://www.python.org/downloads/');
|
|
47
|
-
console.error('[Nucleus] macOS: brew install python3');
|
|
48
|
-
console.error('[Nucleus] Ubuntu/Debian: sudo apt install python3 python3-pip');
|
|
49
|
-
console.error('[Nucleus] Windows: https://www.python.org/downloads/');
|
|
50
45
|
process.exit(1);
|
|
51
46
|
}
|
|
52
47
|
|
|
@@ -60,13 +55,9 @@ async function run() {
|
|
|
60
55
|
const binName = path.basename(process.argv[1]);
|
|
61
56
|
const args = process.argv.slice(2);
|
|
62
57
|
|
|
63
|
-
// Route: explicit init subcommand or nucleus-init bin name
|
|
64
|
-
const isInit = binName === 'nucleus-init' || args[0] === 'init';
|
|
65
|
-
|
|
66
58
|
let pythonArgs = [];
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
pythonArgs = ['-m', 'mcp_server_nucleus.cli', 'init', ...initArgs];
|
|
59
|
+
if (binName === 'nucleus-init') {
|
|
60
|
+
pythonArgs = ['-m', 'mcp_server_nucleus.cli', ...args];
|
|
70
61
|
} else {
|
|
71
62
|
pythonArgs = ['-m', 'mcp_server_nucleus', ...args];
|
|
72
63
|
}
|
package/package.json
CHANGED