Commit fdc42c5
Add support for
* Initial plan
* Add Rust language support: query packs, TypeScript, scripts, docs, CI
Create Rust CodeQL query pack structure with PrintAST, PrintCFG,
CallGraphFrom, CallGraphTo, and CallGraphFromTo tool queries.
Update all TypeScript source, shell scripts, documentation,
skills, and CI/CD configurations to include Rust.
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/1817d842-51f6-4414-8df3-5b40c48bc036
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Fix tests and add query documentation files for Rust
- Update workflow-prompts tests to expect 10 languages (was 9)
- Replace 'rust' with 'kotlin' as invalid language in tests since
'rust' is now a valid supported language
- Add .md documentation files for all 5 Rust tool queries
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/1817d842-51f6-4414-8df3-5b40c48bc036
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Update remaining scripts, workflows, and skills for Rust support
Update server-overview.md, setup-packs.sh, upgrade-packs.sh,
update-release-version.sh, release-codeql.yml, and skill files
to include 'rust' in language lists. Also update help text in
install-packs.sh, extract-test-databases.sh, and
run-query-unit-tests.sh.
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/1817d842-51f6-4414-8df3-5b40c48bc036
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Plan for addressing review feedback
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/936d5519-c2a3-418b-9d95-555823d3ea7e
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Address review feedback: pin codeql/rust-all, fix queries, populate .expected files, add rust_ast.md resource
- Pin codeql/rust-all to 0.2.10 (not '*') matching other language conventions
- Fix Rust CallGraph queries: use getName().getText() for string comparison
(Rust's getName() returns Name object, not string like Swift's)
- Populate all 5 .expected files with actual query test results
- Generate codeql-pack.lock.yml for both src and test packs
- Create server/src/resources/languages/rust_ast.md AST reference resource
- Register Rust AST resource in language-types.ts
- Add 'rust' to VSIX bundle-server.js LANGUAGES array
- Change 'kotlin' to 'cobol' as invalid language in tests
- Update language-resources tests for 9 AST resources (was 8)
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/936d5519-c2a3-418b-9d95-555823d3ea7e
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Add client integration tests for codeql_query_run with Rust language
- rust_tools_print_ast: Tests PrintAST query with graphtext format
interpretation, including expected graphtext output for AST visualization
- rust_call_graph_from_example1: Tests CallGraphFrom query with SARIF format
interpretation and external predicates for source function selection
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/ee9dfe2b-a152-4a44-88b9-6e9c2b7bc831
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Fix mcp-prompt-e2e extension integration test
* Fix reviewer comments: correct message pattern spacing in query docs, use extensible predicate wording in integration test READMEs, apply codeql query format to all .ql/.qll files, add *.ql and *.qll to .prettierignore
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/b3ea9842-0497-431d-86d2-800c5fd46faa
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Sync server/dist/** after rebase
* Fix MatchExpr and ForExpr accessor names in rust_ast.md resource
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/d79c8230-94c3-42ee-8ee7-ec65be88d8e9
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
* Fix CallGraph queries to use resolved target entities instead of name-based matching
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/8ce53ee0-dea8-4a8f-b300-436d11463003
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
---------
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>rust language (#195)1 parent bac94dd commit fdc42c5
File tree
85 files changed
+2729
-45
lines changed- .github
- skills
- create-codeql-query-development-workshop
- upgrade-codeql-cli-and-packs
- validate-ql-mcp-server-tools-queries
- workflows
- client/integration-tests/primitives/tools/codeql_query_run
- rust_call_graph_from_example1
- after
- before
- rust_tools_print_ast
- after
- query-results/rust/tools
- before
- docs
- extensions/vscode
- scripts
- test/suite
- server
- dist
- ql
- rust/tools
- src
- CallGraphFromTo
- CallGraphFrom
- CallGraphTo
- PrintAST
- PrintCFG
- test
- CallGraphFromTo
- CallGraphFrom
- CallGraphTo
- PrintAST
- PrintCFG
- ext
- scripts
- src
- lib
- prompts
- resources
- languages
- types
- test/src
- prompts
- resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
85 files changed
+2729
-45
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
client/integration-tests/primitives/tools/codeql_query_run/rust_call_graph_from_example1/README.md
Lines changed: 63 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 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
Lines changed: 15 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 | + | |
0 commit comments