Skip to content

everything: bind the HTTP transports to loopback by default, with HOST to widen #5371

Closed

Description

@cliffhall

Problem

The everything server's HTTP transports (Streamable HTTP and the deprecated HTTP+SSE) call app.listen(port) with no host (transports/listen.ts), so they bind to every network interface. A developer who starts the server over HTTP on a laptop exposes its tools to every host on the local network, not just to clients on the same machine. Browser access is already restricted to localhost origins (#5241), but a non-browser client on the LAN sends no Origin header and is let through.

Expected behavior

The HTTP transports bind to the loopback interface (127.0.0.1) by default, and a HOST environment variable (for example HOST=0.0.0.0) widens the bind deliberately, as a container image does (#3309). The README documents the variable and the default.

Reference prototype

#3303 by @TheodorNEngoy binds both HTTP transports to 127.0.0.1 by default with a HOST override (its CORS half has since shipped in #5241). It was opened before this repository moved to issues-only contributions, and is closed in favor of this issue; it serves as the reference prototype for the fix, and its author will be credited when the fix ships.

Activity

  1. added
    enhancementNew feature or request
    server-everythingReference implementation for the Everything MCP server - src/everything
    on Oct 28, 2026
  2. cliffhall commented on Oct 28, 2026

    @cliffhall
    MemberAuthor

    Triage: Priority Low (total 5)

    Board: Servers V2 (#43), Status Incoming, awaiting maintainer review (no milestone yet).

  3. added this to the v2.4.0 milestone on Oct 29, 2026
  4. self-assigned this
    on Nov 5, 2026
  5. cliffhall commented on Nov 5, 2026

    @cliffhall
    MemberAuthor

    Shipped in #5452, merged to v2/main; verified together with its sibling in rollup #5466.

  6. added a commit that references this issue on Nov 11, 2026
    41a758c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestserver-everythingReference implementation for the Everything MCP server - src/everythingv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions