Skip to content

A2A: integers in context come back as floats #1572

Description

@bokelley

Version: adcp 9.0.0b4

Observed: an A2A message/send whose parameters carry context: {"count": 7, "list": [1]} gets back context: {"count": 7.0, "list": [1.0]}. The same call over MCP returns 7.

Cause: the A2A request is parsed through protobuf Struct, which stores every JSON number as a double, and MessageToDict returns floats. _normalize_a2a_parameters (adcp/server/a2a_server.py, around line 251) only restores adcp_major_version. inject_context(params, ...) then echoes the float-converted context.

Expected: AdCP echoes context unchanged. Either restore integral floats to ints throughout the parsed parameters (or at least within context and every nested context), or echo the context from the raw JSON body rather than the protobuf round trip.

Found while making a seller (Scope3's embedded sales agent) echo context exactly on every tool over both transports.

Activity

  1. added a commit that references this issue on Oct 24, 2026
    781c689
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