i18n-file-replace-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| I18N_API_KEY | Yes | Platform API key (required, get it from the i18n platform) | |
| I18N_BASE_URL | No | API base URL | https://i18n.codeini.com |
| I18N_ACCOUNT_ID | No | Dev-mode tenant override (sends X-Dev-Account-Id; only honored by a Development server) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| replace_fileA | 调用 i18n 平台(https://i18n.codeini.com)文件替换 API,将普通代码文件转换为支持多语言的代码文件。返回替换后的 content、生成的 generatedKeys 与 keyCount。需配置环境变量 I18N_API_KEY(平台 API Key)。 必须提供 configJson 或 profileName 之一。 提供 translateTo(目标语言数组,如 ["en"])且带 resourceSet 时,替换后会把每个 key 机翻到目标语言并一并写入资源库(返回 translatedCount)。 |
| preview_replaceA | 预览 i18n 文件替换结果,不写入资源库。返回 originalContent、content、generatedKeys 与 keyCount。需配置环境变量 I18N_API_KEY。 必须提供 configJson 或 profileName 之一。 |
| list_profilesA | 列出当前账号在 i18n 平台上保存的替换配置(不含 configJson 内容)。需配置环境变量 I18N_API_KEY。 |
| get_profileA | 按名称获取 i18n 平台上保存的替换配置详情,含 configJson。需配置环境变量 I18N_API_KEY。 |
| save_profileA | 在 i18n 平台上创建或更新一个替换配置(config profile),供 replace_file/preview_replace 通过 profileName 复用。需配置环境变量 I18N_API_KEY。 |
| list_projectsA | 列出当前账号在 i18n 平台上的全部项目(含资源集数量)。需配置环境变量 I18N_API_KEY。 |
| list_resource_setsA | 列出当前账号在 i18n 平台上的全部资源集名称。需配置环境变量 I18N_API_KEY。 |
| list_resource_keysA | 列出指定资源集中的全部资源 key(resourceId)及其是否有值。需配置环境变量 I18N_API_KEY。 |
| download_resourcesA | 从 i18n 平台导出指定资源集的翻译内容。单语言返回单个文件内容;多语言或 .resx 返回 ZIP,会自动解包为 { files: [{name, content}] }。返回内容为文本,写盘由调用方决定。需配置环境变量 I18N_API_KEY。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool targets a distinct resource/action: replace vs preview, profile management (list/get/save), and resource queries (projects/sets/keys/download). Descriptions clearly distinguish overlapping operations like replace_file and preview_replace.
All tool names follow the same lower_snake_case convention with an action-first pattern (replace_, preview_, list_, get_, save_, download_). The naming is uniform and predictable across the entire set.
9 tools are well-scoped for the purpose of i18n file replacement and associated profile/resource management. The count is comfortably within the ideal 3-15 range, and each tool earns its place.
Core workflows (preview, replace, profile create/update, and resource browsing/export) are fully covered. A minor gap is the absence of a profile deletion tool, leaving the profile lifecycle slightly incomplete, but agents can still work around this easily.