docs: 添加用户主页功能说明并完善英文文档 (#125)
- 在README.md中新增"获取用户个人主页"功能说明 - 详细描述用户主页功能的参数要求和返回信息 - 更新MCP工具列表,添加user_profile工具 - 在README_EN.md中补充图片支持方式的完整英文说明 - 添加HTTP链接和本地路径两种方式的详细描述和使用示例 - 在英文版中新增"Get User Profile"功能说明 - 保持中英文文档的功能一致性和完整性 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
26
README.md
26
README.md
@@ -129,6 +129,31 @@ https://github.com/user-attachments/assets/cc385b6c-422c-489b-a5fc-63e92c695b80
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><b>7. 获取用户个人主页</b></summary>
|
||||||
|
|
||||||
|
获取小红书用户的个人主页信息,包括用户基本信息和笔记内容。
|
||||||
|
|
||||||
|
**功能说明:**
|
||||||
|
|
||||||
|
- 获取用户基本信息(昵称、简介、头像等)
|
||||||
|
- 获取关注数、粉丝数、获赞量统计
|
||||||
|
- 获取用户发布的笔记内容列表
|
||||||
|
- 支持 HTTP API 和 MCP 工具调用
|
||||||
|
|
||||||
|
**⚠️ 重要提示:**
|
||||||
|
|
||||||
|
- 需要先登录才能使用此功能
|
||||||
|
- 需要提供用户 ID 和 xsec_token
|
||||||
|
- 这些参数可以从 Feed 列表或搜索结果中获取
|
||||||
|
|
||||||
|
**返回信息包括:**
|
||||||
|
- 用户基本信息:昵称、简介、头像、认证状态
|
||||||
|
- 统计数据:关注数、粉丝数、获赞量、笔记数
|
||||||
|
- 笔记列表:用户发布的所有公开笔记
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
**小红书基础运营知识**
|
**小红书基础运营知识**
|
||||||
|
|
||||||
- **标题:(非常重要)小红书要求标题不超过 20 个字**
|
- **标题:(非常重要)小红书要求标题不超过 20 个字**
|
||||||
@@ -500,6 +525,7 @@ npx @modelcontextprotocol/inspector
|
|||||||
- `search_feeds` - 搜索小红书内容(需要:keyword)
|
- `search_feeds` - 搜索小红书内容(需要:keyword)
|
||||||
- `get_feed_detail` - 获取帖子详情(需要:feed_id, xsec_token)
|
- `get_feed_detail` - 获取帖子详情(需要:feed_id, xsec_token)
|
||||||
- `post_comment_to_feed` - 发表评论到小红书帖子(需要:feed_id, xsec_token, content)
|
- `post_comment_to_feed` - 发表评论到小红书帖子(需要:feed_id, xsec_token, content)
|
||||||
|
- `user_profile` - 获取用户个人主页信息(需要:user_id, xsec_token)
|
||||||
|
|
||||||
### 2.4. 使用示例
|
### 2.4. 使用示例
|
||||||
|
|
||||||
|
|||||||
58
README_EN.md
58
README_EN.md
@@ -35,6 +35,26 @@ https://github.com/user-attachments/assets/bd9a9a4a-58cb-4421-b8f3-015f703ce1f9
|
|||||||
|
|
||||||
Supports publishing image and text content to RedNote, including title, content description, and images. More publishing features will be supported later.
|
Supports publishing image and text content to RedNote, including title, content description, and images. More publishing features will be supported later.
|
||||||
|
|
||||||
|
**Image Support Methods:**
|
||||||
|
|
||||||
|
Supports two image input methods:
|
||||||
|
|
||||||
|
1. **HTTP/HTTPS Image Links**
|
||||||
|
```
|
||||||
|
["https://example.com/image1.jpg", "https://example.com/image2.png"]
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Local Image Absolute Paths** (Recommended)
|
||||||
|
```
|
||||||
|
["/Users/username/Pictures/image1.jpg", "/home/user/images/image2.png"]
|
||||||
|
```
|
||||||
|
|
||||||
|
**Why Local Paths are Recommended:**
|
||||||
|
- ✅ Better stability, not dependent on network
|
||||||
|
- ✅ Faster upload speed
|
||||||
|
- ✅ Avoid image link expiration issues
|
||||||
|
- ✅ Support more image formats
|
||||||
|
|
||||||
**Publish Image-Text Post Demo:**
|
**Publish Image-Text Post Demo:**
|
||||||
|
|
||||||
https://github.com/user-attachments/assets/8aee0814-eb96-40af-b871-e66e6bbb6b06
|
https://github.com/user-attachments/assets/8aee0814-eb96-40af-b871-e66e6bbb6b06
|
||||||
@@ -108,6 +128,31 @@ https://github.com/user-attachments/assets/cc385b6c-422c-489b-a5fc-63e92c695b80
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><b>7. Get User Profile</b></summary>
|
||||||
|
|
||||||
|
Get RedNote user's personal profile information, including basic user information and note content.
|
||||||
|
|
||||||
|
**Feature Description:**
|
||||||
|
|
||||||
|
- Get user basic information (nickname, bio, avatar, etc.)
|
||||||
|
- Get follower count, following count, likes count statistics
|
||||||
|
- Get user's published note content list
|
||||||
|
- Supports HTTP API and MCP tool calls
|
||||||
|
|
||||||
|
**⚠️ Important Note:**
|
||||||
|
|
||||||
|
- Must login first to use this feature
|
||||||
|
- Need to provide user ID and xsec_token
|
||||||
|
- These parameters can be obtained from Feed list or search results
|
||||||
|
|
||||||
|
**Returned Information Includes:**
|
||||||
|
- User basic info: nickname, bio, avatar, verification status
|
||||||
|
- Statistics: following count, follower count, likes count, note count
|
||||||
|
- Note list: all public notes published by the user
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
**RedNote Basic Operation Knowledge**
|
**RedNote Basic Operation Knowledge**
|
||||||
|
|
||||||
- **Title: (Very Important) RedNote requires titles to not exceed 20 characters**
|
- **Title: (Very Important) RedNote requires titles to not exceed 20 characters**
|
||||||
@@ -461,15 +506,18 @@ After successful connection, you can use the following MCP tools:
|
|||||||
|
|
||||||
- `check_login_status` - Check RedNote login status (no parameters)
|
- `check_login_status` - Check RedNote login status (no parameters)
|
||||||
- `publish_content` - Publish image-text content to RedNote (required: title, content, images)
|
- `publish_content` - Publish image-text content to RedNote (required: title, content, images)
|
||||||
|
- `images`: Supports HTTP links or local absolute paths, local paths recommended
|
||||||
- `list_feeds` - Get RedNote homepage recommendation list (no parameters)
|
- `list_feeds` - Get RedNote homepage recommendation list (no parameters)
|
||||||
- `search_feeds` - Search RedNote content (required: keyword)
|
- `search_feeds` - Search RedNote content (required: keyword)
|
||||||
- `get_feed_detail` - Get post details (required: feed_id, xsec_token)
|
- `get_feed_detail` - Get post details (required: feed_id, xsec_token)
|
||||||
- `post_comment_to_feed` - Post comments to RedNote posts (required: feed_id, xsec_token, content)
|
- `post_comment_to_feed` - Post comments to RedNote posts (required: feed_id, xsec_token, content)
|
||||||
|
- `user_profile` - Get user profile information (required: user_id, xsec_token)
|
||||||
|
|
||||||
### 2.4. Usage Examples
|
### 2.4. Usage Examples
|
||||||
|
|
||||||
Using Claude Code to publish content to RedNote:
|
Using Claude Code to publish content to RedNote:
|
||||||
|
|
||||||
|
**Example 1: Using HTTP Image Links**
|
||||||
```
|
```
|
||||||
Help me write a post to publish on RedNote,
|
Help me write a post to publish on RedNote,
|
||||||
with image: https://cn.bing.com/th?id=OHR.MaoriRock_EN-US6499689741_UHD.jpg&w=3840
|
with image: https://cn.bing.com/th?id=OHR.MaoriRock_EN-US6499689741_UHD.jpg&w=3840
|
||||||
@@ -478,6 +526,16 @@ The image is: "Maori rock carving at Ngātoroirangi Mine Bay, Lake Taupo, New Ze
|
|||||||
Use xiaohongshu-mcp for publishing.
|
Use xiaohongshu-mcp for publishing.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Example 2: Using Local Image Paths (Recommended)**
|
||||||
|
```
|
||||||
|
Help me write a post about spring to publish on RedNote,
|
||||||
|
using these local images:
|
||||||
|
- /Users/username/Pictures/spring_flowers.jpg
|
||||||
|
- /Users/username/Pictures/cherry_blossom.jpg
|
||||||
|
|
||||||
|
Use xiaohongshu-mcp for publishing.
|
||||||
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**Publishing Result:**
|
**Publishing Result:**
|
||||||
|
|||||||
Reference in New Issue
Block a user