@softerist/heuristic-mcp 2.1.22 → 2.1.24

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.
@@ -219,9 +219,7 @@ export async function logs() {
219
219
  const mcpConfigs = [];
220
220
 
221
221
  // Antigravity
222
- const antigravityConfig = process.platform === 'win32'
223
- ? path.join(home, '.gemini', 'antigravity', 'mcp_config.json')
224
- : path.join(home, '.gemini', 'antigravity', 'mcp_config.json');
222
+ const antigravityConfig = path.join(home, '.gemini', 'antigravity', 'mcp_config.json');
225
223
  const antigravityExists = await fs.access(antigravityConfig).then(() => true).catch(() => false);
226
224
  mcpConfigs.push({ name: 'Antigravity', path: antigravityConfig, exists: antigravityExists });
227
225
 
@@ -237,6 +235,30 @@ export async function logs() {
237
235
  mcpConfigs.push({ name: 'Claude Desktop', path: claudeConfig, exists: claudeExists });
238
236
  }
239
237
 
238
+ // VS Code (MCP extension uses settings.json or dedicated config)
239
+ let vscodeConfig = null;
240
+ if (process.platform === 'darwin') {
241
+ vscodeConfig = path.join(home, 'Library', 'Application Support', 'Code', 'User', 'settings.json');
242
+ } else if (process.platform === 'win32') {
243
+ vscodeConfig = path.join(process.env.APPDATA || '', 'Code', 'User', 'settings.json');
244
+ } else {
245
+ vscodeConfig = path.join(home, '.config', 'Code', 'User', 'settings.json');
246
+ }
247
+ const vscodeExists = await fs.access(vscodeConfig).then(() => true).catch(() => false);
248
+ mcpConfigs.push({ name: 'VS Code', path: vscodeConfig, exists: vscodeExists });
249
+
250
+ // Cursor (uses similar structure to VS Code)
251
+ let cursorConfig = null;
252
+ if (process.platform === 'darwin') {
253
+ cursorConfig = path.join(home, 'Library', 'Application Support', 'Cursor', 'User', 'settings.json');
254
+ } else if (process.platform === 'win32') {
255
+ cursorConfig = path.join(process.env.APPDATA || '', 'Cursor', 'User', 'settings.json');
256
+ } else {
257
+ cursorConfig = path.join(home, '.config', 'Cursor', 'User', 'settings.json');
258
+ }
259
+ const cursorExists = await fs.access(cursorConfig).then(() => true).catch(() => false);
260
+ mcpConfigs.push({ name: 'Cursor', path: cursorConfig, exists: cursorExists });
261
+
240
262
  console.log(` 📦 Global npm bin: ${npmBin}`);
241
263
  console.log(` ⚙️ MCP configs:`);
242
264
  for (const cfg of mcpConfigs) {
@@ -23,36 +23,45 @@ function getConfigPaths() {
23
23
  const paths = [];
24
24
 
25
25
  // Antigravity
26
- if (platform === 'win32') {
26
+ paths.push({
27
+ name: 'Antigravity',
28
+ path: path.join(home, '.gemini', 'antigravity', 'mcp_config.json')
29
+ });
30
+
31
+ // Claude Desktop
32
+ if (platform === 'darwin') {
27
33
  paths.push({
28
- name: 'Antigravity',
29
- path: expandPath('%USERPROFILE%\\.gemini\\antigravity\\mcp_config.json')
34
+ name: 'Claude Desktop',
35
+ path: path.join(home, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json')
30
36
  });
31
- } else {
37
+ } else if (platform === 'win32') {
32
38
  paths.push({
33
- name: 'Antigravity',
34
- path: expandPath('~/.gemini/antigravity/mcp_config.json')
39
+ name: 'Claude Desktop',
40
+ path: path.join(process.env.APPDATA || '', 'Claude', 'claude_desktop_config.json')
35
41
  });
36
42
  }
37
43
 
38
- // Claude Desktop
44
+ // Note: VS Code support is shown in --logs but NOT auto-registered
45
+ // because settings.json is a general config file that should not be auto-modified.
46
+
47
+ // Cursor (has MCP support, uses settings.json key)
39
48
  if (platform === 'darwin') {
40
49
  paths.push({
41
- name: 'Claude Desktop',
42
- path: expandPath('~/Library/Application Support/Claude/claude_desktop_config.json')
50
+ name: 'Cursor',
51
+ path: path.join(home, 'Library', 'Application Support', 'Cursor', 'User', 'settings.json')
43
52
  });
44
53
  } else if (platform === 'win32') {
45
54
  paths.push({
46
- name: 'Claude Desktop',
47
- path: expandPath('%APPDATA%\\Claude\\claude_desktop_config.json')
55
+ name: 'Cursor',
56
+ path: path.join(process.env.APPDATA || '', 'Cursor', 'User', 'settings.json')
57
+ });
58
+ } else {
59
+ paths.push({
60
+ name: 'Cursor',
61
+ path: path.join(home, '.config', 'Cursor', 'User', 'settings.json')
48
62
  });
49
63
  }
50
64
 
51
- // Cursor (Cascade) - Settings are usually in settings.json but MCP might have a specific spot?
52
- // Cursor often uses VS Code's settings.json for some things, but explicit MCP support varies.
53
- // For now, we'll stick to Antigravity and Claude as confirmed targets.
54
- // NOTE: If Cursor adds a specific mcp_config, add it here.
55
-
56
65
  return paths;
57
66
  }
58
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softerist/heuristic-mcp",
3
- "version": "2.1.22",
3
+ "version": "2.1.24",
4
4
  "description": "An enhanced MCP server providing intelligent semantic code search with find-similar-code, recency ranking, and improved chunking. Fork of smart-coding-mcp.",
5
5
  "type": "module",
6
6
  "main": "index.js",