mcp
v0.9.2Model Context Protocol (MCP) server for Dialex internationalization
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dialex_config
Read static Dialex configuration (locales, defaultLocale, include pattern) from dialex.config.ts or i18n.config.ts without executing project code.
| Parameter | Type | Description |
|---|---|---|
config | string | Optional custom path to config file relative to project root. |
dialex_list_dictionaries
List all discovered content dictionaries, their files, and supported locales.
| Parameter | Type | Description |
|---|---|---|
config | string | Optional custom path to config file relative to project root. |
dialex_get_dictionary
Get leaf keys and values for a specific dictionary or all dictionaries, optionally filtered by locale.
| Parameter | Type | Description |
|---|---|---|
config | string | Optional custom path to config file. |
locale | string | Locale to retrieve (e.g. 'en' or 'tr'). If omitted, returns all locales. |
name | string | Dictionary name (e.g. 'home' or 'auth'). If omitted, returns all dictionaries. |
dialex_check
Analyze project statically to verify dictionary key parity, ICU arguments, and source code references without executing project code.
| Parameter | Type | Description |
|---|---|---|
config | string | Optional custom path to config file. |
src | array | Optional source file globs to scan for dictionary references. |
dialex_find_usages
Scan source files for dictionary usages (e.g. getDictionary('home') or t('home.title')).
| Parameter | Type | Description |
|---|---|---|
file * | string | Relative or absolute file path to scan for references. |
dialex_missing
List missing keys, keys marked with [TODO] placeholders, and stale translations (the source text changed after they were translated, per dialex.lock.json) across locales.
| Parameter | Type | Description |
|---|---|---|
config | string | Optional custom path to config file. |
locale | string | Filter missing keys to a specific target locale. |
dialex_set_key
Safely set or update a translation string in a dictionary file using AST manipulation without executing project code or destroying comments/formatting. Refuses to overwrite non-[TODO] values unless overwrite is explicitly true.
| Parameter | Type | Description |
|---|---|---|
file * | string | Dictionary file path (e.g. 'src/home.content.ts' or absolute path). |
locale * | string | Locale to update (e.g. 'tr'). |
path * | array | Key path segments (e.g. ['nav', 'about'] or ['title']). |
value * | string | The translated string value to set. |
overwrite | boolean | Must be set to true to overwrite an existing translated value that is not marked [TODO]. Defaults to false. |
dialex_add_missing
Automatically insert missing keys across all locales as [TODO] placeholders copied from default locale values (AST safe edits).
| Parameter | Type | Description |
|---|---|---|
config | string | Optional custom path to config file. |
dialex_generate
Run code generation to build standalone dictionary registry and TypeScript declarations.
| Parameter | Type | Description |
|---|---|---|
config | string | Optional custom path to config file. |
output | string | Optional custom output path for dialex.generated.ts. |