Skip to content

Commit 96cd9f1

Browse files
author
Bas Alberts
committed
Install required QL packs to Docker image.
1 parent a4c3406 commit 96cd9f1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

mcp_servers/codeql/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def __init__(self,
5252
self.progress_id = 0
5353
# clients can override e.g. the default ql/progressUpdated callback if they wish
5454
self.method_handlers = {}
55-
self.stderr_log = f"codeql_stderr_log.log" if log_stderr else os.devnull
55+
os.makedirs("logs", exist_ok=True)
56+
self.stderr_log = f"logs/codeql_stderr_log.log" if log_stderr else os.devnull
5657

5758
# def __del__(self):
5859
# self._server_stop()

release_tools/publish_docker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def write_dockerfile(dest_dir, entrypoint):
7070
7171
COPY . /app
7272
73+
# Install CodeQL pack dependencies
74+
RUN codeql pack install /app/mcp_servers/codeql/queries/mcp-cpp
75+
RUN codeql pack install /app/mcp_servers/codeql/queries/mcp-js
76+
7377
# Install Python dependencies if requirements.txt exists
7478
RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi
7579

0 commit comments

Comments
 (0)