Commit 583bad4
committed
fixes for broken tools, integrations tests, & docs
Fixes found by stress-testing MCP tools against real CodeQL databases:
- bqrs_decode: replace non-existent --max-results/--max-paths with correct
--rows option; add --result-set, --entities, --sort-direction, --no-titles
- bqrs_info: add --format (text/json), --paginate-rows, --paginate-result-set;
fix format passthrough in cli-tool-registry (formatShouldBePassedToCLI)
- list_query_run_results: add language/queryPath filters; extract metadata
from query.log (queryPath, databasePath, language); add fallback language
detection from semmlecode.<lang>.dbscheme and codeql/<lang>-all/ paths
- database_analyze: add --rerun parameter; auto-create output parent directory
to prevent NoSuchFileException after long-running evaluations
- query_run: fix SARIF generation to use interpretBQRSFile with proper -t
metadata instead of bare bqrs interpret; fix output filename to
results-interpreted.sarif
- `docs/**/*.md`: update project docs to reflect ^ improvements to
tools.
Unit tests: 873 passed (44 files, +23 new tests)
Integration tests: 5 new test cases covering each fix1 parent 84faf53 commit 583bad4
File tree
37 files changed
+1055
-382
lines changed- client/integration-tests/primitives/tools
- codeql_bqrs_decode/decode_with_result_set
- after
- before
- codeql_bqrs_info/json_format
- after
- before
- codeql_database_analyze/analyze_with_output_subdir
- after
- before
- list_query_run_results
- filter_by_language
- after
- before
- filter_by_query_name
- after
- before
- docs
- ql-mcp
- vscode
- server
- dist
- src
- lib
- tools/codeql
- test/src/tools/codeql
37 files changed
+1055
-382
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Binary file not shown.
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
client/integration-tests/primitives/tools/codeql_bqrs_info/json_format/after/monitoring-state.json
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Binary file not shown.
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments