kilo-dev-mcp-server
An MCP server for internationalization (i18n) tasks, providing tools to translate, move, list, and remove translation keys in JSON files for the Kilo Code extension.
README
Internationalization (i18n) MCP Server
A Model Context Protocol (MCP) server providing tools for internationalization (i18n) translation tasks.
Overview
This server provides tools for managing translations in JSON translation files used by the Kilo Code extension. It follows the MCP protocol to interact with the extension via stdio (standard input/output).
The server is designed to be modular, allowing you to run just the i18n tools independently from other experimental tools.
i18n Tools
This server provides the following internationalization MCP tools:
translate_i18n_key- Translate a specific key or keys from English to other languagesmove_i18n_key- Move a key from one JSON file to another across all localeslist_locales- List all available localesremove_i18n_keys- Remove specified keys from all locale files across all languages
Setup
To use the i18n MCP server with your AI assistant, you need to configure it in your global MCP configuration. Add the following to your configuration:
{
"mcpServers": {
"kilo-dev-mcp-server": {
"type": "stdio",
"command": "/bin/bash",
"args": [
"-c",
"cd /path/to/kilo-dev-mcp-server && npm run mcp:i18n"
],
"env": {
"OPENROUTER_API_KEY": "${env:OPENROUTER_API_KEY}"
},
"timeout": 3600,
"alwaysAllow": [
"translate_i18n_key",
"list_locales",
"remove_i18n_keys",
"move_i18n_key"
],
"disabled": false
}
}
}
Make sure to replace /path/to/kilo-dev-mcp-server with the actual path to your kilo-dev-mcp-server directory.
Configuration
The server requires an OpenRouter API key for translation functionality:
OPENROUTER_API_KEY- API key for OpenRouter service (required for translation)DEFAULT_MODEL- Default model to use for translation (defaults to "anthropic/claude-3.7-sonnet")
You can set these in your environment or in an .env.local file.
How to Use
Once you've set up the MCP server configuration, you can use the i18n tools by simply prompting your AI assistant. The AI will automatically use the appropriate tool based on your request.
Example Prompts
Here are some examples of how to prompt the AI to use the i18n tools:
Translating Keys
Please translate the "welcome.message" key in the common.json to all other supported languages.
The AI will automatically:
- Determine that this is a translation request
- Identify that it's for the "core" target
- Use the translate_i18n_key tool to perform the translation
Listing Available Locales
What locales are currently supported in our project's webview UI?
The AI will use the list_locales tool to show all available locales for the webview UI.
Moving Keys Between Files
Please move the "errorMessages.notFound" key from errors.json to common.json in the package locales.
The AI will use the move_i18n_key tool to move the key across all locale files.
Removing Obsolete Keys
Please remove the obsolete keys "oldFeature.title" and "oldFeature.description" from the features.json file in the core locales.
The AI will use the remove_i18n_keys tool to remove these keys from all locale files.
Developer Documentation
For developers who need to set up, modify, or contribute to this project, please see the Developer Guide.
License
This project is licensed under the MIT License - see the LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。