mcp-simplelocalize
SimpleLocalize的 MCP(模型上下文协议)服务器实现。
用法
安装
- 安装 uv
curl -LsSf https://astral.sh/uv/install.sh | sh
- 克隆存储库
git clone https://github.com/GalvinGao/mcp-simplelocalize.git
- 安装依赖项
- 配置光标
您可能希望将其放在项目根目录下的.cursor/mcp.json
中,因为 SimpleLocalize API Key 特定于单个项目。
不要忘记将其添加到您的.gitignore
文件中以避免暴露您的 API 密钥。
{
"mcpServers": {
"simplelocalize": {
"command": "uv",
"args": [
"run",
"--project",
"/path/to/mcp-simplelocalize/",
"/path/to/mcp-simplelocalize/main.py"
],
"env": {
"SIMPLELOCALIZE_API_KEY": "your-api-key-here"
}
}
}
}
- 在
.cursorrules
下描述你的项目本地化要求。例如:
## Translations
- Put all translations under the `default` namespace
- Language codes supported by this project: `en-US`, `ja-JP`, `ko-KR`, and `zh-Hant`.
- (any other conventions you want the LLM to follow, e.g. key naming style, etc. or just give it some examples would work well)
- 完成!享受类似“本地化此组件并将其更新为 SimpleLocalize”的提示吧。
执照
本项目遵循 MIT 许可证。详情请参阅LICENSE文件。
贡献
欢迎贡献代码!欢迎随时创建 issue 或提交 pull request。