本地化协议服务器

一个为SimpleLocalize实现的MCP服务器,用于管理和自动化项目本地化流程。

  • by GalvinGao
  • Python
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 galvingao/mcp-simplelocalize

使用说明

mcp-simplelocalize

MCP(模型上下文协议)服务器实现 简单本地化.

用法

安装

  1. 安装uv
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. 克隆存储库
git clone https://github.com/GalvinGao/mcp-simplelocalize.git
  1. 安装依赖项
uv sync
  1. 配置光标

您可能希望将此放在 .cursor/mcp.json 在您的项目根目录下,因为SimpleLocalize API密钥特定于单个项目。

别忘了把它添加到你的 .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"
   }
  }
 }
}
  1. 描述您的项目本地化要求 .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)
  1. 完成!喜欢提示“本地化此组件并将其更新为SimpleLocalize”之类的内容。

许可证

该项目根据MIT许可证获得许可。请参阅 许可证 文件以获取详细信息。

贡献

请停止在此README上创建自动PR来推广您的服务。您将被阻止,您的PR将不会被合并。 我刚刚意识到自动化脚本无论如何都不会看到这一点。.. 仍然感谢与实际代码相关的PR!

欢迎投稿!请随时打开问题或提交拉取请求。