mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
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:
parent
a608fdd243
commit
fae195eaa8
16 changed files with 399 additions and 9 deletions
|
|
@ -908,6 +908,19 @@ export default {
|
|||
connecting: 'подключение',
|
||||
disconnected: 'отключен',
|
||||
error: 'ошибка',
|
||||
// Invalid tool related translations
|
||||
'{{count}} invalid tools': '{{count}} недействительных инструментов',
|
||||
invalid: 'недействительный',
|
||||
'invalid: {{reason}}': 'недействительно: {{reason}}',
|
||||
'missing name': 'отсутствует имя',
|
||||
'missing description': 'отсутствует описание',
|
||||
'(unnamed)': '(без имени)',
|
||||
unknown: 'неизвестно',
|
||||
'Warning: This tool cannot be called by the LLM':
|
||||
'Предупреждение: Этот инструмент не может быть вызван LLM',
|
||||
Reason: 'Причина',
|
||||
'Tools must have both name and description to be used by the LLM.':
|
||||
'Инструменты должны иметь как имя, так и описание, чтобы использоваться LLM.',
|
||||
'Modify in progress:': 'Идет изменение:',
|
||||
'Save and close external editor to continue':
|
||||
'Сохраните и закройте внешний редактор для продолжения',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue