Skip to content

Validate MCP server compatibility across CodeQL CLI versions #5

@data-douser

Description

@data-douser

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

  1. Version Detection (server/src/lib/cli-executor.ts)

    • Parse codeql version --format=json output
    • Store detected version in session state
    • Expose via codeql_server_info tool response
  2. Compatibility Matrix (server/src/lib/version-compat.ts)

    • Define feature availability per CLI version
    • Map breaking changes (e.g., --format flag changes, subcommand renames)
    • Implement version-specific command builders
  3. 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
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions