S

SimpleLocalize 译管

@GalvinGao/mcp-simplelocalize
0 Stars 9 次浏览 GalvinGao 更新于 2026-08-23

一种模型上下文协议服务器,允许用户通过 Cursor 中的自然语言提示,使用 SimpleLocalize 的本地化平台为他们的应用程序管理翻译。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

mcp-simplelocalize

一个用于 SimpleLocalize 的 MCP(Model Context Protocol)服务器实现。

使用方法

安装

  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

您可能希望将此配置放在项目根目录下的 .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 许可证。详情请参阅 LICENSE 文件。

贡献

欢迎贡献!随时可以提交问题或拉取请求。