xhs-mcp 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +6 -0
- package/README.md +8 -0
- package/dist/xhs-mcp.js +74 -4
- package/package.json +3 -1
package/README.en.md
CHANGED
|
@@ -25,6 +25,7 @@ Unified CLI `xhs-mcp` with built-in MCP server subcommand. Automate XiaoHongShu
|
|
|
25
25
|
- Support local paths and URLs mixed
|
|
26
26
|
- Smart caching to avoid duplicate downloads
|
|
27
27
|
- Discover: home feeds, keyword search, note detail, comment
|
|
28
|
+
- User Notes: list, delete management
|
|
28
29
|
- Automation: Puppeteer-driven, headless mode, cookie management
|
|
29
30
|
|
|
30
31
|
## 📋 Tools
|
|
@@ -32,6 +33,7 @@ Unified CLI `xhs-mcp` with built-in MCP server subcommand. Automate XiaoHongShu
|
|
|
32
33
|
- `xhs_auth_login`, `xhs_auth_logout`, `xhs_auth_status`
|
|
33
34
|
- `xhs_discover_feeds`, `xhs_search_note`, `xhs_get_note_detail`
|
|
34
35
|
- `xhs_comment_on_note`
|
|
36
|
+
- `xhs_get_user_notes`, `xhs_delete_note` (user note management)
|
|
35
37
|
- `xhs_publish_content` (unified interface: `type`, `title`, `content`, `media_paths`, `tags`)
|
|
36
38
|
- **Images**: 1-18 image files or URLs
|
|
37
39
|
- **Videos**: exactly 1 video file
|
|
@@ -90,6 +92,10 @@ npx xhs-mcp search -k keyword
|
|
|
90
92
|
# Current user's notes
|
|
91
93
|
npx xhs-mcp usernote list [-l 20] [--cursor <cursor>]
|
|
92
94
|
|
|
95
|
+
# Delete user notes
|
|
96
|
+
npx xhs-mcp usernote delete --note-id <id>
|
|
97
|
+
npx xhs-mcp usernote delete --last-published
|
|
98
|
+
|
|
93
99
|
# Interact
|
|
94
100
|
npx xhs-mcp comment --feed-id <id> --xsec-token <token> -n "Nice!"
|
|
95
101
|
|
package/README.md
CHANGED
|
@@ -26,13 +26,16 @@
|
|
|
26
26
|
- 支持 URL 和本地路径混合使用
|
|
27
27
|
- 智能缓存机制,避免重复下载
|
|
28
28
|
- 发现:推荐、搜索、详情、评论
|
|
29
|
+
- 用户笔记:列表查看、删除管理
|
|
29
30
|
- 自动化:Puppeteer 驱动、无头模式、Cookie 管理
|
|
31
|
+
- 验证:发布功能验证脚本,支持 HTML 报告生成
|
|
30
32
|
|
|
31
33
|
## 📋 可用工具
|
|
32
34
|
|
|
33
35
|
- `xhs_auth_login`、`xhs_auth_logout`、`xhs_auth_status`
|
|
34
36
|
- `xhs_discover_feeds`、`xhs_search_note`、`xhs_get_note_detail`
|
|
35
37
|
- `xhs_comment_on_note`
|
|
38
|
+
- `xhs_get_user_notes`、`xhs_delete_note`(用户笔记管理)
|
|
36
39
|
- `xhs_publish_content`(统一发布接口:`type`、`title`、`content`、`media_paths`、`tags`)
|
|
37
40
|
- **图片发布**:1-18个图片文件或URL
|
|
38
41
|
- **视频发布**:恰好1个视频文件
|
|
@@ -113,6 +116,10 @@ npx xhs-mcp search -k 关键字 [-b /path/to/chromium]
|
|
|
113
116
|
# 当前用户笔记
|
|
114
117
|
npx xhs-mcp usernote list [-l 20] [--cursor <cursor>] [-b /path/to/chromium]
|
|
115
118
|
|
|
119
|
+
# 删除用户笔记
|
|
120
|
+
npx xhs-mcp usernote delete --note-id <id> [-b /path/to/chromium]
|
|
121
|
+
npx xhs-mcp usernote delete --last-published [-b /path/to/chromium]
|
|
122
|
+
|
|
116
123
|
# 互动
|
|
117
124
|
npx xhs-mcp comment --feed-id <id> --xsec-token <token> -n "Nice!" [-b /path/to/chromium]
|
|
118
125
|
|
|
@@ -205,6 +212,7 @@ npx xhs-mcp mcp [--mode stdio|http] [--port 3000]
|
|
|
205
212
|
### 🧪 测试
|
|
206
213
|
- [运行测试](./tests/README.md) - 测试说明和用法
|
|
207
214
|
- 运行所有测试:`npm test`
|
|
215
|
+
- **验证脚本**: `npm run validate` - 发布功能验证测试,生成 HTML 报告
|
|
208
216
|
|
|
209
217
|
## 🛠️ 构建说明
|
|
210
218
|
|