@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.
- package/features/lifecycle.js +25 -3
- package/features/register.js +25 -16
- package/package.json +1 -1
package/features/lifecycle.js
CHANGED
|
@@ -219,9 +219,7 @@ export async function logs() {
|
|
|
219
219
|
const mcpConfigs = [];
|
|
220
220
|
|
|
221
221
|
// Antigravity
|
|
222
|
-
const antigravityConfig =
|
|
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) {
|
package/features/register.js
CHANGED
|
@@ -23,36 +23,45 @@ function getConfigPaths() {
|
|
|
23
23
|
const paths = [];
|
|
24
24
|
|
|
25
25
|
// Antigravity
|
|
26
|
-
|
|
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: '
|
|
29
|
-
path:
|
|
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: '
|
|
34
|
-
path:
|
|
39
|
+
name: 'Claude Desktop',
|
|
40
|
+
path: path.join(process.env.APPDATA || '', 'Claude', 'claude_desktop_config.json')
|
|
35
41
|
});
|
|
36
42
|
}
|
|
37
43
|
|
|
38
|
-
//
|
|
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: '
|
|
42
|
-
path:
|
|
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: '
|
|
47
|
-
path:
|
|
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.
|
|
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",
|