Skip to content

serve(version_aliases=...): a supported way for a seller to serve an extra wire version #2009

Backlog

Description

@bokelley

In #1279 (8.0.0 GA rejecting 3.2-rc.7 clients) the plan was to ship an internal bridge as a patch and to defer a public adcp_version_aliases= API to 8.1.0. That API has not shipped, and 10.0.0 GA hit the same problem with 3.3-rc.3.

Today a seller cannot serve an extra wire version through any supported surface:

  • serve(supported_versions=...) raises ConfigurationError for versions outside SUPPORTED_WIRE_VERSIONS (server/version_policy.py:126-131).
  • project_supported_versions overwrites get_adcp_capabilities' adcp.supported_versions after the seller's response_enhancer runs (server/mcp_tools.py:4697-4699), so the alias can't be advertised.
  • The SDK's alias echo reads post-hook params (server/mcp_tools.py:4206-4213), so a hook that rewrites the version loses the caller's version for the echo.

The workaround we run combines a pre-validation hook rewrite, a SkillMiddleware that patches capabilities, and a duplicate served-versions list. It relies on behavior that isn't documented (see #2008).

Ask: serve(version_aliases={"3.3-rc.3": "3.3"}) that

  • accepts the alias on every tool, MCP and A2A, task polling included,
  • advertises it in get_adcp_capabilities,
  • validates the request and response as the target release,
  • echoes the alias where the SDK echoes versions (subject to the closed-schema rule in Alias echo stamps adcp_version into closed compact 3.2 responses #2007),
  • lists it in VERSION_UNSUPPORTED details.

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