Skip to content

SDK: expose compatibility, capabilities, and server information #1470

Description

@samuv

Parent story: #1466

Goal

Expose typed compatibility, capability, and server information so applications can decide which workflows to offer without creating a probe session or parsing TUI diagnostics.

Scope

  • Add a discoverable high-level SDK entry point for the server compatibility descriptor.
  • Model protocol capabilities, feature availability, permission posture, and deployment information as typed SDK values.
  • Add typed access to reusable server information currently consumed by mecatui.
  • Define forward-compatible handling for capability values introduced by newer servers.
  • Preserve request options and typed transport/server errors.

Boundaries

  • The server remains the source of truth for enabled capabilities and posture.
  • Formatted diagnostics reports, terminal tables, and operator-facing prose remain application-owned.
  • Do not infer support from SDK version alone when the server exposes authoritative compatibility data.

Acceptance criteria

  • An SDK consumer can query server compatibility and capability information before opening a session.
  • The response is fully typed, documented, and forward-compatible with unknown optional capabilities.
  • The API works over each supported transport with parity tests.
  • Unsupported-server and malformed-response behavior produces documented typed errors.
  • Public API reports and the SDK changelog are updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

devexenhancementsdk

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions