Not always empty string the same as undefined. Sometimes a variable can have three states instead of two: a string value, an empty string, and an undefined value.
Treat an empty string as an actual value.
Invalid parameter format: MY_ENV=. Use key=value format.
Describe the bug
Not always empty string the same as undefined. Sometimes a variable can have three states instead of two: a string value, an empty string, and an undefined value.
To Reproduce
npm exec -- mcp-inspector -e MY_ENV= -- node main.jsExpected behavior
Treat an empty string as an actual value.
Logs
Additional context
https://github.com/modelcontextprotocol/inspector/blob/0.16.1/cli/src/cli.ts#L147-L151
https://github.com/modelcontextprotocol/inspector/blob/0.16.1/cli/src/index.ts#L171-L175