← Back to search

codeql-development-mcp-server

GitHub Actions Scanned 24d ago

An MCP server supporting LLM requests for CodeQL development tools and resources.

B
76 / 100

Versions

2.26.2latest
Jul 29, 2026
2.26.1
Jul 17, 2026
2.26.0
Jul 9, 2026
2.25.6-next.1
Jun 29, 2026
2.25.6
Jun 8, 2026
+ show 21 moreshow less
2.25.5
May 26, 2026
2.25.4
May 11, 2026
2.25.3
May 5, 2026
2.25.2-next.1
Apr 20, 2026
2.25.2
Apr 15, 2026
2.25.2-rc1
Apr 15, 2026
2.25.1-next.3
Apr 8, 2026
2.25.1-next.2
Apr 1, 2026
2.25.1-next.1
Mar 30, 2026
2.25.1
Mar 29, 2026
2.25.0
Mar 27, 2026
2.25.0-rc1
Mar 24, 2026
2.24.3
Mar 12, 2026
2.24.3-rc2
Mar 11, 2026
2.24.3-rc1
Mar 9, 2026
2.24.2
Feb 24, 2026
2.24.2-rc3
Feb 23, 2026
2.24.2-rc2
Feb 23, 2026
2.24.2-rc1
Feb 23, 2026
2.24.1
Feb 11, 2026
2.24.1-rc1
Feb 11, 2026
PermissionsTool SafetyAuthAnnotationsCode QualityStabilitySpecVuln HistoryAuthorTransparencyCommunity

Tools 53

audit_store_findings
annotations: none low

Store findings

repo string owner string sourceLocation string
annotation_create
annotations: none low

Create annotation

category string entityKey string
test-client
annotations: none low

category string entityKey string
audit_list_findings
annotations: none low

List all audit findings for a repository, including any analyst notes.

repo string limit number owner string
audit_add_notes
annotations: none low

Append notes to an existing audit finding. Identify the finding by findingId (preferred) or by owner+repo+sourceLocation+line.

line number repo string notes string owner string findingId number sourceLocation string
audit_clear_repo
annotations: none low

Delete all audit findings for a repository.

repo string owner string
annotation_get
annotations: none low

Retrieve a single annotation by its numeric ID.

id number
annotation_list
annotations: none low

List annotations with optional filtering by category, entity key, or entity key prefix.

limit number offset number category string entityKey string entityKeyPrefix string
annotation_update
annotations: none low

Update the content, label, or metadata of an existing annotation.

id number label string content string metadata string
annotation_delete
annotations: none low

Delete annotations by ID, category, or entity key prefix.

id number category string entityKeyPrefix string
annotation_search
annotations: none low

