smart-coding-mcp 1.0.0 → 1.1.0

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/index.js +17 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -21,10 +21,20 @@ let workspaceDir = null;
21
21
 
22
22
  if (workspaceIndex !== -1) {
23
23
  const arg = args[workspaceIndex];
24
+ let rawWorkspace = null;
25
+
24
26
  if (arg.includes('=')) {
25
- workspaceDir = arg.split('=')[1];
27
+ rawWorkspace = arg.split('=')[1];
26
28
  } else if (workspaceIndex + 1 < args.length) {
27
- workspaceDir = args[workspaceIndex + 1];
29
+ rawWorkspace = args[workspaceIndex + 1];
30
+ }
31
+
32
+ // Check if IDE variable wasn't expanded (contains ${})
33
+ if (rawWorkspace && rawWorkspace.includes('${')) {
34
+ console.error(`[Server] IDE variable not expanded: ${rawWorkspace}, using current directory`);
35
+ workspaceDir = process.cwd();
36
+ } else if (rawWorkspace) {
37
+ workspaceDir = rawWorkspace;
28
38
  }
29
39
 
30
40
  if (workspaceDir) {
@@ -89,8 +99,11 @@ async function initialize() {
89
99
  features[1].instance = hybridSearch;
90
100
  features[2].instance = cacheClearer;
91
101
 
92
- // Index codebase
93
- await indexer.initialize();
102
+ // Start indexing in background (non-blocking)
103
+ console.error("[Server] Starting background indexing...");
104
+ indexer.initialize().catch(err => {
105
+ console.error("[Server] Background indexing error:", err.message);
106
+ });
94
107
  }
95
108
 
96
109
  // Setup MCP server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-coding-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "An extensible MCP server that enhances coding productivity with AI-powered features including semantic code search, intelligent indexing, and more, using local LLMs",
5
5
  "type": "module",
6
6
  "main": "index.js",