@whenmoon-afk/memory-mcp 2.1.0 ā 2.1.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.
- package/dist/index.js +1 -1
- package/install.js +9 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/install.js
CHANGED
|
@@ -36,21 +36,15 @@ function getClaudeConfigPath() {
|
|
|
36
36
|
* Get platform-specific MCP server configuration
|
|
37
37
|
*/
|
|
38
38
|
function getMcpServerConfig() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
// macOS and Linux can use npx directly
|
|
49
|
-
return {
|
|
50
|
-
command: 'npx',
|
|
51
|
-
args: ['-y', '@whenmoon-afk/memory-mcp']
|
|
52
|
-
};
|
|
53
|
-
}
|
|
39
|
+
// Get the absolute path to the installed package
|
|
40
|
+
// __dirname is already the package root (e.g., .../node_modules/@whenmoon-afk/memory-mcp/)
|
|
41
|
+
const serverPath = join(__dirname, 'dist', 'index.js');
|
|
42
|
+
|
|
43
|
+
// All platforms use node directly with the server path
|
|
44
|
+
return {
|
|
45
|
+
command: 'node',
|
|
46
|
+
args: [serverPath]
|
|
47
|
+
};
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
/**
|
|
@@ -136,11 +130,6 @@ function install() {
|
|
|
136
130
|
console.log('\nš Configuration Location:');
|
|
137
131
|
console.log(` ${configPath}`);
|
|
138
132
|
|
|
139
|
-
if (platform() === 'win32') {
|
|
140
|
-
console.log('\nš” Windows Note:');
|
|
141
|
-
console.log(' This installer configured the server with the cmd /c wrapper required for Windows.');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
133
|
console.log('\n⨠Installation complete! Enjoy your persistent AI memory!\n');
|
|
145
134
|
}
|
|
146
135
|
|