-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Establish comprehensive compatibility testing for the MCP server across multiple CodeQL CLI versions to ensure broad usability.
Target CLI Versions
| Version | Status | Notes |
|---|---|---|
| v2.18.1 | ⏳ Untested | Minimum supported version |
| v2.20.3 | ⏳ Untested | Mid-range version |
| v2.21.4 | ⏳ Untested | Pre-2.22 API changes |
| v2.24.0 | ⏳ Untested | Current latest release |
Implementation Design
-
Version Detection (
server/src/lib/cli-executor.ts)- Parse
codeql version --format=jsonoutput - Store detected version in session state
- Expose via
codeql_server_infotool response
- Parse
-
Compatibility Matrix (
server/src/lib/version-compat.ts)- Define feature availability per CLI version
- Map breaking changes (e.g.,
--formatflag changes, subcommand renames) - Implement version-specific command builders
-
CI/CD Validation (
.github/workflows/)- Matrix build testing each target version
- Download CLI via
github/codeql-action/init - Run full integration test suite per version
-
Runtime Adaptation
- Graceful degradation for unavailable features
- Version-specific tool descriptions noting limitations
- Warning logs for deprecated CLI usage patterns
Acceptance Criteria
- Version detection implemented and exposed in
codeql_server_info - GitHub Actions workflow tests all 4 target versions
- Known incompatibilities documented in
README.md - All integration tests pass on minimum supported version (v2.18.1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels