Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
OPENAI_MODEL | No | OpenAI model for translations | gpt-4o-mini |
OPENAI_API_KEY | Yes | Your OpenAI API key | |
OPENAI_BASE_URL | No | Custom API base URL | |
TRANSLATION_CHUNK_SIZE | No | Strings per API request | 50 |
TRANSLATION_TEMPERATURE | No | Model creativity (0.0-1.0) | 0.3 |
TRANSLATION_RATE_LIMIT_DELAY | No | Delay between requests (seconds) | 1.0 |
TRANSLATION_MAX_CONCURRENT_CHUNKS | No | Max concurrent requests | 2 |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
get_languages_tool | MCP tool to get supported languages from xcstrings file.
Args:
file_path (str): Path to the .xcstrings file
Returns:
str: JSON string of supported languages or error message |
get_keys_tool | MCP tool to get all localization keys from xcstrings file.
Args:
file_path (str): Path to the .xcstrings file
Returns:
str: List of all keys or error message |
get_base_strings_tool | MCP tool to get base language strings from xcstrings file.
Args:
file_path (str): Path to the .xcstrings file
Returns:
str: Base language strings or error message |
translate_tool | MCP tool to translate strings to target language and return translated keys.
Args:
file_path (str): Path to the .xcstrings file
target_language (str): Target language code
Returns:
str: Translation result with translated keys or error message |
apply_tool | MCP tool to translate and apply translations to xcstrings file.
Args:
file_path (str): Path to the .xcstrings file
target_language (str): Target language code
app_description (str): Optional description of the app for better translation context
Returns:
str: Application result with translated keys or error message |
apply_missing_tool | MCP tool to apply only missing translations for a target language in xcstrings file.
Only translates keys that don't already have translations in the target language.
Args:
file_path (str): Path to the .xcstrings file
target_language (str): Target language code
app_description (str): Optional description of the app for better translation context
Returns:
str: Application result with newly translated keys or error message |
translate_key_tool | MCP tool to translate a specific key to multiple target languages and apply translations.
Args:
file_path (str): Path to the .xcstrings file
key (str): The specific key to translate
target_languages (str): Comma-separated list of target language codes (e.g., "es,fr,de")
app_description (str): Optional description of the app for better translation context
Returns:
str: Translation results or error message |