We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a080f7a commit 74c71a3Copy full SHA for 74c71a3
client/src/ql-mcp-client.js
@@ -87,10 +87,12 @@ class CodeQLMCPClient {
87
this.logger.log("Checking for CodeQL CLI availability...");
88
89
// Try to run 'codeql version' to check if it's available
90
+ // On Windows, explicitly use bash since the CodeQL stub is a bash script
91
const version = execSync("codeql version", {
92
encoding: "utf8",
93
stdio: ["pipe", "pipe", "pipe"],
- timeout: 5000
94
+ timeout: 5000,
95
+ shell: process.platform === "win32" ? "bash" : undefined
96
}).trim();
97
98
this.logger.log(`Found CodeQL CLI: ${version.split("\n")[0]}`);
0 commit comments