Commit Graph
5 Commits
Author SHA1 Message Date
Hermes Agent a90f394eb1 feat(mcp): 内置 MCP 服务端(streamable-http)
Docker Build / Build and Push Docker Image (push) Successful in 1m7s
Docker Build / Deploy to Server (push) Successful in 3s
- 新增 backend/internal/router/mcp:MCP 端点 /api/v1/mcp,Bearer/X-MCP-Token/?token 鉴权
- 只读工具:list_apps / list_versions / get_version / simulate_check_update /
  list_cards / app_stats / list_devices / list_logs
- 写工具(mcp.allow_write=true):publish_version / deprecate_version,默认 dry_run,
  写操作落 logs 审计
- simulate_check_update 复刻 check-update 判定规则,可预判“同版本号重传不生效”
- 导出 app.BuildManifest 复用清单计算口径,避免逻辑漂移
- 构建环境 go 1.21 -> 1.23(mcp-go 要求),Dockerfile 同步
- 文档 docs/mcp.md
2026-11-21 00:31:03 +08:00
adminandClaude 113c01e89f feat: 心跳接口改用JWT token获取用户设备信息
- JWT Claims 增加 device_id 和 instance_id 字段
- 登录时将设备信息编码到 token
- 心跳接口从 token 自动获取用户和设备信息
- 心跳路由移到需要 JWT 认证的路由组
- 更新 API 文档

优点:
- 更安全:无法伪造设备信息
- 请求更简洁:心跳无需传递参数
- 符合业界标准做法

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-16 02:25:53 +08:00
adminandClaude Opus 4.7 ed4a561704 feat: add application API documentation and C++ SDK
- Add complete API documentation for application integration (docs/API_DOCUMENT.md)
- Fix check-update API to use version ID comparison instead of string comparison
- Add validation: client version must exist in server version list
- Add support for patch/incremental updates with base_version check
- Add C++ SDK with HTTP client, JSON parser, and crypto support
- Add simple_test.cpp for standalone testing on Windows

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 11:58:44 +08:00
admin a39e994a2e docs: 更新开发日志,记录版本状态判断逻辑 2026-05-08 22:55:14 +08:00
admin 599975667a docs: 添加开发日志,记录版本管理相关Bug修复 2026-05-08 21:53:05 +08:00