Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#5,371 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

Inizia da transports/listen.ts e dal prototipo di riferimento nell’issue #3303 per vedere come vengono avviati entrambi i trasporti HTTP. Controlla le sezioni del README sul server everything e sulle relative variabili d’ambiente. Il lavoro è completato quando entrambi i trasporti si associano a 127.0.0.1 per impostazione predefinita, HOST può ampliare l’indirizzo di binding e il README documenta entrambi i comportamenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement server-everything v2

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.

Lingua principale
TypeScript
Stelle
91.6k
Fork
11.9k
Merge medio
4h 38m
PR unite (30g)
241

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/servers

Tutte le issue di modelcontextprotocol/servers

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.