feat(web): add MCP market database tracking and refresh status messages

- Add i18n translations for refresh success and failure messages in English and Chinese
- Track MCP tools already stored in database with inDatabase flag in Market component
- Display "已入库" (In Database) tag alongside activation status for MCPs
- Import getTools API to fetch full tool list for database status comparison
- Add market metadata fields (source_channel, market_id, market_config_id, mcp_service_id) to tool items when adding from market
- Preserve market source information through McpServiceModal when saving tools
- Update ToolItem type to include market tracking fields in config_data
- Improve MCP card layout to properly display multiple status tags
This commit is contained in:
yujiangping
2026-03-09 15:36:49 +08:00
parent 247db844a4
commit 4c2b31f31f
6 changed files with 52 additions and 9 deletions

View File

@@ -1806,6 +1806,8 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re
error_desc: 'API is configured but connection error',
testConnectionSuccess: 'Test Connection Successful',
refreshSuccess: 'Refresh Successful',
refreshFailed: 'Refresh Failed',
serviceEndpoint: 'Service Endpoint URL',
serviceEndpointPlaceholder: 'URL of the service endpoint',
serviceEndpointExtra: 'Complete access address of the MCP service',

View File

@@ -1803,6 +1803,8 @@ export const zh = {
error_desc: 'API 已配置但链接异常',
testConnectionSuccess: '测试连接成功',
refreshSuccess: '刷新成功',
refreshFailed: '刷新失败',
serviceEndpoint: '服务端点 URL',
serviceEndpointPlaceholder: '服务端点的 URL',
serviceEndpointExtra: 'MCP服务的完整访问地址',