secondbrainos-mcp-server 1.0.3 → 1.0.4

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/cli.js +2 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import axios from 'axios';
4
4
  import { promises as fs } from 'fs';
5
+ import * as fsSync from 'fs'; // Add this line to import the synchronous fs functions
5
6
  import path from 'path';
6
7
  import { fileURLToPath } from 'url';
7
8
  import { homedir } from 'os';
@@ -104,7 +105,7 @@ function getNodeModulesPath() {
104
105
  return path.join(prefix, 'npm', 'node_modules');
105
106
  } else if (platform === 'darwin' || platform === 'linux') {
106
107
  // Check if it's a homebrew installation on Mac
107
- if (platform === 'darwin' && fs.existsSync('/opt/homebrew/lib/node_modules')) {
108
+ if (platform === 'darwin' && fsSync.existsSync('/opt/homebrew/lib/node_modules')) {
108
109
  return '/opt/homebrew/lib/node_modules';
109
110
  }
110
111
  // Default Unix-like path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secondbrainos-mcp-server",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Second Brain OS MCP Server for Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "build/index.js",