can't enter optional fields
*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:
- Create a tool, with an optional parameter:
optional_field: str|None = None, - Start the MCP inspector and navigate to the tool
- Try to enter a value in the box. It can't be done.
- 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.
+1
+1
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