Skip to content

browser_prepare inputSchema: anyOf branches missing type object breaks strict MCP clients #3622

Description

@la-luis

cua-driver 0.21.0, browser_prepare tool.

Its inputSchema root carries anyOf with two branches that have no type: object:

  • {"required": ["pid"]}
  • {"properties": {...}, "required": ["allow_launch", "profile"]}

Strict clients reject it. OpenCode tool registration fails with:

invalid-argument: cua-driver_browser_prepare: tool parameter root must be an object type (root schema is an anyOf/oneOf union with a non-object branch)

Checked all 57 tools served by cua-driver mcp: browser_prepare is the only one with this shape. Adding "type": "object" to both branches preserves semantics since both only narrow required over the same object, and unblocks strict validators.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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