Skip to content

McpServer tool parameters should be decoded with their JSON codec #10331

Closed

Description

@matheuspuel

What is the problem this feature would solve?

McpServer decodes tool parameters from the schema's Encoded type to the Type type, so it always fails if the Encoded type is not valid JSON, e.g. Schema.Date.

What is the feature you are proposing to solve the problem?

Use the JSON codec to decode tool parameters, e.g. Schema.Date would accept ISO strings.

What alternatives have you considered?

Use Schemas with valid JSON as its Encoded type, e.g. Schema.DateFromString.

Activity

  1. added
    enhancement
    on Nov 3, 2026
  2. self-assigned this
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions