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

@ -156,6 +156,13 @@ export const ServerDetailStep: React.FC<ServerDetailStepProps> = ({
<Text>
{server.toolCount}{' '}
{server.toolCount === 1 ? t('tool') : t('tools')}
{!!server.invalidToolCount && server.invalidToolCount > 0 && (
<Text color={theme.status.warning}>
{' '}
({server.invalidToolCount}{' '}
{server.invalidToolCount === 1 ? t('invalid') : t('invalid')})
</Text>
)}
</Text>
</Box>
</Box>