feat: 添加搜索功能 (#16)
- 新增 SearchFeeds 服务方法,支持关键词搜索小红书内容 - 添加 search_feeds MCP 工具,提供搜索接口 - 新增 /api/v1/feeds/search API 端点 - 实现搜索页面的浏览器自动化操作 - 优化 MCP 协议支持,处理 notifications/initialized 和 notifications/cancelled 通知 - 更新文档,添加搜索功能说明和使用示例 - 重构类型定义,优化数据结构 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
12
README.md
12
README.md
@@ -7,10 +7,7 @@ MCP for xiaohongshu.com
|
||||
1. 登录。第一步必须,小红书需要进行登录。
|
||||
2. 发布图文。目前只支持发布图文,后续支持更多的发布功能。
|
||||
3. 获取推荐列表。
|
||||
|
||||
Todos:
|
||||
|
||||
- [ ] 搜索功能。
|
||||
4. 搜索内容。根据关键词搜索小红书内容。
|
||||
|
||||
## 1. 使用教程
|
||||
|
||||
@@ -63,6 +60,12 @@ npx @modelcontextprotocol/inspector
|
||||
|
||||

|
||||
|
||||
### 搜索内容
|
||||
|
||||
使用搜索功能,根据关键词搜索小红书内容:
|
||||
|
||||

|
||||
|
||||
## 2. MCP 客户端接入
|
||||
|
||||
本服务支持标准的 Model Context Protocol (MCP),可以接入各种支持 MCP 的 AI 客户端。
|
||||
@@ -93,6 +96,7 @@ claude mcp add --transport http xiaohongshu-mcp http://localhost:18060/mcp
|
||||
- `check_login_status` - 检查登录状态
|
||||
- `publish_content` - 发布图文内容
|
||||
- `list_feeds` - 获取推荐列表
|
||||
- `search_feeds` - 搜索小红书内容(前提:用户已登录)
|
||||
|
||||
### 2.4. 使用示例
|
||||
|
||||
|
||||
Reference in New Issue
Block a user