Commit Graph

324 Commits

Author SHA1 Message Date
chekayo
c47ef233aa 增加更多评论详情内容 2025-11-15 14:58:54 +08:00
Angiin
40fa09538f 增加 #2.5 常见问题答疑部分。 (#295)
为文档增加了 常见问题大一部分(后续会接着更新)
2025-11-12 00:57:43 +08:00
zy
869541b117 docs: 更新 CLAUDE.md,增加代码设计和注释要求 (#290)
- 新增关于代码设计的简洁性要求
- 强调使用中文注释的清晰性和专业性
2025-11-08 20:17:36 +08:00
zy
ad2495bbfe docs: 更新英文版 README 与中文版保持同步 (#285)
- 更新贡献者徽章:6 → 17
- 新增捐赠和 Docker Pulls 徽章
- 添加疑难杂症链接和 x-mcp 工具推荐
- 添加赞赏支持章节
- 更新基础运营知识(正文1000字限制、Tags支持状态)
- 更新教程列表(Claude Code + Kimi K2、AnythingLLM)
- 更新社区群信息(飞书3群、微信10群)
- 扩展贡献者列表至17人
2025-11-06 00:17:11 +08:00
zy
2397e5ffb2 docs: 添加 Docker Pulls 徽章到 README (#284)
在 README 顶部添加 Docker Hub 下载次数徽章,方便用户查看项目热度。

徽章特性:
- 使用 flat-square 风格与现有徽章保持一致
- 添加 Docker logo 图标
- 点击可跳转到 Docker Hub 仓库
- 自动显示镜像总下载次数

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 23:49:07 +08:00
zy
19471706ad feat: 添加 ARM64 架构的 Docker 镜像支持 (#282)
新增 Dockerfile.arm64 用于构建 ARM64 架构镜像,与现有 amd64 镜像互不影响。

主要变更:
- 新建 Dockerfile.arm64,使用 Chromium 替代 Google Chrome
- 移除 GOARCH 硬编码,支持多架构构建
- 更新 GitHub Actions 工作流,添加独立的 ARM64 构建步骤
- ARM64 镜像使用独立标签:version-arm64 和 latest-arm64

技术说明:
- Google Chrome 不支持 Linux ARM64
- go-rod 会自动从 Playwright CDN 下载 ARM64 版 Chromium
- 两个架构的镜像构建相互独立,失败风险隔离

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 23:27:40 +08:00
zy
fb7c94e36c Update WeChat group QR code in README 2025-11-02 19:08:03 +08:00
allcontributors[bot]
4dbb01811e docs: add ctrlz526 as a contributor for code (#277)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-11-02 19:04:14 +08:00
Ctrlz
11a937b84f feat: add delete cookies functionality for login reset (#275) 2025-11-02 19:01:48 +08:00
chekayo
19b0f8545d refactor(feed_detail): optimize comment loading logic in GetFeedDetail
- Replaced the previous comment loading JavaScript with a more efficient scrolling and collection mechanism.
- Improved the logic for determining scroll targets and handling comment counts.
- Enhanced error handling and logging for comment loading failures.
- Removed deprecated code related to the old comment loading approach.
2025-11-01 21:21:47 +08:00
chekayo
6484e58ade feat(feed_detail): add loadAllComments parameter to GetFeedDetail functionality
- Enhanced GetFeedDetail method to support loading all comments based on the new loadAllComments parameter.
- Updated related handlers and request structures to accommodate the new parameter.
- Improved logging to reflect the loading of all comments during feed detail retrieval.
- Implemented JavaScript logic to scroll and collect comments when loadAllComments is true.
2025-11-01 20:55:51 +08:00
chekayo
a169db603b refactor(comment_feed): streamline comment reply process and enhance error handling
- Removed redundant waiting times and improved the logic for finding comment elements and reply buttons.
- Simplified the reply button search by consolidating selectors and enhancing error messages.
- Improved the overall readability of the code by removing unnecessary comments and whitespace.
- Ensured better handling of potential errors during the comment reply process.
2025-10-28 02:02:08 +08:00
chekayo
4d01a362a9 feat(feeds): Enhance search functionality with additional filter options
- Added support for sorting, note type, time range, search scope, and location distance in the search feeds functionality.
- Updated SearchFeedsArgs struct to include new parameters for filtering.
- Modified handleSearchFeeds method to process and apply filters during feed search.
- Improved logging to include the number of applied filters.
2025-10-28 02:01:42 +08:00
zy
7cf35fc4ae Add donation badges to README
Added donation badges to README for transparency.
2025-10-26 21:45:29 +08:00
zy
adbfc4321a 增加捐赠名单 (#269)
* 增加捐赠名单

* update docs: add intro header

* Update donation amounts and summary in DONATIONS.md
2025-10-26 21:36:07 +08:00
allcontributors[bot]
04803b2de4 docs: add hrz394943230 as a contributor for code (#261)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-10-23 23:53:16 +08:00
hrz
94ed5d4477 修改 filterOptions 让接口更友好 (#260)
Co-authored-by: huruize <8985917+huruize007@user.noreply.gitee.com>
2025-10-23 23:52:34 +08:00
zy
0d18d951f7 Update README with x-mcp tool recommendation
Added recommendation for x-mcp tool for easier use.
2025-10-23 01:20:12 +08:00
zy
d4116f2a4f Update README.md 2025-10-19 00:35:19 +08:00
zy
c6705f09eb Update README.md 2025-10-16 23:40:56 +08:00
zy
b326d8cc8c feat: add panic recovery middleware for MCP tools (#246)
* feat: 添加统一的 panic recovery 错误处理机制

实现了类似 Gin middleware 的 panic recovery 机制:
- 添加 withPanicRecovery 泛型函数,捕获 handler 中的 panic
- 包装所有 11 个 MCP 工具的 handler 函数
- 记录完整的错误日志和堆栈信息
- 向客户端返回友好的错误提示信息
- 保证程序在单个工具出错时不会崩溃

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* update comments

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-16 23:32:01 +08:00
zy
d11cb1c833 update publish timeout (#245)
* update publish timeout

* add publish error message
2025-10-16 23:09:47 +08:00
zy
df623caf18 fix get data panic (#244)
* fix: 修复 data 获取时的循环引用错误
2025-10-16 23:00:57 +08:00
Carlo
844ff8c102 myProfileHandler (#239)
Co-authored-by: Buf Generate <buf-generate@bondee.com>
2025-10-16 21:17:28 +08:00
allcontributors[bot]
23f85616b4 docs: add a67793581 as a contributor for code (#241)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-10-16 21:16:58 +08:00
Carlo
d5138d32bc new_search (#238)
Co-authored-by: Buf Generate <buf-generate@bondee.com>
2025-10-16 21:15:13 +08:00
haikow
c485f1cd49 docs: add Windows 11 setup guide for xiaohongshu-mcp (#223)
* docs: add Windows 11 setup guide for xiaohongshu-mcp

- Introduced a comprehensive guide for quickly setting up xiaohongshu-mcp on Windows 11.
- Included steps for downloading the latest build, resolving virus warnings, and starting the application.
- Added detailed instructions for managing Windows Security exclusions and launching the MCP service.
- Provided installation steps for the AI client (iflow cli) and usage examples.

* 更新 windows_guide.md

---------

Co-authored-by: juesheng.Lin <juesheng.lin@gientech.com>
2025-10-12 13:01:43 +08:00
zy
70ab07fe94 Update README.md 2025-10-11 00:13:27 +08:00
chekayo
8d089f59f8 refactor: enhance reply comment functionality with improved error handling and response structure
- Simplified error handling in handleReplyComment to check for both comment_id and user_id simultaneously.
- Updated response message to include both Comment ID and User ID upon successful reply.
- Modified ReplyCommentArgs struct to make comment_id and user_id optional.
- Renamed MCP tool for replying to comments for clarity.
2025-10-10 00:23:51 +08:00
chekayo
cff1705c5b feat: add reply comment functionality for Xiaohongshu feeds
- Implemented handleReplyComment method in mcp_handlers.go to manage replying to comments on feeds.
- Introduced ReplyCommentArgs struct in mcp_server.go for handling parameters related to comment replies.
- Registered a new MCP tool for replying to comments in the registerTools function.
- Added ReplyCommentToFeed method in service.go to interact with the Xiaohongshu platform for comment replies.
- Enhanced error handling for missing parameters in the reply process.
2025-10-09 23:49:40 +08:00
chekayo
408c641959 Merge remote-tracking branch 'upstream/main' into feature/comment-feed-logic
# Conflicts:
#	mcp_handlers.go
#	mcp_server.go
#	service.go
#	xiaohongshu/like_favorite.go
2025-10-09 23:20:41 +08:00
zy
022075132b Update README.md 2025-10-09 21:52:14 +08:00
chekayo
e6bf9921ea refactor: improve comment posting logic with enhanced error handling and stability checks
- Updated the PostComment method to include error handling for navigation and element interactions.
- Replaced sleep calls with more reliable wait mechanisms to ensure page stability.
- Added checks for the presence of input elements and improved logging for better debugging.
2025-10-09 21:38:52 +08:00
allcontributors[bot]
3cc56e0bb8 docs: add haikow as a contributor for code (#211)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-10-08 11:44:00 +08:00
haikow
66aa36b48c feat: add like and favorite functionality for feeds (#207)
* feat: add like and favorite functionality for feeds

- Implemented handleLikeFeed and handleFavoriteFeed methods in mcp_handlers.go to manage liking and favoriting feeds.
- Added LikeFavoriteArgs struct in mcp_server.go for handling parameters.
- Registered new MCP tools for liking and favoriting feeds in registerTools function.
- Introduced LikeFeed and FavoriteFeed methods in XiaohongshuService to interact with the respective actions.
- Created LikeFavoriteAction in a new file to encapsulate the logic for liking and favoriting feeds on the Xiaohongshu platform.

* "Fix-build-errors"

* refactor: streamline like and favorite actions in LikeFavoriteAction

- Introduced a generic method `performInteractAction` to handle both liking and favoriting feeds, reducing code duplication.
- Updated logging to reflect the action type being performed (like or favorite).
- Enhanced state verification after interaction to ensure accurate feedback on success or failure.
- Removed the `clickLastMatch` function, simplifying the interaction logic.

* "Add-unlike-and-unfavorite-functionality"

* "Refactor-performInteractAction-function"

* "Refactor-split-LikeFavoriteAction-into-separate-actions"

---------

Co-authored-by: chekayo <9827969+chekayo@user.noreply.gitee.com>
2025-10-08 11:40:45 +08:00
chekayo
7c2658dae5 "优化评论反馈逻辑:简化回复按钮查找和点击流程 2025-10-07 14:00:16 +08:00
chekayo
c6390bf014 feat: add like and favorite functionality for feeds
- Implemented handleLikeFeed and handleFavoriteFeed methods in mcp_handlers.go to manage liking and favoriting feeds.
- Added LikeFavoriteArgs struct in mcp_server.go for handling parameters.
- Registered new MCP tools for liking and favoriting feeds in registerTools function.
- Introduced LikeFeed and FavoriteFeed methods in XiaohongshuService to interact with the respective actions.
- Created LikeFavoriteAction in a new file to encapsulate the logic for liking and favoriting feeds on the Xiaohongshu platform.
2025-10-06 03:26:52 +08:00
zy
d84bf2e9a2 update rm popup window (#202) 2025-10-04 23:22:28 +08:00
zy
678bc71ae0 publish: 增加发布移除弹窗的操作 (#201)
* publish: 增加发布移除弹窗的操作

* 随机点击操作

* 更新点击的随机坐标
2025-10-04 21:14:47 +08:00
zy
223d9e146b fix: remove ARM64 platform support to avoid Chrome installation issues 2025-09-30 01:53:28 +08:00
zy
4d809f1e84 feat: add manual Docker release workflow (#187)
- 新增 docker-release.yml workflow,支持手动触发 Docker 镜像构建
- 从 release.yml 中移除自动 Docker 构建,避免镜像膨胀
- 使用语义化版本号策略(如 v1.0.0)
- 支持多平台构建(linux/amd64, linux/arm64)
- 硬编码公开信息,只需配置 DOCKERHUB_TOKEN secret
- 自动标记版本号和 latest 标签

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-30 01:42:37 +08:00
zy
85852e3277 Update README.md 2025-09-30 01:07:34 +08:00
Banghao Chi
33625dc1b9 docs(README): reflect support for "publish with video and Tags (#181) 2025-09-29 23:47:46 +08:00
zy
44628a94e2 update cc config (#180) 2025-09-29 01:13:32 +08:00
zy
0955723b19 feat: 为视频发布功能新增HTTP API接口和完善文档 (#179)
* 重构 publish tab 选择逻辑,把公共代码提取到同一个函数中

* feat: 为视频发布功能新增HTTP API接口和完善文档

- 新增 /api/v1/publish_video HTTP接口
- 添加 publishVideoHandler 处理函数
- 更新 API.md 增加视频发布接口文档
- 更新 README.md 和 README_EN.md 增加视频发布功能说明
- 在MCP工具列表中补充 publish_with_video 工具说明
2025-09-29 01:08:11 +08:00
Banghao Chi
8c3665a3de feat: publish with video (#171)
* feat: publish with video

* fix: add more timeout (network bandwidth + large files) and remove pop-up

* fix: remove excessive remove pop-up function
2025-09-29 00:34:47 +08:00
zy
fe82b14ba9 docs: 新增HTTP API文档 (#178)
- 添加小红书MCP HTTP API完整文档
- 包含所有端点的请求/响应格式说明
- 简化响应示例,突出关键字段结构
- 与实际代码结构保持一致

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-29 00:16:31 +08:00
zy
c9002d06e8 publish: update publish, rm pop-cover (#176)
THANKS: @lmxdawn
CLOSE: #172
2025-09-28 22:41:31 +08:00
zy
f3fe9bab40 docs: 增加 Docker Hub 镜像下载方式 (#169)
- 在中英文 README 中增加从 Docker Hub 拉取镜像的说明
- 添加 docker pull 命令和 Docker Hub 链接
- 调整 Docker 部署顺序,推荐使用预构建镜像
- 更新 docker/README.md,突出推荐从 Docker Hub 下载

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-27 18:13:59 +08:00
zy
53ea832773 refactor: 迁移到官方 MCP SDK (#167)
- 添加官方 SDK 依赖 github.com/modelcontextprotocol/go-sdk v0.7.0
- 新增 mcp_server.go 使用官方 SDK 注册 8 个 MCP 工具
- 删除自实现的 streamable_http.go(约 400 行)
- 更新 routes.go 使用 mcp.NewStreamableHTTPHandler
- 优化服务器优雅关闭逻辑(5秒超时 + 警告日志)
- 清理 types.go 中的 JSON-RPC 相关类型

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-27 01:44:02 +08:00