Full-text search across annotation content, metadata, and labels using SQLite FTS (token-based MATCH; use * suffix for prefix matching, e.g.

limit number search string category string
sarif_extract_rule
annotations: none low

Extract all data for a specific rule/query from multi-rule SARIF. Returns a valid SARIF JSON subset with only the matching rule definition and results.

ruleId string cacheKey string sarifPath string
sarif_list_rules
annotations: none low

List all rules in a SARIF file with result counts, severity, precision, and tags. Essential for discovering available rules before extraction or comparison.

cacheKey string sarifPath string
sarif_rule_to_markdown
annotations: none low

Convert per-rule SARIF data to a structured markdown report with Mermaid dataflow diagrams. Renders dataflow paths as visual flowcharts.

ruleId string cacheKey string sarifPath string
sarif_compare_alerts
annotations: none low

Compare code locations of two SARIF alerts to detect overlap. Supports sink, source, any-location, full-path, and fingerprint comparison modes.

sarif_diff_by_commits
annotations: none low

Correlate SARIF results with a git diff to classify findings as

cacheKey string refRange string repoPath string sarifPath string
sarif_diff_runs
annotations: none low

Diff two SARIF files or cached results to find added, removed, and changed rules/results. Useful for comparing analysis across CodeQL versions, database updates, or query pack releases.

labelA string labelB string cacheKeyA string cacheKeyB string sarifPathA string sarifPathB string
sarif_store
annotations: none low

Store SARIF content in the session cache for use by other sarif_* tools. Returns a cache key that can be passed to sarifPath/cacheKey parameters of other tools.

label string sarifPath string sarifContent string
sarif_deduplicate_rules
annotations: none low

Identify duplicate alerts across two SARIF files by comparing rules pairwise. Uses fingerprint matching first, then full-path location overlap as fallback. Useful for cleanup after query changes or pack upgrades.

cacheKeyA string cacheKeyB string sarifPathA string sarifPathB string overlapThreshold number
query_results_cache_lookup
annotations: none low

Check whether cached query results exist for given parameters. Returns metadata about the cached entry without the full content.

limit number ruleId string cacheKey string language string queryName string databasePath string
query_results_cache_retrieve
annotations: none low

Retrieve cached query results with optional subset selection. Supports line ranges (for graphtext/CSV) and SARIF result indices and file filtering to return only the relevant portion.

end number start number cacheKey string maxLines number fileFilter string maxResults number
query_results_cache_clear
annotations: none low

Clear cached query results by cache key, query name, database path, or clear all.

all boolean ruleId string cacheKey string queryName string databasePath string
query_results_cache_compare
annotations: none low

Compare cached query results across multiple databases for the same query. Useful for MRVA-style cross-repository analysis.

ruleId string language string queryName string
session_end
annotations: none low

End a query development session with final status

sessionId string
session_get
annotations: none low

Get complete details of a specific query development session

sessionId string
session_list
annotations: none low

List query development sessions with optional filtering

status string language string queryPath string queryType string
session_update_state
annotations: none low

Update the current state of a query development session

sessionId string
session_get_call_history
annotations: none low

Get MCP call history for a specific session

limit number sessionId string
session_get_test_history
annotations: none low

Get test execution history for a specific session

limit number sessionId string
session_get_score_history
annotations: none low

Get quality score history for a specific session

limit number sessionId string
session_calculate_current_score
annotations: none low

Calculate current quality score for a session based on its state

sessionId string
sessions_compare
annotations: none low

Compare multiple query development sessions across specified dimensions

sessions_aggregate
annotations: none low

Generate aggregate insights from multiple sessions based on filters

status string language string queryPath string queryType string
sessions_export
annotations: none low

Export session data in specified format for external analysis

validate_codeql_query
annotations: none low

Quick heuristic validation for CodeQL query structure - checks for common patterns like from/where/select clauses and metadata presence. Does NOT compile the query. For authoritative validation with actual compilation, use codeql_lsp_diagnostics instead.

query string language string
create_codeql_query
annotations: none low

Create directory structure and files for a new CodeQL query with tests

queryId string basePath string language string queryName string description string
find_codeql_query_files
annotations: none low

Find and track all files and directories related to a CodeQL query, including resolved metadata

language string queryPath string resolveMetadata boolean
list_codeql_databases
annotations: none low

List CodeQL databases discovered in configured base directories (set via CODEQL_DATABASES_BASE_DIRS env var). Returns path, language, CLI version, and creation time for each database. Use the returned database paths with codeql_query_run or codeql_database_analyze to run queries against them.

find_class_position
annotations: none low

Finds startline, startcol, endline endcol of a class for quickeval

file string name string
profile_codeql_query
annotations: none low

Profile the performance of a CodeQL query run against a specific database by analyzing the evaluator log JSON file

query string database string
find_predicate_position
annotations: none low

Finds startline, startcol, endline endcol of a predicate for quickeval

file string name string
read_database_source
annotations: none low

Read source file contents from a CodeQL database source archive (src.zip) or source directory (src/).

databasePath string
search_ql_code
annotations: none low

Search QL source files (.ql/.qll) for text or regex patterns. Returns structured results with file paths, line numbers, and optional context lines. Use this instead of grep for searching CodeQL source code.

pattern string maxResults number contextLines number caseSensitive boolean
register_database
annotations: none low

Register a CodeQL database for use by other MCP tools.

db_path string
list_query_run_results
annotations: none low

List discovered query run result directories (set via CODEQL_QUERY_RUN_RESULTS_DIRS env var). Returns path, query name, timestamp, language, query file path, and available artifacts (evaluator-log, bqrs, sarif, query.log, summary) for each run. Filter by queryName, language, or queryPath to narrow results. Use the returned BQRS paths with codeql_bqrs_decode or codeql_bqrs_info to inspect query results.

list_mrva_run_results
annotations: none low

List discovered MRVA (Multi-Repository Variant Analysis) run results (set via CODEQL_MRVA_RUN_RESULTS_DIRS env var). Returns run ID, timestamp, repositories scanned, analysis status, and available artifacts for each run.

quick_evaluate
annotations: none low

Resolve a class or predicate symbol in a CodeQL query file for quick evaluation.

db string file string symbol string output_path string
profile_codeql_query_from_logs
annotations: none low

Parse CodeQL evaluator logs into a structured performance profile. Returns compact JSON with per-query summaries and top-N slowest predicates (name, duration, result size, eval order, dependency count). Full RA operations, pipeline-stage tuple progressions, and dependency lists are written to a line-indexed detail file — each predicate includes detailLines: {start, end} for targeted read_file access to its full analysis. Works with logs from codeql query run, codeql database analyze, or vscode-codeql.

codeql_lsp_completion
annotations: none low

Get code completions at a cursor position in a CodeQL file. Returns completion items with labels, documentation, and insert text. The file must be a .ql or .qll file. IMPORTANT: Set workspace_uri to the pack or workspace root directory for dependency resolution; without it, completions for imported libraries will be empty.

codeql_lsp_definition
annotations: none low

Go to the definition of a CodeQL symbol at a given position. Returns one or more file locations where the symbol is defined. Set workspace_uri to the pack root for dependency resolution.

codeql_lsp_references
annotations: none low

Find all references to a CodeQL symbol at a given position. Returns file locations of all usages, including the declaration. Set workspace_uri to the pack root for dependency resolution.

codeql_lsp_document_symbols
annotations: none low

List all top-level definitions (classes, predicates, modules) in a CodeQL file. Response contains location and type information unless names_only is set to true.

names_only boolean
codeql_lsp_diagnostics
annotations: none low

Authoritative syntax and semantic validation of CodeQL (QL) code via the CodeQL Language Server. Compiles the query and provides real-time diagnostics with precise error locations. Use this for accurate validation; for quick heuristic checks without compilation, use validate_codeql_query instead. Note: inline ql_code is evaluated as a virtual document and cannot resolve pack imports (e.g. `import javascript`). For validating queries with imports, use codeql_query_compile on the actual file instead.

ql_code string search_path string workspace_uri string

Permissions 3

filesystem low
Server uses filesystem capabilities via: fs, fs sync ops, fs/promises, path
shell high
Server uses shell capabilities via: child_process, spawn()
env_vars low
Server uses env_vars capabilities via: process.env

Scan Findings 118

low
Tool 'audit_store_findings' has no annotations annotation_checker · 100%
low
Tool 'annotation_create' has no annotations annotation_checker · 100%
low
Tool 'test-client' has no annotations annotation_checker · 100%
low
Tool 'audit_list_findings' has no annotations annotation_checker · 100%
low
Tool 'audit_add_notes' has no annotations annotation_checker · 100%
low
Tool 'audit_clear_repo' has no annotations annotation_checker · 100%
low
Tool 'annotation_get' has no annotations annotation_checker · 100%
low
Tool 'annotation_list' has no annotations annotation_checker · 100%
low
Tool 'annotation_update' has no annotations annotation_checker · 100%
low
Tool 'annotation_delete' has no annotations annotation_checker · 100%
low
Tool 'annotation_search' has no annotations annotation_checker · 100%
low
Tool 'sarif_extract_rule' has no annotations annotation_checker · 100%
low
Tool 'sarif_list_rules' has no annotations annotation_checker · 100%
low
Tool 'sarif_rule_to_markdown' has no annotations annotation_checker · 100%
low
Tool 'sarif_compare_alerts' has no annotations annotation_checker · 100%
low
Tool 'sarif_diff_by_commits' has no annotations annotation_checker · 100%
low
Tool 'sarif_diff_runs' has no annotations annotation_checker · 100%
low
Tool 'sarif_store' has no annotations annotation_checker · 100%
low
Tool 'sarif_deduplicate_rules' has no annotations annotation_checker · 100%
low
Tool 'query_results_cache_lookup' has no annotations annotation_checker · 100%
low
Tool 'query_results_cache_retrieve' has no annotations annotation_checker · 100%
low
Tool 'query_results_cache_clear' has no annotations annotation_checker · 100%
low
Tool 'query_results_cache_compare' has no annotations annotation_checker · 100%
low
Tool 'session_end' has no annotations annotation_checker · 100%
low
Tool 'session_get' has no annotations annotation_checker · 100%
low
Tool 'session_list' has no annotations annotation_checker · 100%
low
Tool 'session_update_state' has no annotations annotation_checker · 100%
low
Tool 'session_get_call_history' has no annotations annotation_checker · 100%
low
Tool 'session_get_test_history' has no annotations annotation_checker · 100%
low
Tool 'session_get_score_history' has no annotations annotation_checker · 100%
low
Tool 'session_calculate_current_score' has no annotations annotation_checker · 100%
low
Tool 'sessions_compare' has no annotations annotation_checker · 100%
low
Tool 'sessions_aggregate' has no annotations annotation_checker · 100%
low
Tool 'sessions_export' has no annotations annotation_checker · 100%
low
Tool 'validate_codeql_query' has no annotations annotation_checker · 100%
low
Tool 'create_codeql_query' has no annotations annotation_checker · 100%
low
Tool 'find_codeql_query_files' has no annotations annotation_checker · 100%
low
Tool 'list_codeql_databases' has no annotations annotation_checker · 100%
low
Tool 'find_class_position' has no annotations annotation_checker · 100%
low
Tool 'profile_codeql_query' has no annotations annotation_checker · 100%
low
Tool 'find_predicate_position' has no annotations annotation_checker · 100%
low
Tool 'read_database_source' has no annotations annotation_checker · 100%
low
Tool 'search_ql_code' has no annotations annotation_checker · 100%
low
Tool 'register_database' has no annotations annotation_checker · 100%
low
Tool 'list_query_run_results' has no annotations annotation_checker · 100%
low
Tool 'list_mrva_run_results' has no annotations annotation_checker · 100%
low
Tool 'quick_evaluate' has no annotations annotation_checker · 100%
low
Tool 'profile_codeql_query_from_logs' has no annotations annotation_checker · 100%
low
Tool 'codeql_lsp_completion' has no annotations annotation_checker · 100%
low
Tool 'codeql_lsp_definition' has no annotations annotation_checker · 100%
low
Tool 'codeql_lsp_references' has no annotations annotation_checker · 100%
low
Tool 'codeql_lsp_document_symbols' has no annotations annotation_checker · 100%
low
Tool 'codeql_lsp_diagnostics' has no annotations annotation_checker · 100%
high
Remote transport without authentication auth_checker · 70%
info
Sandbox failed to start for behavioral verification behavioral_verifier · 100%
low
Cross-tool reference in 'profile_codeql_query_from_logs': Integration: 'works with logs' cross_tool_detector · 30%
info
package.json metadata manifest_parser · 100%
info
Tool: audit_store_findings manifest_parser · 70%
info
Tool: annotation_create manifest_parser · 70%
info
Tool: test-client manifest_parser · 75%
info
Tool: audit_list_findings manifest_parser · 70%
info
Tool: audit_add_notes manifest_parser · 70%
info
Tool: audit_clear_repo manifest_parser · 70%
info
Tool: annotation_get manifest_parser · 70%
info
Tool: annotation_list manifest_parser · 70%
info
Tool: annotation_update manifest_parser · 70%
info
Tool: annotation_delete manifest_parser · 70%
info
Tool: annotation_search manifest_parser · 70%
info
Tool: sarif_extract_rule manifest_parser · 70%
info
Tool: sarif_list_rules manifest_parser · 70%
info
Tool: sarif_rule_to_markdown manifest_parser · 70%
info
Tool: sarif_compare_alerts manifest_parser · 70%
info
Tool: sarif_diff_by_commits manifest_parser · 70%
info
Tool: sarif_diff_runs manifest_parser · 70%
info
Tool: sarif_store manifest_parser · 70%
info
Tool: sarif_deduplicate_rules manifest_parser · 70%
info
Tool: query_results_cache_lookup manifest_parser · 70%
info
Tool: query_results_cache_retrieve manifest_parser · 70%
info
Tool: query_results_cache_clear manifest_parser · 70%
info
Tool: query_results_cache_compare manifest_parser · 70%
info
Tool: session_end manifest_parser · 70%
info
Tool: session_get manifest_parser · 70%
info
Tool: session_list manifest_parser · 70%
info
Tool: session_update_state manifest_parser · 70%
info
Tool: session_get_call_history manifest_parser · 70%
info
Tool: session_get_test_history manifest_parser · 70%
info
Tool: session_get_score_history manifest_parser · 70%
info
Tool: session_calculate_current_score manifest_parser · 70%
info
Tool: sessions_compare manifest_parser · 70%
info
Tool: sessions_aggregate manifest_parser · 70%
info
Tool: sessions_export manifest_parser · 70%
info
Tool: validate_codeql_query manifest_parser · 70%
info
Tool: create_codeql_query manifest_parser · 70%
info
Tool: find_codeql_query_files manifest_parser · 70%
info
Tool: list_codeql_databases manifest_parser · 70%
info
Tool: find_class_position manifest_parser · 70%
info
Tool: profile_codeql_query manifest_parser · 70%
info
Tool: find_predicate_position manifest_parser · 70%
info
Tool: read_database_source manifest_parser · 70%
info
Tool: search_ql_code manifest_parser · 70%
info
Tool: register_database manifest_parser · 70%
info
Tool: list_query_run_results manifest_parser · 70%
info
Tool: list_mrva_run_results manifest_parser · 70%
info
Tool: quick_evaluate manifest_parser · 70%
info
Tool: profile_codeql_query_from_logs manifest_parser · 70%
info
Tool: codeql_lsp_completion manifest_parser · 70%
info
Tool: codeql_lsp_definition manifest_parser · 70%
info
Tool: codeql_lsp_references manifest_parser · 70%
info
Tool: codeql_lsp_document_symbols manifest_parser · 70%
info
Tool: codeql_lsp_diagnostics manifest_parser · 70%
info
Transport: stdio manifest_parser · 90%
info
Required env vars (31) manifest_parser · 80%
info
Sandbox failed to start for output poisoning scan output_poisoning · 100%
low
Permission: filesystem access detected permission_analyzer · 90%
high
Permission: shell access detected permission_analyzer · 95%
low
Permission: env_vars access detected permission_analyzer · 90%
info
SBOM generated: 718 components sbom_generator · 100%
medium
No build provenance detected (SLSA L0) slsa_assessor · 90%