@softerist/heuristic-mcp 2.1.37 → 2.1.38

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.
@@ -108,8 +108,8 @@ export async function register(filter = null) {
108
108
 
109
109
  // For Antigravity, we MUST use absolute path because ${workspaceFolder} variable expansion
110
110
  // is not supported in the current version, and '.' uses the wrong CWD.
111
- // For other IDEs, '.' is usually safer or they support variables.
112
- const workspacePath = currentIDE === 'Antigravity' ? process.cwd() : '.';
111
+ // Use INIT_CWD (where npm install was run) if available, otherwise cwd.
112
+ const workspacePath = currentIDE === 'Antigravity' ? (process.env.INIT_CWD || process.cwd()) : '.';
113
113
 
114
114
  const serverConfig = {
115
115
  command: binaryPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softerist/heuristic-mcp",
3
- "version": "2.1.37",
3
+ "version": "2.1.38",
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",