Commit de78423
[UPDATE PRIMITIVE] Fix
* Initial plan
* fix: extract additionalArgs as raw CLI arguments instead of --additionalArgs=value
Previously, `additionalArgs` (e.g., `["--sarif-include-query-help=always"]`)
stayed in the options object and was processed by `buildCodeQLArgs` into
`--additionalArgs=--sarif-include-query-help=always`, which is invalid.
Now `additionalArgs` is extracted from options before CLI arg building and
appended as raw arguments after positional args, so args like
`--sarif-include-query-help=always` and `--no-sarif-minify` are passed
through correctly to the `codeql` CLI.
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/ff382e0c-2894-422a-a9c8-22c431c9a77a
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* fix: filter managed CLI flags from additionalArgs to prevent conflicts with post-processing
For tools with post-execution processing (query run, test run, database
analyze), flags like --logdir, --evaluator-log, --output, --verbosity,
and --tuple-counting are set internally and read back after execution.
If these appear in additionalArgs, they would create conflicting
duplicates and break post-processing. Now they are filtered out with a
warning directing the user to use the corresponding named parameter.
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/dd017a82-a805-40c8-bb2f-4eae0678766d
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Sync server/dist/**
* fix: handle space-separated managed flags in additionalArgs filtering
Replace .filter() with a for-loop that also skips the following value
token when a managed flag is supplied in space-separated form
(e.g. ['--output', '/override.sarif']) instead of inline form
(e.g. ['--output=/override.sarif']). This prevents stray positional
arguments from leaking into the CLI invocation.
Add test coverage for the space-separated form.
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/fb3b1eea-290e-4eaa-bf2b-26b1521e5a58
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Sync package-lock.json && server/dist/**
* Update .vscodeignore
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Co-authored-by: Nathan Randall <data-douser@github.com>codeql_database_analyze additionalArgs pass-through (#188)1 parent 39b7e80 commit de78423
File tree
6 files changed
+344
-38
lines changed- extensions/vscode
- server
- dist
- src/lib
- test/src/lib
6 files changed
+344
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58042 | 58042 | | |
58043 | 58043 | | |
58044 | 58044 | | |
| 58045 | + | |
| 58046 | + | |
| 58047 | + | |
| 58048 | + | |
| 58049 | + | |
| 58050 | + | |
| 58051 | + | |
| 58052 | + | |
| 58053 | + | |
| 58054 | + | |
| 58055 | + | |
| 58056 | + | |
| 58057 | + | |
| 58058 | + | |
| 58059 | + | |
| 58060 | + | |
| 58061 | + | |
| 58062 | + | |
| 58063 | + | |
| 58064 | + | |
| 58065 | + | |
| 58066 | + | |
| 58067 | + | |
| 58068 | + | |
| 58069 | + | |
| 58070 | + | |
| 58071 | + | |
| 58072 | + | |
58045 | 58073 | | |
58046 | 58074 | | |
58047 | 58075 | | |
| |||
58058 | 58086 | | |
58059 | 58087 | | |
58060 | 58088 | | |
58061 | | - | |
| 58089 | + | |
58062 | 58090 | | |
58063 | | - | |
| 58091 | + | |
58064 | 58092 | | |
58065 | 58093 | | |
58066 | 58094 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
477 | 533 | | |
478 | 534 | | |
479 | 535 | | |
| |||
507 | 563 | | |
508 | 564 | | |
509 | 565 | | |
510 | | - | |
| 566 | + | |
511 | 567 | | |
512 | | - | |
| 568 | + | |
513 | 569 | | |
514 | 570 | | |
515 | 571 | | |
| |||
0 commit comments