Commit graph

15 commits

Author SHA1 Message Date
LaZzyMan
dcf986838c feat(mcp): improve OAuth auth UX - post-auth feedback, i18n, clear auth, and bug fixes
- Show tool count and completion message after successful authentication
- Auto-navigate back to server details after auth success (2s delay)
- Add structured i18n messages for OAuth display (core emits key/params, CLI translates)
- Add 'Clear Authentication' option for servers with stored OAuth tokens
- Fix: clearing auth now disconnects server (not just deleting tokens)
- Fix: auth popup infinite loop caused by onSuccess triggering reload/remount cycle
- Add ToolRegistry.disconnectServer() (disconnect without adding to exclusion list)
- Add i18n translations for all 6 languages (en/zh/de/ja/pt/ru)
2026-03-12 20:46:59 +08:00
LaZzyMan
d32dcab5db fix: remove redundant scope field from MCP server display and add CONCAT merge strategy for mcp allowed/excluded lists 2026-03-09 21:38:42 +08:00
LaZzyMan
a02ed08d26 fix ui 2026-03-09 18:26:01 +08:00
LaZzyMan
a19f1b1ab3 add i18n 2026-03-09 16:01:16 +08:00
LaZzyMan
15b5bc3bfc fix mcp ui 2026-03-09 15:20:30 +08:00
LaZzyMan
9e34b5db4a fix: 重写 AuthenticateStep 使用正确的 OAuth 流程
- 按照 mcpCommand.ts 中的 auth 实现重写 AuthenticateStep
- 使用 MCPOAuthProvider + MCPOAuthTokenStorage 进行实际 OAuth 认证
- 通过 appEvents/AppEvent.OauthDisplayMessage 展示认证过程消息
- 认证成功后自动触发 tool re-discovery 和 client tools 更新
- 只在 server.config.oauth?.enabled 为 true 时显示 Authenticate 选项
- 认证成功后 reload servers 刷新列表
2026-03-09 12:05:27 +08:00
LaZzyMan
9d3d51a283 feat: 简化 MCP 服务器禁用流程
- 问题 3: 自动匹配 scope,无需用户手动选择
- 改进:根据服务器配置位置 (user/workspace) 自动确定禁用 scope
- 改进:禁用操作一步完成,提升用户体验
- 注意:Extension 类型的服务器不支持通过此方式禁用
2026-03-09 11:06:47 +08:00
LaZzyMan
23c3518dff fix: 添加 handleAuthenticate 到依赖数组
- 修复 React Hooks exhaustive-deps 警告
2026-03-09 11:05:11 +08:00
LaZzyMan
892fe4f706 fix list align 2026-03-06 14:13:57 +08:00
LaZzyMan
fae195eaa8 feat(mcp): add tool validation and invalid tool indicators in MCP management dialog
- Add tool filtering in AnthropicContentGenerator (skip tools without name/description)

- Add isValid and invalidReason fields to MCPToolDisplayInfo type

- Show invalid tool warnings in ServerList, ServerDetail, ToolList, and ToolDetail steps

- Add translations for all 6 languages (en, zh, de, ja, pt, ru)

- Add tests for Anthropic converter and MCP utils
2026-02-25 21:40:22 +08:00
LaZzyMan
a608fdd243 fix i18n 2026-02-25 20:51:41 +08:00
LaZzyMan
5b50992db0 refactor: translate Chinese comments to English in MCPManagementDialog 2026-02-25 17:08:57 +08:00
LaZzyMan
4df4681dc8 fix: 修复 ESC 键重复触发 handleNavigateBack 的问题 2026-02-25 11:09:04 +08:00
LaZzyMan
fe0ec8049c feat: add MCP management TUI with dynamic enable/disable and runtime updates 2026-02-13 17:54:04 +08:00
LaZzyMan
f64f08d8a1 feat: add mcp dialog 2026-02-13 14:38:54 +08:00