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
This commit is contained in:
LaZzyMan 2026-02-25 21:40:22 +08:00
parent a608fdd243
commit fae195eaa8
16 changed files with 399 additions and 9 deletions

View file

@ -907,6 +907,19 @@ export default {
connecting: 'conectando',
disconnected: 'desconectado',
error: 'erro',
// Invalid tool related translations
'{{count}} invalid tools': '{{count}} ferramentas inválidas',
invalid: 'inválido',
'invalid: {{reason}}': 'inválido: {{reason}}',
'missing name': 'nome ausente',
'missing description': 'descrição ausente',
'(unnamed)': '(sem nome)',
unknown: 'desconhecido',
'Warning: This tool cannot be called by the LLM':
'Aviso: Esta ferramenta não pode ser chamada pelo LLM',
Reason: 'Motivo',
'Tools must have both name and description to be used by the LLM.':
'As ferramentas devem ter tanto nome quanto descrição para serem usadas pelo LLM.',
'Modify in progress:': 'Modificação em progresso:',
'Save and close external editor to continue':
'Salve e feche o editor externo para continuar',