inspector icon indicating copy to clipboard operation
inspector copied to clipboard

can't enter optional fields

Open mattdarwin opened this issue 1 year ago • 3 comments

*Inspector Version

  • 0.17.1

Describe the bug optional fields can no longer be set since upgrading to 0.17.1

To Reproduce Steps to reproduce the behavior:

  1. Create a tool, with an optional parameter: optional_field: str|None = None,
  2. Start the MCP inspector and navigate to the tool
  3. Try to enter a value in the box. It can't be done.
  4. Try to uncheck the null checkbox. It also can't be done

Expected behavior It should be possible to set a value for an optional parameter.

. Screenshots Added short video showing the bug:

https://github.com/user-attachments/assets/cf7987f9-f22f-4369-a550-ee7c031e8b24

Environment (please complete the following information):

  • OS: MacOS 15.7.1
  • Browser Safari 26.0.1, Chrome 140.0.7339.186

Additional context I also have some other optional parameters: approval_groups:list[str]|None=None This input renders with the following error: Cannot read properties of undefined (reading 'trim') Entering an empty json array '[]' gets rid of the error message, but the same error then appears on subsequent list parameters.

mattdarwin avatar Oct 14 '25 11:10 mattdarwin

+1

zhiweit avatar Oct 16 '25 14:10 zhiweit

+1

kziemski avatar Oct 18 '25 00:10 kziemski

I also experience this, and in addition for another field filter: dict|None = None I get an error while leaving it empty. Only writing "{}" or "null" solve the issue

Image

celcof avatar Oct 21 '25 09:10 celcof