Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Warn on non-loopback web binds and document the token's access-control boundary in the README

クローズ
#2,750 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@cliffhall がすでに取り組んでいます。

2026年10月25日 から。

  • #2790 @cliffhall による — マージ済み

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Start with the “Hosting on a network” section in clients/web/README.md and the bind resolution in clients/web/server/resolve-bind-host.ts; then trace startup output in the launcher and Docker image. Check the existing tests around bind resolution and add coverage for loopback names and IPs staying silent and other hosts warning. Done when the README and both startup outputs explain the token boundary consistently and the warning tests pass.

索引モデルが issue の本文から書いたものです。

説明

enhancement v2

Problem

The web server's API token protects against cross-origin browser requests. It is not access control against anyone who can load the UI: GET / hands the token to whoever can reach the page. docs/docker.md says so, and says that publishing more widely needs a real access-control boundary in front. Two gaps remain:

  1. The web README's "Hosting on a network" section (clients/web/README.md) doesn't carry that warning.
  2. A non-loopback bind prints no warning. A wildcard bind requires DANGEROUSLY_BIND_ALL_INTERFACES, but HOST=<specific LAN or public IP> (clients/web/server/resolve-bind-host.ts) is accepted silently.

Proposed change

  • Add the access-control caveat to "Hosting on a network": anyone who can load the page can act as the user, and that includes other local users on a shared host.
  • At startup, when the resolved bind host is not loopback, print a one-time warning to the same effect, with a link to the README section. Keep the launcher banner and the Docker image's output consistent; the image binds 0.0.0.0 by design.
  • Tests for the warning's trigger (loopback names and IPs stay silent; anything else warns).

Possible follow-up (not this issue)

A bootstrap that never puts the token in HTML, such as a one-time secret in the URL fragment exchanged for an HttpOnly cookie, would remove the "anyone who loads the page" property. That's a design change across the launcher, the server and the deep-link flow, and it deserves its own issue if we pursue it.

Priority score

Severity 2, Urgency 3, +1 milestone, Total 6 → Medium.

主要言語
TypeScript
スター
11.2k
フォーク
1.6k
平均マージ
4時間 56分
マージ済み PR(30日)
155

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/inspector のほかの issue

modelcontextprotocol/inspector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。