Skip to content

Log pollution by unrequested warning output #1515

@aldipower

Description

@aldipower

This line is polluting my server logs:
Warning: Server is binding to 0.0.0.0 without DNS rebinding protection. Consider using the allowedHosts option to restrict allowed hosts, or use authentication to protect your server.

As the MCP server sits behind a reverse proxy in an encapsulated container, this warning is not meaningful to me.

In general it is bad practice, if 3rd-party libraries submitting log output to an environment they do not really own.

Also, as I already explicitly defined 0.0.0.0 by setting it with createMcpExpressApp({ host: '0.0.0.0' }), I expressed my will to do so. That means no warning is needed anyway as long 0.0.0.0 isn't the default.

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