Update README.md
This commit is contained in:
@@ -12,14 +12,32 @@
|
||||
|
||||
`docker build -t xpzouying/xiaohongshu-mcp .`
|
||||
|
||||
`xpzouying/xiaohongshu-mcp`为镜像名称和版本,可以自己起个名字
|
||||
`xpzouying/xiaohongshu-mcp`为镜像名称和版本。
|
||||
|
||||
<img width="2576" height="874" alt="image" src="https://github.com/user-attachments/assets/fe7e87f1-623f-409f-8b54-e11d380fc7b8" />
|
||||
|
||||
## 2. 手动 Docker Compose
|
||||
|
||||
```
|
||||
# 注意:在 docker-compose.yml 文件的同一个目录,或者手动指定 docker-compose.yml。
|
||||
|
||||
# --- 启动 docker 容器 ---
|
||||
# 启动 docker-compose
|
||||
docker compose up -d
|
||||
|
||||
# 查看日志
|
||||
docker logs -f xpzouying/xiaohongshu-mcp
|
||||
|
||||
# 或者
|
||||
docker compose logs -f
|
||||
```
|
||||
|
||||
查看日志,下面表示成功启动。
|
||||
|
||||
<img width="1012" height="98" alt="image" src="https://github.com/user-attachments/assets/c374f112-a5b5-4cf6-bd9f-080252079b10" />
|
||||
|
||||
|
||||
```bash
|
||||
# 停止 docker-compose
|
||||
docker compose stop
|
||||
|
||||
@@ -27,8 +45,35 @@ docker compose stop
|
||||
docker logs -f xpzouying/xiaohongshu-mcp
|
||||
|
||||
# 进入容器
|
||||
docker exec -it xpzouying/xiaohongshu-mcp /bin/bash
|
||||
docker exec -it xiaohongshu-mcp bash
|
||||
|
||||
# 手动更新容器
|
||||
docker compose pull && docker compose up -d
|
||||
```
|
||||
|
||||
## 3. 使用 MCP-Inspector 进行连接
|
||||
|
||||
**注意 IP 换成你自己的 IP**
|
||||
|
||||
<img width="2606" height="1164" alt="image" src="https://github.com/user-attachments/assets/495916ad-0643-491d-ae3c-14cbf431c16f" />
|
||||
|
||||
对应的 Docker 日志一切正常。
|
||||
|
||||
<img width="1662" height="458" alt="image" src="https://github.com/user-attachments/assets/309c2dab-51c4-4502-a41b-cdd4a3dd57ac" />
|
||||
|
||||
## 4. 扫码登录
|
||||
|
||||
1. **重要**,一定要先把 App 提前打开,准备扫码登录。
|
||||
2. 尽快扫码,有可能二维码会过期。
|
||||
|
||||
打开 MCP-Inspector 获取二维码和进行扫码。
|
||||
|
||||
<img width="2632" height="1468" alt="image" src="https://github.com/user-attachments/assets/543a5427-50e3-4970-b942-5d05d69596f4" />
|
||||
|
||||
<img width="2624" height="1222" alt="image" src="https://github.com/user-attachments/assets/4f38ca81-1014-4874-ab4d-baf02b750b55" />
|
||||
|
||||
扫码成功后,再次扫码后,就会提示已经完成登录了。
|
||||
|
||||
<img width="2614" height="994" alt="image" src="https://github.com/user-attachments/assets/5356914a-3241-4bfd-b6b2-49c1cc5e3394" />
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user