优化小红书MCP:统一返回结构并增强分页、批量与幂等能力

This commit is contained in:
2026-03-03 12:14:33 +08:00
parent 5e0543668e
commit 892e76f7ed
8 changed files with 790 additions and 329 deletions
+3 -1
View File
@@ -6,7 +6,7 @@
## 功能特性
- 小红书 **20 个 MCP 工具**(登录、浏览、发布、互动、通知、自动化)
- 小红书 **22 个 MCP 工具**(登录、浏览、发布、互动、通知、自动化)
- 带 Bearer Token 鉴权与按路由限流的 REST API
- 基于 `rebrowser-playwright` 的浏览器自动化,按平台串行队列执行
- 文件型 Cookie 持久化(`0600` 权限、原子写入)
@@ -105,8 +105,10 @@ pnpm test
| `xhs_favorite` | 切换收藏状态 |
| `xhs_get_unprocessed_notifications` | 从本地 SQLite 获取“未处理”通知任务 |
| `xhs_mark_notification_task` | 手动标记通知任务状态(new/pending/ignored/replied/failed |
| `xhs_mark_notification_tasks` | 批量标记通知任务状态 |
| `xhs_list_failed_notification_tasks` | 获取失败通知任务列表(用于排障/重试) |
| `xhs_retry_notification_task` | 按 fingerprint 重试失败通知任务 |
| `xhs_retry_notification_tasks` | 批量重试失败通知任务 |
| `xhs_reply_notification` | 对通知进行回复 |
## REST API