docs(xhs): fix misleading Docker login guide

- Clarify that localhost:18060 root may return 404 (MCP is at /mcp)
- Recommend Cookie-Editor export over QR scan login
- Note that Docker container QR login is unreliable and cookies
  don't auto-share to MCP service

Fixes #220

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Pnant
2026-03-31 14:36:28 +08:00
parent 9a8b245e39
commit b82ab1ae10
2 changed files with 10 additions and 5 deletions
+9 -4
View File
@@ -45,12 +45,17 @@ agent-reach doctor
## 需要用户手动做的步骤
如果 doctor 显示"MCP 已连接但未登录"
如果 doctor 显示"MCP 已连接但未登录",需要导入 cookies
> 小红书需要登录一次(之后会记住你的登录状态)。
> **推荐方式:Cookie-Editor 浏览器导出(最可靠)**
>
> 打开 http://localhost:18060 ,用手机小红书 App 扫描二维码登录。
> 登录后 cookie 会自动保存在 Docker 容器内,大约 1-3 个月有效。
> 1. 在 Chrome 中安装 [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) 扩展
> 2. 浏览器登录 xiaohongshu.com
> 3. 点击 Cookie-Editor 图标 → Export → Header String
> 4. 把导出的字符串发给 Agent,运行:`agent-reach configure xhs-cookies "导出的cookie字符串"`
>
> **注意**`http://localhost:18060` 根路径可能返回 404,这是正常的——MCP 服务在 `/mcp` 路径。
> 不要依赖 QR 扫码登录,Docker 容器内的 QR 登录页面不一定可用,且 cookies 不会自动共享到 MCP 服务。
## 常见问题
+1 -1
View File
@@ -171,7 +171,7 @@ mcporter config add xiaohongshu http://localhost:18060/mcp
> agent-reach configure xhs-cookies "key1=val1; key2=val2; ..."
> ```
>
> **备选** 本地电脑如果有浏览器,也可以打开 http://localhost:18060 扫码登录。
> **注意** `http://localhost:18060` 根路径可能返回 404,MCP 服务在 `/mcp` 路径。推荐使用 Cookie-Editor 导出方式,不要依赖 Docker 容器内的 QR 扫码登录。
**微博 / Weibo (mcp-server-weibo):**
> "微博已默认安装,装好即用。可搜索微博内容、查看热搜、获取用户动态和评论。"