genexus-mcp 1.1.5 → 1.1.6

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/cli/run.js +9 -3
  2. package/package.json +1 -1
package/cli/run.js CHANGED
@@ -101,10 +101,16 @@ if (args[0] === 'init' || args[0] === 'setup') {
101
101
  return; // Stop execution
102
102
  }
103
103
 
104
- // Check if config.json exists in CWD. If so, bind it to GX_CONFIG_PATH.
105
- if (fs.existsSync(cwdConfigPath)) {
104
+ // Priority 1: Explicitly passed GX_CONFIG_PATH
105
+ if (process.env.GX_CONFIG_PATH) {
106
+ // Keep it, do nothing.
107
+ }
108
+ // Priority 2: Config inside CWD
109
+ else if (fs.existsSync(cwdConfigPath)) {
106
110
  process.env.GX_CONFIG_PATH = cwdConfigPath;
107
- } else if (!process.env.GX_CONFIG_PATH) {
111
+ }
112
+ // Priority 3: Zero-Config Fallback
113
+ else {
108
114
  const possibleGxPaths = [
109
115
  "C:\\Program Files (x86)\\GeneXus\\GeneXus18",
110
116
  "C:\\Program Files (x86)\\GeneXus\\GeneXus17",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genexus-mcp",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "A high-performance Model Context Protocol (MCP) server for GeneXus 18",
5
5
  "bin": {
6
6
  "genexus-mcp": "cli/run.js"