neohive 6.1.4 → 6.2.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.
package/cli.js CHANGED
@@ -123,9 +123,11 @@ function setupClaude(serverPath, cwd) {
123
123
  }
124
124
  }
125
125
 
126
+ const abDataDir = path.join(path.resolve(cwd), '.neohive').replace(/\\/g, '/');
126
127
  mcpConfig.mcpServers['neohive'] = {
127
128
  command: mcpNodeCommand(),
128
129
  args: [serverPath],
130
+ env: { NEOHIVE_DATA_DIR: abDataDir },
129
131
  timeout: CLI_CONFIG.MCP_TOOL_TIMEOUT_S,
130
132
  };
131
133
 
@@ -155,9 +157,11 @@ function setupGemini(serverPath, cwd) {
155
157
  }
156
158
  }
157
159
 
160
+ const abDataDir = path.join(path.resolve(cwd), '.neohive').replace(/\\/g, '/');
158
161
  settings.mcpServers['neohive'] = {
159
162
  command: mcpNodeCommand(),
160
163
  args: [serverPath],
164
+ env: { NEOHIVE_DATA_DIR: abDataDir },
161
165
  timeout: CLI_CONFIG.MCP_TOOL_TIMEOUT_S,
162
166
  trust: true,
163
167
  };
@@ -609,6 +613,14 @@ function init() {
609
613
 
610
614
  console.log('');
611
615
 
616
+ // Create .neohive/ data directory up front so the dashboard and file
617
+ // watcher work immediately, even before the first MCP server starts.
618
+ const neohiveDir = dataDir(cwd);
619
+ if (!fs.existsSync(neohiveDir)) {
620
+ fs.mkdirSync(neohiveDir, { recursive: true, mode: 0o700 });
621
+ console.log(' [ok] Created ' + path.basename(neohiveDir) + '/');
622
+ }
623
+
612
624
  for (const target of targets) {
613
625
  switch (target) {
614
626
  case 'claude': setupClaude(serverPath, cwd); break;
@@ -641,7 +653,7 @@ function init() {
641
653
  console.log('');
642
654
  console.log(
643
655
  configuredCursor
644
- ? ' Neohive is ready! Restart Cursor (or reload MCP tools) and restart any terminal CLIs you use.'
656
+ ? ' Neohive is ready! Reload Cursor (Cmd+Shift+P Reload Window), then enable "neohive" in Settings > Tools & MCP.'
645
657
  : ' Neohive is ready! Restart your CLI to pick up the MCP tools.'
646
658
  );
647
659
  console.log(' MCP server command is your current Node binary (works when the IDE has no Volta/nvm in PATH):');