i18n-codelens-mcp
Provides tools for inspecting, auditing, and safely editing i18next-style locale JSON files, including namespace files where keys are referenced as 'common:nav.home'.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@i18n-codelens-mcpaudit missing translations in locales/de.json against en.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
i18n-codelens-mcp
Model Context Protocol (MCP) server for i18n translation files. It lets AI agents (Claude Code, Cursor, Antigravity, GitHub Copilot, Codex, Gemini CLI and any other MCP client) inspect, audit and safely edit locale JSON files without ever loading a whole locale file into the model context.
Compact by design. Ten tools, single-line JSON results, no echoed input,
limit/includeValueseverywhere. A typical read costs 50-200 tokens.Safe by construction. No write path can reduce a locale file's key set; mixed flat/nested files are edited in place, never converted; upserts report conflicts instead of overwriting.
Current MCP. Built on the TypeScript SDK v2: protocol revision 2026-07-28 and the 2025 revisions, server instructions, prompts (slash commands), cache hints and elicitation-based confirmation for destructive tools.
Any layout.
locales/en.json,locales/en-US.json,messages.en.jsonand i18next-stylelocales/en/common.json(namespace files, keys ascommon:nav.home).
This package is also the MCP backend of the i18n CodeLens VS Code extension.
Requirements
Node.js 20 or newer
Locale resources as JSON files
An MCP client that supports stdio servers
Related MCP server: i18n Agent
Install
npx -y i18n-codelens-mcp
# or
npm install -g i18n-codelens-mcpClient setup
Every command below registers the same thing: a stdio server named i18n-codelens running npx -y i18n-codelens-mcp. Pick your client, run one line, done.
The server needs to know which project to work on. Most clients start it in the project directory, and Claude Code passes the project root explicitly, so nothing else is needed. When your client starts the server from somewhere else, add the project path with the client's env flag, for example -e WORKSPACE_ROOT=/absolute/path/to/project.
Windows PowerShell: PowerShell can swallow a bare
--before it reaches the CLI, which then reportsunknown option '-y'. If that happens, quote the separator as'--', or run the command fromcmd, Git Bash or WSL.
Claude Code
# for the whole team: writes .mcp.json in the repo
claude mcp add --scope project i18n-codelens -- npx -y i18n-codelens-mcp
# just for you, in every project
claude mcp add --scope user i18n-codelens -- npx -y i18n-codelens-mcpClaude Code sets CLAUDE_PROJECT_DIR for stdio servers, so the server always finds the right project. Its tool-search feature defers MCP tools; i18n_upsert_translations and i18n_get_translations are marked anthropic/alwaysLoad so the two everyday tools need no lookup. The prompts show up as /i18n-codelens:audit, /i18n-codelens:add-key and /i18n-codelens:translate-missing.
Project scope is .mcp.json in the repository root:
{
"mcpServers": {
"i18n-codelens": {
"type": "stdio",
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"]
}
}
}Google Antigravity
agy mcp add i18n-codelens -- npx -y i18n-codelens-mcpagy mcp list, agy mcp disable i18n-codelens and agy mcp remove i18n-codelens manage it afterwards. Inside the IDE, /mcp opens the MCP manager.
Global is ~/.gemini/config/mcp_config.json (Windows: %USERPROFILE%\.gemini\config\mcp_config.json), per project .agents/mcp_config.json. In the IDE: … → MCP Servers → Manage MCP Servers → View raw config.
{
"mcpServers": {
"i18n-codelens": {
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"cwd": "/absolute/path/to/project",
"env": { "WORKSPACE_ROOT": "/absolute/path/to/project" }
}
}
}Antigravity also accepts disabled: true and disabledTools: ["i18n_format_resources"] per server.
Gemini CLI
gemini mcp add -s user i18n-codelens npx -y i18n-codelens-mcpUse -s project to write the project's settings instead. Gemini takes the command and its arguments positionally, so no -- is needed.
OpenAI Codex CLI
codex mcp add i18n-codelens -- npx -y i18n-codelens-mcp~/.codex/config.toml:
[mcp_servers.i18n-codelens]
command = "npx"
args = ["-y", "i18n-codelens-mcp"]VS Code and Copilot Chat
code --add-mcp "{\"name\":\"i18n-codelens\",\"command\":\"npx\",\"args\":[\"-y\",\"i18n-codelens-mcp\"]}"That writes the user profile. MCP: Add Server in the Command Palette does the same through a guided flow and can target the workspace.
.vscode/mcp.json in the repository, which you can commit:
{
"servers": {
"i18n-codelens": {
"type": "stdio",
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"env": { "WORKSPACE_ROOT": "${workspaceFolder}" }
}
}
}OpenCode
opencode mcp add i18n-codelens -- npx -y i18n-codelens-mcpopencode.json in the project root, or ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"i18n-codelens": {
"type": "local",
"command": ["npx", "-y", "i18n-codelens-mcp"],
"enabled": true
}
}
}GitHub Copilot CLI
Copilot CLI adds servers from inside a session rather than from the shell. Start copilot, then:
/mcp addFill in the form: Server Name i18n-codelens, Server Type STDIO, Command npx -y i18n-codelens-mcp. /mcp, /mcp show i18n-codelens and /mcp delete i18n-codelens manage it afterwards.
User level is ~/.copilot/mcp-config.json; for a repository commit .github/mcp.json, or drop an uncommitted .mcp.json at the project root.
{
"mcpServers": {
"i18n-codelens": {
"type": "local",
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"env": {},
"tools": ["*"]
}
}
}Cursor, Windsurf, Claude Desktop, Kiro, Cline and Roo Code
These clients have no command to add a server, so the configuration file is the way in. The shape is the same everywhere; only the path differs.
.cursor/mcp.json in the project or ~/.cursor/mcp.json; Windsurf uses ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"i18n-codelens": {
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"env": { "WORKSPACE_ROOT": "/absolute/path/to/project" }
}
}
}cursor-agent mcp list and cursor-agent mcp enable i18n-codelens manage it from the terminal once it is configured.
Open Settings → Developer → Edit Config.
{
"mcpServers": {
"i18n-codelens": {
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"env": { "WORKSPACE_ROOT": "/absolute/path/to/project" }
}
}
}Command palette: Kiro: Open workspace MCP config (JSON) for .kiro/settings/mcp.json, or the user config at ~/.kiro/settings/mcp.json.
{
"mcpServers": {
"i18n-codelens": {
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"env": { "WORKSPACE_ROOT": "/absolute/path/to/project" },
"disabled": false,
"autoApprove": ["i18n_project_info", "i18n_get_translations", "i18n_search_keys", "i18n_file_keys", "i18n_key_references", "i18n_audit"]
}
}
}~/.config/zed/settings.json, or .zed/settings.json for the team. Zed calls MCP servers context_servers.
{
"context_servers": {
"i18n-codelens": {
"source": "custom",
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"env": { "WORKSPACE_ROOT": "/absolute/path/to/project" }
}
}
}Open the extension panel → MCP Servers → Configure MCP Servers. Cline writes cline_mcp_settings.json, Roo Code mcp_settings.json or .roo/mcp.json per project.
{
"mcpServers": {
"i18n-codelens": {
"command": "npx",
"args": ["-y", "i18n-codelens-mcp"],
"env": { "WORKSPACE_ROOT": "/absolute/path/to/project" },
"disabled": false,
"autoApprove": []
}
}
}Sharing with a team
Commit a project-level configuration so every teammate and every agent picks up the same server without touching global settings.
Client | Project-level file | One-liner |
Claude Code |
|
|
Antigravity |
| |
GitHub Copilot CLI |
| |
VS Code / Copilot Chat |
| |
Gemini CLI | project settings |
|
OpenCode |
|
|
Cursor |
| |
Kiro |
| |
Zed |
| |
Roo Code |
|
Workspace root
Resolution order:
Per-tool
workspaceDirargument (must be inside the configured root, see below)CLI
--workspaceRoot <path>/--workspace-root <path>WORKSPACE_ROOTCLAUDE_PROJECT_DIR(set by Claude Code)Current working directory
Server package directory
The workspaceDir tool argument can only select a sub-directory of the configured root. A model cannot point the server at another directory on disk unless the server is started with I18N_ALLOW_ANY_WORKSPACE=1.
Configuration
Variable | Default | Description |
| cwd | Project root to scan and edit |
|
| Locale JSON glob |
|
| Source glob for key scans |
| built-in | Regex with a named group |
|
| JSON array or comma/semicolon list of globs; |
|
| Write shape: |
|
| Where new keys go: |
|
| Separator between namespace and key for |
| unset | Namespace used for keys written without one in a namespaced project |
| unset | Let |
| unset | Log relay used by the VS Code extension |
Tools
Tool | Writes | Purpose |
| No | Locales, key format, counts, config, warnings. Call once per session. |
| No | Values of keys per locale; |
| No | Substring search in keys or values, optional |
| No | Keys one source file uses and the locales lacking each |
| No | Where keys are used in code ( |
| No |
|
| Yes | Create/update keys with a value per locale; writes immediately, never deletes, conflicts unless |
| Yes | Remove keys; previews unless |
| Yes | Rename a key, or move a namespace when |
| Yes | Sort keys and normalize formatting; previews unless |
All results are compact single-line JSON. Empty sections are omitted, paths are workspace-relative with forward slashes, and every list honours limit (default 50). Errors come back as isError text with the fix in the message (for example the list of available locales).
Confirmation for destructive tools
i18n_delete_keys, i18n_rename_key and i18n_format_resources preview by default. When the model omits dryRun and the client supports MCP elicitation (Claude Code does), the server shows the user a one-question dialog describing the change and applies it on accept. Pass dryRun:false to apply without a dialog, dryRun:true to only preview. i18n_upsert_translations needs no confirmation: it cannot remove keys and refuses to overwrite a differing value unless overwrite:true.
Prompts
The server publishes three prompts that clients expose as commands: audit (full audit and fix proposals), add-key <key> [text] (add one key with copy for every locale) and translate-missing [locale] (fill missing translations in batches).
Instructions
On connect the server sends usage instructions (under 2 KB) that clients such as Claude Code add to the system prompt: never edit locale files directly, call i18n_project_info once, upsert with every locale in one call, and so on. Project-specific rules (key naming, tone, placeholder style) still belong in your own CLAUDE.md / AGENTS.md.
Namespaced layouts
If locale files live in per-locale directories (locales/en/common.json, locales/tr/auth.json), the directory is the locale and the file is the namespace. Keys are addressed as namespace:key (common:nav.home); i18n_project_info reports keyFormat: "namespace:key" and the namespaces. Set I18N_NS_SEPARATOR if your i18n library uses another separator and I18N_DEFAULT_NS for keys written without one.
Files whose name is not a locale tag (config.json) are skipped with a warning, and when a glob matches the same locale twice (src/locales/en.json and public/locales/en.json) the first is used and i18n_project_info warns you to narrow I18N_GLOB.
Structure and key safety
A locale file is classified by how its leaves are stored: flat ("nav.home": "Home"), nested (objects) or mixed. Under I18N_STRUCTURE=auto a flat file is written flat, a nested file nested, and a mixed file is never converted: every key stays where it is and a new key is written in the file's dominant style. Writes preserve the file's indentation, line endings and trailing newline, so a single-key change is a single-line diff.
Two guards make key loss structurally impossible:
unflattenObjectthrows on a value/namespace collision (dashboard.announcementboth a string and a parent) instead of overwriting one side.Every write compares the new document against the file on disk and refuses when a key would disappear. Deletes and renames declare their removals; anything else that goes missing aborts the write and names the keys.
The regression suite in src/__tests__/tools-write.test.ts and resource-manager.test.ts reproduces the incident that motivated this (a 3,000-key mixed file, a leaf that is also a namespace) and asserts zero loss and one-line diffs on every write path.
Migrating from 1.x
2.0 consolidates 18 tools into 10 and changes two defaults.
1.x | 2.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
upsert | default false; existing values are protected by |
pretty-printed JSON + | compact single-line JSON text only |
Other changes: Node 20+; @modelcontextprotocol/sdk replaced by @modelcontextprotocol/server 2.0 (protocol 2026-07-28 and 2025 revisions, both served); default ignore globs now skip common build output; workspaceDir is confined to the configured root; paths are posix; the code regex accepts ns:key and matches a call at the start of a file.
Suggested agent instruction block for projects that used the 1.x names:
i18n: never edit src/locales/*.json by hand. Call i18n_project_info once, then
i18n_upsert_translations with values for every locale (en and tr) in one call; it
reports conflicts and placeholder mismatches. Use i18n_get_translations to read,
i18n_audit for QA, i18n_rename_key / i18n_delete_keys with dryRun:false to apply.MCP Registry
package.json carries mcpName: io.github.hepter/i18n-codelens-mcp and server.json describes the package. Publish with:
npm publish --access public
mcp-publisher login github
mcp-publisher publishProgrammatic API
import { createI18nMcpServer, loadProject, createResourceManager, toolUpsertTranslations, createToolContext } from 'i18n-codelens-mcp';
const ctx = createToolContext({ workspaceRoot: '/path/to/project' });
const result = await toolUpsertTranslations({ entries: [{ key: 'nav.home', values: { en: 'Home', tr: 'Ana Sayfa' } }] }, ctx);Every tool is exported as a plain async function taking (args, ctx), alongside the building blocks: loadProject (cached, namespace-aware), getCodeIndex (cached code scan), createResourceManager (write states with the key-loss guard), writeFilePretty, flattenObject, unflattenObject, classifyResourceStructure.
Changelog
2.0.0
SDK v2 / protocol 2026-07-28.
@modelcontextprotocol/serverwithserveStdio, zod 4, Node 20+. Both the 2026-07-28 and 2025 revisions are served on stdio.tools/listandprompts/listcarry cache hints.Ten tools instead of eighteen, compact single-line results, no
structuredContent, no echoed arguments. Tool definitions shrank from 13.5 K to 9.5 K characters. Measured against 1.x on the same project, a two-locale code base of about 7,600 keys, a 50-hit key search dropped from 12.5 K to 2.3 K characters and a full audit from 6.7 K characters and 1.0 s to 2.0 K characters and 0.4 s.Upsert semantics. Writes immediately, validates the whole batch before touching a file (an unknown locale rejects everything), reports conflicts instead of overwriting unless
overwrite:true, warns about locales without a value and about placeholder mismatches against the values other locales hold.Confirmation dialogs. Delete, rename and format use MCP elicitation when the client supports it and fall back to a preview with a hint otherwise.
Server instructions and prompts (
audit,add-key,translate-missing), server metadata (websiteUrl,description), version read frompackage.json.Namespaced layouts (
{locale}/{namespace}.json, keys asns:key), locale detection from file or directory names, duplicate and non-locale file warnings.Caches. Parsed locale files and code scans are reused while mtime/size are unchanged; the audit scans code once.
.gitignoreand common build directories are excluded before files are read.Fixes. Code regex character range (
.-_accidentally spanned:…^) and start-of-file matches; posix paths on Windows;CLAUDE_PROJECT_DIRrespected;workspaceDirconfined to the root; writes preserve indentation and CRLF;getWorkspaceRootno longer logs on every call.
1.1.0
Fixed a data-loss defect: a single upsert could convert a mixed file and drop keys whose name was both a value and a namespace. Mixed files are no longer converted, unflattenObject/setNestedValue throw on collisions, and every write is guarded against key loss.
License
MIT © Mustafa Kuru
Available Tools
10 toolsi18n_auditAudit translationsARead-onlyIdempotent
Project-wide health check: keys missing in some locale (vs the base locale), placeholder mismatches, keys used in code but untranslated, and keys never referenced in code. Choose checks to keep the response small.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items to return (default 50). | |
| checks | No | Subset of missing, placeholders, code, unused. Default all. | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| baseLocale | No | Reference locale (default: first locale). | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. | |
| includeReferences | No | Attach code locations to untranslated keys. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds that output volume can be controlled via checks, but says nothing about result grouping, performance on large projects, or how the four finding types are structured in the response.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with zero filler: the scope ('Project-wide health check') is front-loaded, the four findings follow, and the closing scoping tip ends the description. Every clause carries information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only audit with no output schema, the description adequately conveys what kinds of findings are returned and how to limit them via `checks` and `limit`. It stops short of describing the shape or grouping of the returned findings, which an agent may still need to plan around, but nothing critical for invoking it correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3, but the description genuinely expands semantics beyond the schema: it explains what 'missing' means (keys absent in some locale relative to the base locale), what 'code' means (used in code but untranslated), and what 'unused' means (never referenced in code) — none of which the bare enum list conveys. The baseLocale relationship is also clarified.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb+resource ('Project-wide health check') and enumerates the exact four findings it produces: missing keys vs base locale, placeholder mismatches, code-used-but-untranslated keys, and unused keys. This enumeration maps directly onto the `checks` enum values and clearly separates the tool from read-oriented siblings like i18n_search_keys or i18n_get_translations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The closing sentence 'Choose checks to keep the response small' is a usage hint for scoping the response, and the 'vs the base locale' phrasing implies the comparison context. However, it never says when to reach for this tool versus siblings (e.g. i18n_search_keys or i18n_key_references) or when not to run it, leaving the choice largely to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_delete_keysDelete keysADestructiveIdempotent
Remove keys from all or selected locales. Previews by default; pass dryRun:false to delete (or confirm the dialog).
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| dryRun | No | Default true (preview). false deletes. | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, but they do not convey the crucial default-preview behavior. The description supplies exactly that (preview unless dryRun:false or dialog confirmation), which is real value beyond structured fields. It omits recovery/undo and non-existent-key behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with the destructive-action caveat front-loaded immediately after the purpose. Every clause earns its place and nothing is padded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a destructive, four-parameter tool with no output schema, the description covers the safety mechanism an agent most needs to avoid accidental data loss. Missing only edge-case behavior (missing keys, reversibility), which is minor given the annotation set.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 75% and the schema already documents dryRun ('Default true (preview). false deletes.') and locales, so the description's 'dryRun:false' and 'all or selected locales' largely restate structured fields rather than adding syntax or format detail. No meaning is added for keys or workspaceDir.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (remove) plus resource (keys) and scope (all or selected locales), which cleanly distinguishes it from siblings like i18n_rename_key and i18n_upsert_translations. It stops short of explicitly naming an alternative to route against, so not a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives clear operational guidance: the call previews by default, and deletion requires dryRun:false or confirming the dialog. It does not, however, say when to prefer this over rename_key or upsert_translations, leaving sibling routing unaddressed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_file_keysKeys used by a fileARead-onlyIdempotent
Translation keys referenced in one source file and the locales that lack each of them. Run after editing a component to verify its copy is complete.
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Workspace-relative or absolute path of a source file. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. | |
| includeComplete | No | Default false: only count fully translated keys. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description usefully sketches the result shape (keys plus locales missing each), which substitutes for the absent output schema, but says nothing about performance on large workspaces or handling of files with no keys.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with zero filler; the result semantics come first and the workflow trigger follows. Nothing repeats the title or the schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only query tool with fully documented parameters, the description covers what the tool returns and when to run it, which is enough for correct invocation. The missing piece is disambiguation from i18n_key_references and the other i18n inspection siblings.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all three parameters (filePath, workspaceDir, includeComplete) are already documented in the schema. The description adds no parameter-level detail beyond that, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource: translation keys referenced in one source file, plus which locales lack them. The scope (one file) is clear, but it does not distinguish itself from the similarly named sibling i18n_key_references, which an agent could easily confuse with this tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
"Run after editing a component to verify its copy is complete" gives a concrete trigger condition. However, it names no alternatives (e.g. i18n_key_references, i18n_audit, i18n_search_keys) or when-not-to-use conditions, so routing among siblings still requires inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_format_resourcesFormat locale filesAIdempotent
Normalize JSON formatting and sort keys (top level only for mixed files). Previews by default; pass dryRun:false to rewrite.
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Default true (preview). false rewrites. | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| sortKeys | No | Default true. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds valuable behavior beyond that: preview-by-default semantics and the scope nuance that mixed files only get top-level key sorting. It stops short of describing what the preview output looks like, but that is a minor gap given the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tightly packed sentences with no filler; the operation comes first and the safe-by-default behavior is stated immediately after. Every clause carries information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 4-parameter, zero-required mutation tool with no output schema, the description covers the essential decision points (default preview, explicit opt-in to write, key sorting scope). It leaves unstated whether files must exist and what the preview reports, but nothing critical to correct invocation is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3; the dryRun explanation largely restates the schema description. The description nonetheless adds a semantic the schema lacks: sorting is limited to top level for mixed files, which clarifies the sortKeys parameter's real scope.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States specific verbs and effect: 'Normalize JSON formatting and sort keys', which clearly identifies a formatting/rewriting tool for locale resources. It does not name or contrast with any sibling tool, but the purpose is unambiguous and distinct from the search/translation siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear guidance on the dryRun default ('Previews by default; pass dryRun:false to rewrite'), which tells the agent how to actually apply changes. However, it offers no when-to-use-vs-alternative guidance and no mention of preconditions or when formatting is appropriate relative to i18n_audit or i18n_upsert_translations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_get_translationsGet translationsARead-onlyIdempotent
Values of specific keys in every (or selected) locale; null marks a missing translation. A key ending with '.' returns the whole namespace. Use includeValues:false for presence only.
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Exact keys, or namespaces ending with '.' (e.g. 'nav.'). | |
| limit | No | Max items to return (default 50). | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. | |
| includeValues | No | Default true. False returns the locales holding each key. | |
| maxValueChars | No | Truncate values (default 160). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral detail beyond that: 'null marks a missing translation' explains the return semantics for absent values, and the trailing-dot namespace rule describes an expansion behavior not evident from the name alone.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three compact clauses with zero filler; the core scope ('values of specific keys in every locale') is front-loaded, followed by the two highest-value edge-case behaviors. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, so the description carries the burden of describing returns, and it does so partially by defining null as a missing translation. It does not clarify the overall response shape (per-key vs per-locale grouping) or how limit/maxValueChars shape the result, leaving a small gap for a six-parameter tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3 and the schema already documents all six parameters. The description still adds meaning beyond the schema by explaining that a '.'-suffixed key returns the whole namespace and that null signals a missing translation, which clarifies the effect of the keys and includeValues parameters at runtime.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource (get values of specific keys across locales) and clarifies scope with '(or selected) locale'. It distinguishes exact-key lookup from the broader sibling tools like i18n_search_keys implicitly, though it never names an alternative explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides one conditional usage hint ('Use includeValues:false for presence only') which implies when the tool is useful for existence checks. However, there is no guidance on when to prefer this over i18n_search_keys or i18n_file_keys, and no exclusions or prerequisites are stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_key_referencesFind key referencesARead-onlyIdempotent
Where keys are used in code, as path:line:column, with exact totals. Useful before renaming or deleting a key.
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| limit | No | Max locations per key (default 25). | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context by stating the return format and that it provides exact totals, though it does not explain truncation behavior from the limit parameter.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the core output shape and followed by the practical usage condition. No filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read-only lookup tool with full annotations and no output schema, the description supplies enough context: what it returns and when to use it. It could be slightly stronger by clarifying the effect of the limit parameter on the reported totals.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 67%, with limit and workspaceDir already described in the schema. The description adds no parameter-level meaning beyond the schema, so it remains at the baseline adequate level.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb-resource relation: it finds where keys are used in code, and it adds the output shape (path:line:column) and exact totals. This clearly distinguishes it from lookup siblings like i18n_search_keys, though it does not explicitly name alternative tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives a clear usage context: 'Useful before renaming or deleting a key.' That tells an agent when the tool is valuable, but it does not name exclusions or alternative sibling tools for related tasks.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_project_infoInspect i18n projectARead-onlyIdempotent
Locales, key format (plain or namespace:key), key counts, resolved config and warnings. Call once per session before other tools.
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already establish read-only, idempotent, closed-world behavior, so the bar is lower. The description adds real workflow context: it must be called once per session before other tools, and it surfaces warnings and resolved config, which are non-obvious behavioral outputs.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short clauses with zero filler, and the highest-value instruction (call once per session before other tools) is placed at the end of a tight sentence pair. Every phrase carries information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description must convey return content, and it does by enumerating locales, key format, counts, config and warnings. It is complete enough to call correctly, though it could say more about how the resolved config/warnings should influence subsequent calls.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the single workspaceDir parameter is documented there as 'usually omitted'. The description adds nothing about the parameter, so the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description enumerates exactly what the tool surfaces — locales, key format, key counts, resolved config, warnings — which makes it distinguishable from the sibling key/translation CRUD tools. It lacks an explicit verb (e.g. 'returns'/'reports'), so it reads as an output list rather than a stated action, keeping it short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The directive 'Call once per session before other tools' gives explicit sequencing guidance that no sibling provides. It stops short of a 5 because it names no alternatives or when-not conditions, though the 'once per session' framing implies the info is cached/global.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_rename_keyRename key or move namespaceADestructive
Rename a key across locales, or move a whole namespace when from ends with '.' (e.g. 'nav.' -> 'menu.'). Refuses when a target exists. Previews by default; pass dryRun:false to apply.
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | Key, or namespace prefix ending with '.'. | |
| dryRun | No | Default true (preview). false applies. | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already flag destructiveHint=true and idempotentHint=false, so safety framing is partly covered. The description adds genuinely new behavioral facts: preview-by-default (a non-obvious dry-run default), the hard refusal when a target key exists, and the namespace-vs-key branching rule. It still omits what happens to keys missing in some locales and any partial-failure behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences, front-loaded with the core operation, then the precondition, then the apply instruction. Every sentence carries distinct information with no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a destructive, multi-locale mutation with no output schema, the description covers the critical unknowns: default preview, refusal semantics, and mode selection. It is nearly complete, though it leaves open whether the operation is atomic across locales and what a preview returns.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 80%, so the baseline is 3, but the description adds real meaning to 'from' (namespace prefix ending in '.') and 'dryRun' (default preview vs. apply) beyond the schema text. 'to' and locale behavior remain slightly underspecified in the description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (rename) and resource (key), and adds a distinct second mode (whole-namespace move) with a concrete trigger ('from' ending in '.'). The example 'nav.' -> 'menu.' makes the operation unambiguous and separable from sibling mutation tools like i18n_upsert_translations or i18n_delete_keys.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explains the two modes and their selecting condition, plus a precondition (refuses when the target exists) and the apply path (dryRun:false). It does not explicitly compare against sibling tools, so it falls short of full when-to-use-vs-alternative guidance, but the operating context is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_search_keysSearch keysARead-onlyIdempotent
Find keys by substring of the key or the translated text, optionally under a key prefix. Keys missing from some locales are marked with "in". Add includeValues to see the text.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items to return (default 50). | |
| query | No | Substring to look for (case-insensitive by default). | |
| locales | No | Locale tags to include, e.g. ['en','tr']. Default: all. | |
| searchIn | No | Default both. | |
| keyPrefix | No | Only keys starting with this prefix, e.g. 'component.chat.'. | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. | |
| caseSensitive | No | ||
| includeValues | No | Default false. | |
| maxValueChars | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context beyond them: incomplete keys are flagged with the 'in' marker, and values are hidden unless includeValues is set. Return-shape specifics like ordering or pagination are still absent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three tight sentences, front-loaded with the core search semantics before the optional refinements. Every sentence carries information; no filler or restated boilerplate.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a nine-parameter, read-only search tool with no output schema, the description covers the search mode, prefix narrowing, the 'in' incompleteness marker, and value inclusion. It is complete enough to call correctly, with only minor gaps around result ordering and default locale behavior that the schema largely covers.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 78%, so the schema already documents most of the nine parameters (limit, query, locales, searchIn, keyPrefix, includeValues). The description reinforces query/keyPrefix/includeValues and the default case-insensitivity but adds little syntax or format detail beyond the schema, making the baseline 3 appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Find keys by substring of the key or the translated text') plus scope ('optionally under a key prefix'). An agent can distinguish it from i18n_file_keys or i18n_get_translations, though no sibling is named explicitly, so it stops short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains how to widen output ('Add includeValues to see the text') but never says when to reach for this tool versus i18n_get_translations, i18n_file_keys, or i18n_key_references. No prerequisites, exclusions, or alternative routing are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
i18n_upsert_translationsAdd or update translationsAIdempotent
Create or update keys in one call, with a value per locale. Writes immediately and never deletes keys. An existing value that differs is reported as a conflict unless overwrite:true. Reports missing locales and placeholder mismatches.
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview only (default false). | |
| entries | Yes | ||
| overwrite | No | Replace values that already differ (default false). | |
| workspaceDir | No | Sub-directory of the workspace root to operate on. Usually omitted. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare write/idempotent/non-destructive, and the description adds genuinely new behavioral context on top: it writes immediately, never deletes keys, treats differing existing values as conflicts unless overwrite:true, and surfaces missing locales and placeholder mismatches. That is exactly the kind of consequence detail an agent needs before mutating translations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Four short sentences, each carrying distinct information (scope, write/delete behavior, conflict rule, validation reporting), with the write-immediately and never-deletes facts front-loaded. No filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description does describe what gets reported back (missing locales, placeholder mismatches), which covers the key return signal. Minor gaps remain around dryRun behavior and the exact shape of the conflict report, but nothing essential for correct invocation is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 75% and the schema already documents dryRun, overwrite, key format and the values map. The description adds meaning beyond the schema's terse overwrite text by explaining that a differing value is a conflict unless overwrite:true, clarifying the practical effect of the flag rather than restating it.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb pair (create/update) and resource (translation keys), plus the per-locale value model, so an agent can tell it apart from i18n_delete_keys and i18n_rename_key by the explicit 'never deletes keys' framing. It stops short of naming a sibling alternative directly, so it is clear but not maximally differentiated.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied rather than stated: create or update keys in one call. The overwrite:true condition is spelled out, which helps routing within the tool, but there is no explicit when-to-use-this-vs-i18n_rename_key or i18n_get_translations guidance and no stated prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
10 tool updates
v2.0.0- First observed
i18n_audit - First observed
i18n_delete_keys - First observed
i18n_file_keys - First observed
i18n_format_resources - First observed
i18n_get_translations - First observed
i18n_key_references - First observed
i18n_project_info - First observed
i18n_rename_key - First observed
i18n_search_keys - First observed
i18n_upsert_translations
TDQS
Scored across 10 tools
Most tools have clearly distinct purposes, but some overlap exists between i18n_get_translations and i18n_search_keys (both retrieve translation values) and between i18n_key_references and i18n_file_keys (both report code references). Descriptions help clarify the intended use, but an agent might still misselect for tasks like finding missing translations.
All names share the i18n_ prefix and snake_case, but the verb/noun structure is mixed: some are noun phrases (i18n_key_references, i18n_project_info, i18n_file_keys, i18n_audit) and others are verb_noun (i18n_get_translations, i18n_search_keys, i18n_upsert_translations). This deviation from a uniform verb_noun pattern makes it only moderately consistent.
With 10 tools, the set is well-scoped for an i18n code lens server. Each tool covers a distinct operation (references, info, get, search, file keys, audit, upsert, delete, rename, format) without obvious redundancy, and the count sits comfortably in the recommended 3–15 range.
The surface covers the core i18n key lifecycle: create/update (upsert), read (get/search), delete, rename, format, audit, and code references. Minor gaps exist, such as no explicit tool to list all keys or manage locales, but these can be worked around with search or project info.
Maintenance
Related MCP Connectors
Localize apps from your AI assistant: translate locale files, set glossaries, connect GitHub repos.
AI localization for agents: translation, TMS sync, translation memories, glossaries, post-editing.
Securely search and manage workspace context files for AI agents and teams.
Git-backed platform for skills, tools, and context for AI agents
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables efficient JSON file editing with targeted read, write, delete, and deep merge operations using dot notation paths, optimized for managing multilingual projects and large configuration files.412 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAI-powered translation management built for AI agents. Automate localization with regional sensitivity and zero TMS overhead. Works with Claude Code, Cursor, VS Code via MCP protocol. Supports JSON, YAML, Markdown, PO and more.19 npmMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets AI agents read and write locale JSON translation files directly from the conversation without loading the whole catalog into context.6 npm1ISC
- AlicenseCqualityDmaintenanceEnables AI assistants to manage i18next translation files, including adding keys, syncing missing translations, and analyzing coverage.1424 npm12MIT