Back to MCP directory
publicPublicdnsLocal runtime

SimpleLocalize

一个为SimpleLocalize实现的MCP服务器,用于简化本地化流程并与Cursor编辑器集成。

article

README

🚀 mcp-simplelocalize

这是一个用于 简单本地化 的 MCP (模型上下文协议) 服务器实现,能够助力项目更便捷地完成本地化操作。

🚀 快速开始

步骤概述

此项目的使用主要包含安装依赖、克隆仓库、配置相关文件等一系列步骤,完成后即可享受本地化提示功能。

📦 安装指南

1. 安装 uv

你可以按照 uv 安装指南 进行安装,也可以使用以下命令:

curl -LsSf https://astral.sh/uv/install.sh | sh

2. 克隆仓库

使用以下命令克隆项目仓库:

git clone https://github.com/GalvinGao/mcp-simplelocalize.git

3. 安装依赖项

执行以下命令安装项目所需依赖:

uv sync

4. 配置 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"
            }
        }
    }
}

5. 描述项目本地化需求

.cursorrules 下描述你的项目本地化需求。例如:

## 翻译
- 将所有翻译放在 `default` 命名空间下
- 该项目支持的语言代码:`en-US``ja-JP``ko-KR``zh-Hant`- (任何其他你希望 LLM 遵循的约定,例如键命名样式等,或只需给它一些示例即可)

6. 完成配置

完成上述步骤后,你就可以享受像“将此组件本地化并更新到 SimpleLocalize”这样的提示啦。

📄 许可证

该项目使用 MIT 许可证。有关详细信息,请参阅 LICENSE 文件。

✨ 贡献

欢迎大家为项目贡献力量!你可以随意打开问题或提交拉取请求。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client