|
|
95198e6a07
|
feat: 完善 MCP 接入体验与协议层稳定性
接入体验:
- 客户端选择器覆盖 7 个客户端(Claude Desktop/Code、Cursor、Cline、
Windsurf、Codex、GitHub Copilot),自动生成对应配置
- API Key 一键含 key 复制(密码验证后写入剪贴板)
- 公开 /mcp/:projectId/info + Test connection 按钮
- 项目新增 Usage 标签(每日柱状图 + 工具调用分布)
- 导入完成后引导跳转到 MCP 配置
协议层稳定性:
- session 超时清理(5 分钟扫描 / 30 分钟 idle 关闭)
- 错误响应标准化为 { error: { code, message } }
- 调用日志捕获错误信息 + 4KB payload 截断
- McpCallLog 增加 errorMessage 字段(migration)
抽出可复用模块:PasswordRevealPrompt 组件、BarChart 组件、
trends helper(daysWindowStart + getDailyTrends)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-02 12:52:47 +08:00 |
|
|
|
8d7692a42d
|
feat: 优化 MCP 工具响应与描述
- 改写 5 个工具的描述,明确调用顺序、何时使用、返回结构
- list_endpoints 与 search_endpoints 支持 cursor/limit 分页
- get_endpoint_detail 将 OpenAPI schema 扁平化为字段列表(2 层展开)
- 抽取 jsonOk/textOk/textError 响应辅助函数
- 错误响应附带样例 ID 与可用模块提示,方便 LLM 自我纠正
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-05-02 11:46:41 +08:00 |
|
|
|
6fe04f4893
|
feat: 添加 Admin 管理后台
- 数据库新增 Role 枚举、disabled 字段和 McpCallLog 调用日志表
- 后端新增 requireAdmin 中间件和 /api/admin/* 管理接口(统计、用户、项目、日志)
- MCP 工具调用自动记录详细日志(耗时、参数、响应大小、客户端IP、token估算)
- 前端新增 /admin 路由区域:仪表盘、用户管理、项目管理、调用日志四个页面
- JWT 携带 role 字段,登录/OAuth 增加禁用账号检查
- nginx 配置补充 X-Forwarded-For 透传真实客户端 IP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-04 13:04:44 +08:00 |
|
|
|
5e6efdaf59
|
fix: Docker 构建改用 npm 替代 pnpm + 补全 OAuth/Redis 环境变量
- Dockerfile 全部改为 npm install + 全局 tsc,解决 pnpm 符号链接问题
- docker-compose 添加 Redis 服务、OAuth 环境变量透传、web 端口改为可配置
- MCP URL 改用 window.location.origin 适配反向代理
- tsconfig 添加 paths 映射解决 Docker 内模块引用
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-03 17:24:52 +08:00 |
|
|
|
35511eb877
|
feat: opt web ux
|
2026-04-02 22:10:24 +08:00 |
|
|
|
dfe2a5acae
|
fix: fix Docker dev mode - build shared before starting, fix web container
|
2026-04-02 13:44:01 +08:00 |
|
|
|
f5907892bf
|
feat: add Docker Compose setup with Dockerfiles for all services
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-02 13:39:21 +08:00 |
|
|
|
ac60f0bb49
|
feat: add MCP service with 5 multi-level retrieval tools
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-02 13:29:10 +08:00 |
|
|
|
f644dc2dfd
|
feat: initialize monorepo with shared, server, mcp, and web packages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-02 11:28:59 +08:00 |
|