[codex] add MCP tools visibility management (#1170)

* feat(mcp): add tools visibility management

## Features
- Tools visibility modal with 3 modes: All, Include, Exclude
- 'Manage Tools' button on McpServerCard (enabled only when connected)
- 'Fetch Tools List' button to refresh available tools (raw mode)
- Responsive design for mobile (480px), tablet (768px), desktop (1280px)
- i18n translations for 9 languages (zh/en/zh-TW/ja/ko/de/es/fr/pt)

## Technical Details
- Add raw parameter to fetchMcpTools API for unfiltered tools
- Pass raw parameter through controller → bridgeMcpAction → client
- Backend _mcp_tools_list supports raw_mode to skip include/exclude filter
- 28 MCP unit tests pass (23 controller + 5 bridge action)

## Files Changed
- McpManagerView.vue: Tools visibility modal with mode selector
- McpServerCard.vue: Add manage tools button
- mcp.ts (client): Add raw parameter to fetchMcpTools
- mcp.ts (controller): Pass raw parameter to bridge
- mcp.ts (services): Pass raw parameter to client.mcpTools
- client.ts: Add raw parameter to mcpTools
- hermes_bridge.py: Support raw_mode in _mcp_tools_list
- 9 locale files: Add 14 translation keys each
- mcp-controller.test.ts: Add 3 new test cases
- bridge-mcp-action.test.ts: New test file for parameter passing

* Delete projects directory

chore: remove accidentally committed projects/ directory

* fix MCP tools visibility edge cases

* remove MCP docs screenshots

---------

Co-authored-by: Crafter-feng <succeed_happu@163.com>
Co-authored-by: Crafter-feng <37255449+Crafter-feng@users.noreply.github.com>
This commit is contained in:
ekko
2026-05-31 09:00:38 +08:00
committed by GitHub
co-authored by Crafter-feng Crafter-feng
parent 9df79c33be
commit c998a53566
29 changed files with 703 additions and 189 deletions
+18
View File
@@ -158,6 +158,24 @@ export default {
invalidConfig: '配置格式错误',
invalidServerConfig: '服务器配置无效',
missingCommandOrUrl: '必须包含 command 或 url',
manageTools: '管理工具',
toolsVisibilityTitle: '工具可见性管理',
fetchTools: '获取工具列表',
fetchToolsFailed: '获取工具列表失败',
toolsMode: '模式:',
toolsModeAll: '全部',
toolsModeInclude: '包含',
toolsModeExclude: '排除',
toolsListHeader: '工具名称',
toolsEmpty: '暂无工具,请先获取工具列表',
toolsSummaryAll: '共 {count} 个工具,全部启用',
toolsSummaryInclude: '共 {total} 个工具,已选 {count} 个',
toolsSummaryExclude: '共 {total} 个工具,已排除 {count} 个',
toolsVisibilitySaved: '工具可见性已保存',
toolsSelectAll: '全选',
toolsClearSelection: '取消全选',
toolsExcludeAll: '全部排除',
toolsClearExcluded: '清空排除',
},
sidebar: {