Server port 8799 collides with an OpenMausBot server on the same Windows host (WSL localhost forwarding), breaking MausBot's browser tool with "unauthorized"

未关闭
#25 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

Start by locating the server setup and startup code that binds Dusk to 127.0.0.1:8799, then trace how MCP requests are authenticated. Check how setup handles configuration and where project documentation explains running the server. Done means the port can be configured, collisions and requests using another install’s token get a clear response, and the documented setup covers running alongside MausBot; the issue does not name files or tests.

由索引模型根据 Issue 内容生成。

描述

Version

0.2.15

Platform

Own server in WSL2 on a Windows PC that also runs OpenMausBot natively

What happened

Dusk listens on 127.0.0.1:8799 inside WSL. WSL localhost forwarding publishes that as 127.0.0.1:8799 on Windows (wslrelay.exe). The MausBot server on the same PC listens on 0.0.0.0:8799. On Windows the more specific 127.0.0.1 bind wins, so MausBot's own local calls to 127.0.0.1:8799 reach Dusk instead. Every MausBot bot then fails at the start of a turn with:

The MCP server 'browser' failed to initialize: failed to get tools: calling "tools/list": unauthorized

Nothing tells the user which app took the port.

Suggested fix
  1. Make the server port configurable in setup (DUSK_PORT) and check at start whether 8799 already answers on the host, and pick another port if it does.
  2. When a local request arrives with a token from another install, answer with a clear "this is Dusk, not your other server" error instead of plain unauthorized.
  3. Document running Dusk next to MausBot / OpenMausBot (people migrating keep both running).
主要语言
TypeScript
星标
277
派生
27
平均合并
2 小时 47 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DuskBotAI/duskbot 的其他 Issue

查看 DuskBotAI/duskbot 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。