Commit 76e0ab7
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>1 parent f3dd9f7 commit 76e0ab7
File tree
4 files changed
+140
-6
lines changed- server
- dist
- src/lib
- test/src/lib
4 files changed
+140
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57350 | 57350 | | |
57351 | 57351 | | |
57352 | 57352 | | |
| 57353 | + | |
| 57354 | + | |
57353 | 57355 | | |
57354 | 57356 | | |
57355 | 57357 | | |
| |||
57365 | 57367 | | |
57366 | 57368 | | |
57367 | 57369 | | |
57368 | | - | |
| 57370 | + | |
57369 | 57371 | | |
57370 | | - | |
| 57372 | + | |
57371 | 57373 | | |
57372 | 57374 | | |
57373 | 57375 | | |
| |||
0 commit comments