Skip to content

Sample auth server binds to localhost only — could you allow access via host IP? #1913

@lyao-parasoft

Description

@lyao-parasoft

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions