@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 CHANGED
@@ -22,7 +22,7 @@ const config = {
22
22
  */
23
23
  const server = new Server({
24
24
  name: '@whenmoon-afk/memory-mcp',
25
- version: '2.1.0',
25
+ version: '2.1.2',
26
26
  }, {
27
27
  capabilities: {
28
28
  tools: {},
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
- const plat = platform();
40
-
41
- if (plat === 'win32') {
42
- // Windows requires cmd /c wrapper for npx
43
- return {
44
- command: 'cmd',
45
- args: ['/c', 'npx', '-y', '@whenmoon-afk/memory-mcp']
46
- };
47
- } else {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whenmoon-afk/memory-mcp",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Brain-inspired memory for AI agents - MCP server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",