Commit Graph

275 Commits

Author SHA1 Message Date
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
zy
529ee71144 Update README.md 2025-09-26 16:46:15 +08:00
Banghao Chi
bd8f954ce3 ci(release): add Docker paths to paths-ignore to avoid docs-only release triggers (#162) 2025-09-26 09:47:36 +08:00
zy
d08b1d4a43 docs: add Docker deployment instructions to README files (#161)
- Added a new section for deploying using Docker in both English and Chinese README files.
- Included detailed steps for building the Docker image, starting services with Docker Compose, and configuration notes.
- Updated the Docker README with important notes regarding image storage and local image usage.
2025-09-25 23:54:52 +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
f37b4d8591 Update README.md 2025-09-25 23:17:38 +08:00
allcontributors[bot]
6fc84e979b docs: add lmxdawn as a contributor for code (#158)
* 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-09-25 19:47:29 +08:00
lmxdawn
a8a2743a51 feat: 支持返回登录二维码与 Docker 部署 (#155)
* feat: 支持返回登录二维码与 Docker 部署

* feat: 完善扫码登录功能

* fix: 修复当存在已经登录的情况,上层还会启动 goroutine的问题,并把 mcp 的返回增加为图片格式
2025-09-25 19:44:01 +08:00
allcontributors[bot]
cc5038decd docs: add Meloyg as a contributor for code (#156)
* 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-09-24 23:00:10 +08:00
Melo Y Guan
cefbfb8f03 feat: add instructions for cline mcp setup (#149) 2025-09-24 22:49:56 +08:00
Banghao Chi
de2c637f4f ci(release): add deploy into paths-ignore (#148)
* ci(release): add paths-ignore to avoid release on non-code changes

* ci(release): add deploy into paths-ignore
2025-09-24 12:14:21 +08:00
zy
398adf7c85 Update README.md 2025-09-24 11:55:04 +08:00
allcontributors[bot]
a3ad29a5ad docs: add varz1 as a contributor for code (#147)
* 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-09-24 11:49:46 +08:00
varz1
c54c00b27c docs: 添加 macOS launchd 服务配置和安装指南 (#142) 2025-09-24 11:49:04 +08:00
zy
177a64822d Update README.md 2025-09-23 18:45:57 +08:00
allcontributors[bot]
7c5745abd2 docs: add BiboyQG as a contributor for code (#137)
* 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-09-22 23:55:31 +08:00
Banghao Chi
e7d7d02a55 ci(release): add paths-ignore to avoid release on non-code changes (#132) 2025-09-22 23:54:33 +08:00
zy
c404f8a7cc Update README.md 2025-09-22 13:07:52 +08:00
zy
84f6a85105 优化 cookies 路径管理策略 (#127)
* feat: 优化 cookies 路径管理策略

1. 实现向后兼容的路径迁移逻辑:
   - 优先使用旧路径 /tmp/cookies.json(如果存在)
   - 否则使用当前目录 ./cookies.json
2. 移除不必要的目录创建逻辑
   - 删除 NewLoadCookie 中的 MkdirAll 调用
   - 避免相对路径可能导致的权限问题

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

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

* feat: 添加 cookies.json 到 .gitignore

- 避免将包含敏感登录信息的 cookies 文件提交到版本控制
- 保护用户隐私和安全

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

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-21 23:25:11 +08:00
zy
e1d43d28a4 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>
2025-09-20 23:55:42 +08:00
zy
716cf104ce docs: 优化图片支持方式的文档说明 (#124)
- 在README中详细说明两种图片支持方式(HTTP链接和本地路径)
- 明确推荐使用本地绝对路径的原因和优势
- 添加具体的使用示例和代码示例
- 优化MCP协议中images字段的描述,提供更清晰的格式说明
- 帮助用户更好地理解和使用图片发布功能

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

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-20 23:44:59 +08:00
allcontributors[bot]
34120b4831 docs: add CooperGuo as a contributor for code (#123)
* 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-09-20 22:21:49 +08:00
CooperGuo
5f412a6bc5 feat:获取用户主页功能 (#122)
增加读取用户的个人主页的信息
2025-09-20 22:20:58 +08:00
zy
eafd973d75 Update README.md
add anythingLLM in readme
2025-09-20 10:26:35 +08:00
zy
fe3b93f7b3 fix: 修复 GitHub Actions release workflow 权限问题 (#119)
将触发事件从 pull_request 改为 push,解决来自 fork 的 PR 合并时
因权限受限导致的 403 错误。

- 触发条件:从 pull_request(closed) 改为 push to main
- 条件判断:相应调整为 push 事件的判断逻辑

这样可以确保 workflow 在代码真正合并到 main 分支后才运行,
此时有完整的 contents:write 权限来创建 release。

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

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-20 00:37:28 +08:00
Journey
fec85b2b30 feat: 添加图片上传验证与超时处理功能 (#115)
(cherry picked from commit 651b1578ae341f0a5cbb1447d483cc8954f7e5bc)

Co-authored-by: chengchongzhen <15939054361@163.com>
2025-09-20 00:16:07 +08:00
zy
221ff3d40c Update README.md 2025-09-20 00:00:56 +08:00
allcontributors[bot]
04b8079f65 docs: add eveyuyi as a contributor for code (#118)
* 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-09-19 23:53:51 +08:00
Eve Yu
77a8ae9d2a add anythingLLM + xiaohongshu-mcp integration guide (#117)
Co-authored-by: EveYu <eveyu@Eves-MacBook-Air.local>
2025-09-19 23:53:01 +08:00
zy
e14c257248 Update claude-code-kimi-k2.md 2025-09-19 13:24:07 +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
5785a545ae examples: add claude code with kimi-k2 (#112)
* examples: init claude code

* Update claude-code-kimi-k2.md

更新文档

* Update claude-code-kimi-k2.md

* Update README.md
2025-09-19 01:59:28 +08:00
zy
053dc4a53c Merge pull request #111 from xpzouying/add-donate-qrcode
feat: 添加赞赏支持功能
2025-09-19 01:10:26 +08:00
zy
d4469ce94a feat: 添加赞赏支持功能
- 在 README 中添加赞赏支持章节
- 支持支付宝转账(邮箱地址)
- 支持微信扫码赞赏(二维码图片)
- 添加 GitHub FUNDING.yml 配置

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 01:04:55 +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
4c4b9cb47a fix: 恢复自动构建的 Release 功能,但不创建永久 tag
- 保留每次 push 到 main 时自动创建 Release
- 使用基于时间戳的命名(Build-年.月.日.时分-commit)
- 标记为预发布版本,用于测试
- 正式版本通过手动触发 tag-release.yml 发布

这样既保留了自动构建的 Release 供测试使用,又避免了 tag 膨胀问题

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-18 23:08:23 +08:00
zy
c8042d0822 refactor: 改进发布策略,将自动发布改为手动触发
- 修改 release.yml 为仅构建不打 tag,构建产物保存为 artifacts
- 新增 tag-release.yml 用于手动触发发布和打 tag
- 删除所有历史自动生成的 tags
- 采用更合理的版本管理策略,避免版本号膨胀

现在的工作流:
1. push to main 时自动构建(不打 tag)
2. 需要发布时手动触发 Tag and Release workflow
3. 手动输入语义化版本号(如 v1.0.0)和发布说明

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-18 22:41:58 +08:00
allcontributors[bot]
798bcb2be5 docs: add chengazhen as a contributor for code (#108)
* 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-09-18 22:25:52 +08:00
zy
b86d3626f1 Revert "Revert PR #105" - 恢复 publish.go 功能 (#109)
* Reapply "Merge pull request #105 from chengazhen/main" (#107)

This reverts commit 81ff26d6a7.

* feature: 获取有效的元素
2025-09-18 22:25:36 +08:00
zy
81ff26d6a7 Revert "Merge pull request #105 from chengazhen/main" (#107)
This reverts commit aaf5fdedf1.
2025-09-18 22:12:24 +08:00
Journey
aaf5fdedf1 Merge pull request #105 from chengazhen/main
feat: 添加蜜罐元素检测与过滤功能
2025-09-18 22:08:26 +08:00
zy
5b34969288 Merge pull request #103 from xpzouying/feat/improve-showcase-section
feat: 优化 ShowCase 章节展示和调整图片大小
2025-09-18 00:30:19 +08:00
zy
1ee3e25d20 feat: 优化 ShowCase 章节展示和调整图片大小
改进内容:

1. 调整图片大小
   - 将发布结果图片宽度从 400px 调整为 300px
   - 优化页面布局,避免占用过多空间

2. 改进 ShowCase 章节
   - 重命名为"🌟 实战案例展示 (Community Showcases)"
   - 添加章节编号(3)
   - 使用 emoji 增强视觉效果
   - 添加强调提示框
   - 加粗重要链接

3. 为互助群章节添加编号(4)

4. 同步更新英文版 README

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-18 00:10:36 +08:00
zy
c2ce44fe6d Merge pull request #102 from xpzouying/feat/sync-english-readme
docs: 同步更新英文版 README 与中文版保持一致
2025-09-17 22:50:33 +08:00
zy
d676c6e0c7 docs: 同步更新英文版 README 与中文版保持一致
- 添加预编译二进制文件下载说明(主程序 + 登录工具)
- 更新快速开始部分,区分二进制文件和源码编译两种方式
- 添加浏览器自动下载提示
- 更新贡献者列表(6 位贡献者)
- 更新社区群组信息(添加微信群 3)
- 完善 MCP 客户端接入文档
- 保持与中文版 README 完全同步

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-17 22:47:37 +08:00
zy
60e48fec0c types: del user xsecToken (#100)
删除用户中的 xsecToken,该字段暂时没有用,有的大模型容易识别错误,把user的token当做 note 的token用。

CLOSED #96
2025-09-17 22:26:06 +08:00
zy
c64534e90e fix: 添加 GitHub Actions 写入权限配置 (#99)
- 添加 permissions: contents: write 配置
- 解决 403 权限错误问题
- 允许 GitHub Actions 创建 releases 和上传文件

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

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-17 22:11:59 +08:00
zy
517193b317 fix: 修复 GitHub Actions Release 权限问题
- 替换 actions/create-release@v1 为 softprops/action-gh-release@v1
- 使用新的 action 同时处理 release 创建和文件上传
- 移除重复的文件上传步骤
- 解决 "Resource not accessible by integration" 错误

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-17 22:04:29 +08:00
zy
9a1479f47c Merge branch 'feat/add-github-actions-release' 2025-09-17 21:57:55 +08:00
zy
c6c83ad861 Update README.md 2025-09-17 21:19:29 +08:00