Description
Hi team,
Could you consider allowing the bind (listen) address of the sample auth server
(e.g. examples/servers/simple-auth/mcp_simple_auth) to be configurable?
Currently, the sample auth server is bound to the loopback interface
(localhost / 127.0.0.1) by default, which means it can only be accessed from
the local host and not via the machine’s IP address.
This behavior limits the usability of the sample in common scenarios such as:
- Running the server as a systemd service
- Accessing it from another host or container
- VM-based or multi-machine test environments
Allowing the bind address to be configured (for example via a CLI option,
environment variable, or a documented default of 0.0.0.0) would make the sample
more practical for real-world usage and avoid the need for users to modify the
example source code.
Thanks for considering this enhancement.
References
No response