Skip to content

Commit 8cfbc47

Browse files
authored
Merge pull request #43 from GitHubSecurityLab/p--codeql-improvements
CodeQL MCP: output absolute path in error + list all supported languages
2 parents 131a42c + 07d3621 commit 8cfbc47

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mcp_servers/codeql/mcp_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _resolve_db_path(relative_db_path: str | Path):
6464
absolute_path = CODEQL_DBS_BASE_PATH / relative_db_path
6565
if not absolute_path.is_dir():
6666
_debug_log(f"Database path not found: {absolute_path}")
67-
raise RuntimeError('Error: Database not found!')
67+
raise RuntimeError(f"Error: Database not found at {absolute_path}!")
6868
return absolute_path
6969

7070

toolboxes/codeql.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ server_prompt: |
2020
CodeQL supports the following languages, which you'll refer to by their
2121
CodeQL acronyms and which are detailed below:
2222
23+
- actions: GitHub Actions workflows
2324
- cpp: The C and C++ programming language
2425
- csharp: The C# programming language
2526
- go: The Go programming language
26-
- java: The Java programming language
27+
- java: The Java programming language (including Kotlin)
28+
- javascript: The JavaScript programming language (including TypeScript)
2729
- python: The Python programming language
2830
- ruby: The Ruby programming language
29-
- swift: The Swift programming language
3031
- rust: The Rust programming language
32+
- swift: The Swift programming language
3133
3234
When interacting with CodeQL databases, you will need to provide the
3335
appropriate language acronym for the type of project contained within the

0 commit comments

Comments
 (0)