@softerist/heuristic-mcp 2.1.5 → 2.1.7
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/register.js +18 -1
- package/package.json +1 -1
package/features/register.js
CHANGED
|
@@ -106,7 +106,7 @@ export async function register(filter = null) {
|
|
|
106
106
|
|
|
107
107
|
// Write back
|
|
108
108
|
await fs.writeFile(configPath, JSON.stringify(config, null, 2));
|
|
109
|
-
console.log(
|
|
109
|
+
console.log(`\x1b[32m[Auto-Register] ✅ Successfully registered with ${name}\x1b[0m`);
|
|
110
110
|
registeredCount++;
|
|
111
111
|
|
|
112
112
|
} catch (err) {
|
|
@@ -117,5 +117,22 @@ export async function register(filter = null) {
|
|
|
117
117
|
if (registeredCount === 0) {
|
|
118
118
|
console.log(`[Auto-Register] No compatible IDE configurations found to update.`);
|
|
119
119
|
console.log(`[Auto-Register] Manual Config:\n${JSON.stringify({ mcpServers: { "heuristic-mcp": serverConfig } }, null, 2)}`);
|
|
120
|
+
} else {
|
|
121
|
+
// Friendly Banner (Using console.error to bypass npm stdout suppression)
|
|
122
|
+
console.error('\n\x1b[36m' + '='.repeat(60));
|
|
123
|
+
console.error(' 🚀 Heuristic MCP Installed & Configured! ');
|
|
124
|
+
console.error('='.repeat(60) + '\x1b[0m');
|
|
125
|
+
console.error(`
|
|
126
|
+
\x1b[33mACTION REQUIRED:\x1b[0m
|
|
127
|
+
1. \x1b[1mRestart your IDE\x1b[0m (or reload the window) to load the new config.
|
|
128
|
+
2. The server will start automatically in the background.
|
|
129
|
+
|
|
130
|
+
\x1b[32mSTATUS:\x1b[0m
|
|
131
|
+
- \x1b[1mIndexing:\x1b[0m Will begin immediately after restart.
|
|
132
|
+
- \x1b[1mUsage:\x1b[0m You can work while it indexes (it catches up!).
|
|
133
|
+
- \x1b[1mLogs:\x1b[0m Check your IDE's MCP logs if you are curious.
|
|
134
|
+
|
|
135
|
+
\x1b[36mHappy Coding! 🤖\x1b[0m
|
|
136
|
+
`);
|
|
120
137
|
}
|
|
121
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softerist/heuristic-mcp",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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",
|