[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:
co-authored by
Crafter-feng
Crafter-feng
parent
9df79c33be
commit
c998a53566
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user