MCP Tools

list_namespaces

List the translation key tree grouped by namespace prefix. Returns a hierarchical view of all keys with counts per namespace node. Use this to explore available keys without guessing path prefixes.

Parameters

ParameterTypeRequiredDescription
layerstringnoLayer name to filter by (e.g., "root", "app-admin"). If omitted or "*", scans all layers. Call discover to discover available layers.
localestringnoLocale to read keys from (e.g., "en"). Defaults to the project default locale. Keys are the same across locales — only one is needed.
projectDirstringnoAbsolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app".

Every tool is advertised by the-i18n-mcp and listed on the MCP tools overview.

Copyright © 2026