feat: 支持返回登录二维码与 Docker 部署 (#155)

* feat: 支持返回登录二维码与 Docker 部署

* feat: 完善扫码登录功能

* fix: 修复当存在已经登录的情况,上层还会启动 goroutine的问题,并把 mcp 的返回增加为图片格式
This commit is contained in:
lmxdawn
2025-09-25 19:44:01 +08:00
committed by GitHub
parent cc5038decd
commit a8a2743a51
14 changed files with 314 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"flag"
"os"
"github.com/sirupsen/logrus"
"github.com/xpzouying/xiaohongshu-mcp/configs"
@@ -16,6 +17,10 @@ func main() {
flag.StringVar(&binPath, "bin", "", "浏览器二进制文件路径")
flag.Parse()
if len(binPath) == 0 {
binPath = os.Getenv("ROD_BROWSER_BIN")
}
configs.InitHeadless(headless)
configs.SetBinPath(binPath)