everything: bind the HTTP transports to loopback by default, with HOST to widen
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
- 领域
- backend, networking
调研方向
从 transports/listen.ts 和 issue #3303 中的参考原型入手,了解两个 HTTP transport 是如何启动的。检查 README 中关于 everything 服务器及其环境变量的部分。完成标准是:两个 transport 默认绑定到 127.0.0.1,HOST 可以扩大绑定范围,并且 README 记录这两种行为。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 91.6k
- 派生
- 11.9k
- 平均合并
- 4 小时 38 分钟
- 30 天内合并 PR
- 241
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/servers 的其他 Issue
-
chore server-filesystem server-memory server-sequentialthinking v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/servers#5345 ·
维护者通常 1 天内回复
-
documentation v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/servers#5343 ·
维护者通常 1 天内回复
-
chore v2
难度 2/5 1-3 小时 新手友好度 82/100
modelcontextprotocol/servers#5339 ·
维护者通常 1 天内回复
-
chore v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/servers#5337 · 1 条评论 ·
维护者通常 1 天内回复
-
release skill: link the Prepare Python Release PR to the release issue with addCloseIssueReferences未关闭documentation v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/servers#5335 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/servers 的全部 Issue
相似的 Issue
-
Parallel reticle_verify opens per-flow leases without the source lease's ignoreHTTPSErrors可能已有人在做 @as992949791 今天认领。 未关闭good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
reticlehq/reticle#2033 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:quality p3-medium ready-for-agent type:docs
难度 2/5 1-3 小时 新手友好度 83/100
fderuiter/deruiter.dev#3589 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
manfredsteyer/angular-oauth2-oidc#1514 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
marmelab/react-admin#11431 ·
维护者通常 1 天内回复