Skip to content

Cannot pass an integer correctly #154

@neominik

Description

@neominik

Describe the bug
Currently, fields that are specified as type integer will result in a text field being displayed and a string being passed to the MCP server, which is not compliant to the JSON schema spec. The number type seems to be supported.

To Reproduce
Steps to reproduce the behavior:

  1. Create an MCP server that has a field of type integer somewhere in the inputSchema
  2. Try to pass an integer in the inspector
  3. Observe that a string has been passed

Expected behavior
Only integers that are valid according to the JSON schema spec can and will be passed to integer fields.

Logs
N/A

Additional context
https://json-schema.org/understanding-json-schema/reference/numeric#integer

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtoolsIssues related to testing tools

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions