feat(i18n): complete internationalization for MCP preset descriptions
- Add i18n keys for all 5 MCP preset descriptions (fetch, time, memory, sequential-thinking, context7) - Refactor mcpPresets.ts to use i18n keys instead of hardcoded Chinese descriptions - Add getMcpPresetWithDescription() helper function for dynamic translation - Update McpFormModal to use translated descriptions when applying presets - Fix inconsistent key naming: sequentialThinking -> sequential-thinking This ensures MCP preset descriptions automatically switch language based on user's locale setting.
This commit is contained in:
@@ -362,7 +362,27 @@
|
||||
"enabled": "Enabled",
|
||||
"installed": "Installed",
|
||||
"docs": "Docs",
|
||||
"requiresEnv": "Requires env"
|
||||
"requiresEnv": "Requires env",
|
||||
"fetch": {
|
||||
"name": "mcp-server-fetch",
|
||||
"description": "Universal HTTP request tool, supports GET/POST and other HTTP methods, suitable for quick API requests and web data scraping"
|
||||
},
|
||||
"time": {
|
||||
"name": "@modelcontextprotocol/server-time",
|
||||
"description": "Time query tool providing current time, timezone conversion, and date calculation features"
|
||||
},
|
||||
"memory": {
|
||||
"name": "@modelcontextprotocol/server-memory",
|
||||
"description": "Knowledge graph memory system supporting entities, relations, and observations to help AI remember important information from conversations"
|
||||
},
|
||||
"sequential-thinking": {
|
||||
"name": "@modelcontextprotocol/server-sequential-thinking",
|
||||
"description": "Sequential thinking tool helping AI break down complex problems into multiple steps for deeper thinking"
|
||||
},
|
||||
"context7": {
|
||||
"name": "@upstash/context7-mcp",
|
||||
"description": "Context7 documentation search tool providing latest library docs and code examples, with higher limits when configured with a key"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -362,7 +362,27 @@
|
||||
"enabled": "已启用",
|
||||
"installed": "已安装",
|
||||
"docs": "文档",
|
||||
"requiresEnv": "需要环境变量"
|
||||
"requiresEnv": "需要环境变量",
|
||||
"fetch": {
|
||||
"name": "mcp-server-fetch",
|
||||
"description": "通用 HTTP 请求工具,支持 GET/POST 等 HTTP 方法,适合快速请求接口/抓取网页数据"
|
||||
},
|
||||
"time": {
|
||||
"name": "@modelcontextprotocol/server-time",
|
||||
"description": "时间查询工具,提供当前时间、时区转换、日期计算等功能"
|
||||
},
|
||||
"memory": {
|
||||
"name": "@modelcontextprotocol/server-memory",
|
||||
"description": "知识图谱记忆系统,支持存储实体、关系和观察,让 AI 记住对话中的重要信息"
|
||||
},
|
||||
"sequentialThinking": {
|
||||
"name": "@modelcontextprotocol/server-sequential-thinking",
|
||||
"description": "顺序思考工具,帮助 AI 将复杂问题分解为多个步骤,逐步深入思考"
|
||||
},
|
||||
"context7": {
|
||||
"name": "@upstash/context7-mcp",
|
||||
"description": "Context7 文档搜索工具,提供最新的库文档和代码示例,配置 key 会有更高限额"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user