优化小红书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 @@ Multi-platform social media automation service that exposes browser-based action
## Features
- **20 MCP tools** for Xiaohongshu (login, browsing, publishing, interactions, notifications, automation)
- **22 MCP tools** for Xiaohongshu (login, browsing, publishing, interactions, notifications, automation)
- **REST API** with Bearer token authentication and per-route rate limiting
- **Browser automation** via `rebrowser-playwright` with per-platform serial queueing
- **Cookie persistence** with file-based storage (`0600`, atomic writes)
@@ -105,8 +105,10 @@ Add this in `claude_desktop_config.json`:
| `xhs_favorite` | Toggle favorite state on a note |
| `xhs_get_unprocessed_notifications` | Get unprocessed notification tasks from local SQLite state |
| `xhs_mark_notification_task` | Manually mark notification task status (new/pending/ignored/replied/failed) |
| `xhs_mark_notification_tasks` | Batch mark notification task statuses |
| `xhs_list_failed_notification_tasks` | List failed notification tasks for triage/retry |
| `xhs_retry_notification_task` | Retry a failed notification task by fingerprint |
| `xhs_retry_notification_tasks` | Batch retry failed notification tasks |
| `xhs_reply_notification` | Reply to a specific notification |
## REST API