Skip to content

Flatten comply_test_controller from union to single object #2189

@bokelley

Description

@bokelley

Problem

comply_test_controller uses a oneOf union schema (list_scenarios, force_creative_status, force_account_status, etc.). This is the only remaining tool that can't be registered with server.tool(name, schema.shape, handler) — same issue that was fixed for preview_creative in #2175.

Proposal

Flatten to a single object with action discriminant field, same pattern as the preview_creative fix. Mode-specific fields become optional with documentation on when they're required.

Discovered during createAdcpServer implementation (adcontextprotocol/adcp-client#541).

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