Commit Graph

11 Commits

Author SHA1 Message Date
zy
44628a94e2 update cc config (#180) 2025-09-29 01:13:32 +08:00
zy
9fcc7402b6 update docker config file (#159)
* update dockerfile, use cn mirrors

* deploy: update docker deploy config

更新 docker 配置文件。
1. 切换到 ubuntu,能测试成功;debian 测试有问题,先用 ubuntu 吧。
2. 增加国内源,优化编译+系统安装的速度。
3. 切换成 chrome 浏览器。

* mv docker compose config file

* update docker compose
2025-09-25 23:41:52 +08:00
zy
61dde42c25 修复 Linux GLIBC 依赖问题并添加压缩包发布 (#113)
* fix: 禁用 CGO 以解决 Linux 系统 GLIBC 版本依赖问题

- 在所有平台的构建命令中添加 CGO_ENABLED=0
- 生成静态链接的二进制文件,不依赖系统 GLIBC
- 解决 Ubuntu 20.04 等较旧系统无法运行的问题

* feat: 将发布文件打包成压缩包

- 添加打包步骤,将二进制文件压缩成 tar.gz (Unix) 或 zip (Windows)
- 每个压缩包包含主程序和登录工具
- 减小下载体积,方便用户使用
- 更新 Release 说明文档
2025-09-19 02:19:35 +08:00
zy
3b8abfeafc refactor: 优化发布流程 - PR 合并时触发,自动清理旧版本
主要改进:
- 改为 PR 合并到 main 时触发(不是每次 push)
- 自动删除超过 10 个的旧 Release,保持发布历史整洁
- 移除 prerelease 标记,所有自动构建都是正式 Release
- 恢复使用 v 前缀的版本号格式
- 清理了现有的 Draft 状态 Release

工作流程:
1. PR 合并到 main 分支时自动构建并发布
2. 自动清理,只保留最近 10 个 Release
3. 手动触发 tag-release.yml 发布语义化版本

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-18 23:19:00 +08:00
zy
a0a063d418 fix: 修复 settings.local.json 文件中的配置项格式
- 更新配置项,确保 JSON 格式正确
- 添加新的浏览器导航和点击操作支持

🤖 Generated with [Claude Code](https://claude.ai/code)
2025-08-17 16:57:04 +08:00
zy
b64b241651 docs: 更新 MCP_README.md,增强 Claude Desktop 和 Cursor 的配置说明 (#15)
- 📝 修改 Claude Desktop 的 MCP 服务器配置示例,更新为使用 curl 命令
-  为 Cursor 添加项目级和全局配置示例,提升文档清晰度
- 🔧 更新相关图片文件,确保文档内容一致性

支持的 MCP 客户端:
 Claude Code CLI
 Claude Desktop
 Cursor
 VSCode
 MCP Inspector

🤖 Generated with [Claude Code](https://claude.ai/code)
2025-08-17 16:55:07 +08:00
zy
a7e975cf7c refactor: 重构代码架构,解耦处理器和服务 (#13)
重大架构改进:
- 移除全局变量 xiaohongshuService,改用依赖注入
- 将代码按职责分离到不同文件:
  * app_server.go - 核心服务器结构
  * types.go - 统一类型定义
  * routes.go - 路由配置
  * middleware.go - 中间件
  * handlers_api.go - REST API 处理器
  * handlers_mcp.go - MCP 协议处理器
- 将通用工具函数从 AppServer 方法改为独立函数
- 删除未使用的类型定义(LoginWaitRequest)
- 修复 JSON 编码错误处理

优势:
 更好的依赖注入模式
 清晰的职责分离
 提高代码可测试性
 符合 Go 最佳实践
 降低耦合度,提高内聚性

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

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-17 16:15:54 +08:00
zy
aee7b321d3 feat: 添加获取小红书首页 Feeds 列表的 HTTP 和 MCP 接口
- 在 service.go 中添加 ListFeeds 业务逻辑,复用 xiaohongshu 包功能
- 添加 HTTP 接口 GET /api/v1/feeds/list
- 添加 MCP tool: list_feeds,支持通过 MCP 协议获取 Feeds
- 返回结构化的 Feeds 数据,包含列表和数量统计
- 更新 .gitignore 忽略构建产物和测试脚本
- 更新项目配置,添加 chmod 权限

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 01:22:19 +08:00
zy
bfa830026c chore: 更新项目配置
- 添加 gofmt 和 goimports 自动审批权限
- 添加 CLAUDE.md 项目指导文件,要求格式化 Go 源码

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 01:12:15 +08:00
zy
58faab15c4 mcp: add image url support (#1)
* refactor: remove redundant validation in service and clean up code

- Remove validatePublishRequest function as gin binding already handles validation
- Remove unused errors import
- Simplify PublishContent method by relying on gin's built-in validation
- Add comprehensive image processing support with URL download capability

* 添加 MCP 说明文档,完善教程
2025-08-10 15:44:15 +08:00
zy
7cd35ebb71 feat: implement xiaohongshu automation with MCP server
Complete implementation of xiaohongshu (Little Red Book) automation system:

### Core Features:
- **QR Code Login**: Automated login with cookie persistence
- **Content Publishing**: Post text, images with AI-powered descriptions
- **Browser Management**: Headless Chrome automation via go-rod
- **Cookie Persistence**: Session management for login state
- **MCP Server**: Model Context Protocol integration for Claude

### Technical Components:
- go-rod browser automation with stealth mode
- MCP server for Claude Code integration
- Cookie-based session management
- Robust error handling and logging
- Cross-platform compatibility

### API Endpoints:
- Login status checking and QR code authentication
- Content publishing with image upload support
- Navigation and page interaction utilities

This provides a complete foundation for xiaohongshu automation
with proper session management and MCP integration.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-10 13:09:00 +08:00