@codacy/codacy-mcp 0.6.11 → 0.6.12

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.
@@ -32,7 +32,6 @@ export class CodacyCli {
32
32
  .join(' ');
33
33
  // Add the args to the command and remove any shell metacharacters
34
34
  const cmd = `${command} ${argsString}`.trim().replace(/[;&|`$]/g, '');
35
- // Add the CODACY_CLI_VERSION to the command
36
35
  return new Promise((resolve, reject) => {
37
36
  exec(cmd, {
38
37
  cwd: this.rootPath,
@@ -11,13 +11,13 @@ export class MacCodacyCli extends CodacyCli {
11
11
  const localPath = path.join(CODACY_FOLDER_NAME, 'cli.sh');
12
12
  const fullPath = path.join(this.rootPath, localPath);
13
13
  if (fs.existsSync(fullPath)) {
14
- this.setCliCommand(this._cliVersion ? `CODACY_CLI_VERSION=${this._cliVersion} ${localPath}` : localPath);
14
+ this.setCliCommand(this._cliVersion ? `CODACY_CLI_V2_VERSION=${this._cliVersion} ${localPath}` : localPath);
15
15
  return;
16
16
  }
17
17
  // check if codacy-cli is installed globally
18
18
  try {
19
19
  // first set the command for the getCliCommand to do the right thing when called
20
- this.setCliCommand(this._cliVersion ? `CODACY_CLI_VERSION=${this._cliVersion} codacy-cli` : 'codacy-cli');
20
+ this.setCliCommand(this._cliVersion ? `CODACY_CLI_V2_VERSION=${this._cliVersion} codacy-cli` : 'codacy-cli');
21
21
  await this.execAsync(`${this.getCliCommand()} --help`);
22
22
  return;
23
23
  }
@@ -50,7 +50,7 @@ export class MacCodacyCli extends CodacyCli {
50
50
  await this.execAsync(`curl -Ls -o "${execPath}" https://raw.githubusercontent.com/codacy/codacy-cli-v2/main/codacy-cli.sh`);
51
51
  await this.execAsync(`chmod +x "${execPath}"`);
52
52
  this.setCliCommand(this._cliVersion
53
- ? `CODACY_CLI_VERSION=${this._cliVersion} ${codacyCliPath}`
53
+ ? `CODACY_CLI_V2_VERSION=${this._cliVersion} ${codacyCliPath}`
54
54
  : codacyCliPath);
55
55
  }
56
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/codacy-mcp",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "description": "Codacy MCP server",
5
5
  "license": "MIT",
6
6
  "author": "Codacy",