Setting SERVER_PORT
doesn't cascade through to launching the client endpoint
#256
Labels
bug
Something isn't working
Describe the bug
According to the docs, if you want to run a custom set of ports for the client/server parts you run this command:
When started you have the following in the logs:
Clicking that link results in the inspector failing to resolve the config from the server because it is still trying to access it via the endpoint
6277
, not9000
as specified (and where it is running). This is because theproxyPort
query string value isn't passed to the client app to override the default server endpoint port.To Reproduce
Steps to reproduce the behavior:
CLIENT_PORT=8080 SERVER_PORT=9000 npx @modelcontextprotocol/inspector node build/index.js
Expected behavior
The URL provided in the terminal launches with the correct server backend.
Logs
If applicable, add logs to help explain your problem.
Additional context
If you add
?proxyPort=9000
to the address bar when launched it does start working.The text was updated successfully, but these errors were encountered: