@teleprompter/xcstrings-mcp-server
v0.1.2
Published
MCP server for manipulating Xcode string catalogs via xcstrings-cli
Downloads
307
Maintainers
Readme
xcstrings-mcp-server
MCP stdio server for manipulating Xcode string catalogs through xcstrings-cli.
Features
xcstrings_initxcstrings_addxcstrings_removexcstrings_languagesxcstrings_strings
Requirements
- Node.js 20+
Install
npm install @teleprompter/xcstrings-mcp-serverDefault catalog resolution
catalogPath resolution order:
- Tool input
catalogPath XCSTRINGS_DEFAULT_PATHenv varTeleprompter/Resources/teleprompter-ios-localization/Localizable.xcstrings
MCP client config (example)
{
"mcpServers": {
"xcstrings": {
"command": "npx",
"args": ["-y", "@teleprompter/xcstrings-mcp-server"],
"env": {
"XCSTRINGS_DEFAULT_PATH": "/absolute/path/to/Localizable.xcstrings"
}
}
}
}Tool reference
xcstrings_init
Input:
{
"catalogPath": "optional/path/to/Localizable.xcstrings"
}Output:
{
"catalogPath": "/abs/path/Localizable.xcstrings",
"created": true
}xcstrings_add
Input:
{
"key": "home.title",
"lang": "en",
"value": "Home",
"catalogPath": "optional/path/to/Localizable.xcstrings"
}Output:
{
"catalogPath": "/abs/path/Localizable.xcstrings",
"key": "home.title",
"lang": "en",
"value": "Home",
"updated": true
}xcstrings_remove
Input:
{
"key": "home.title",
"lang": "en",
"catalogPath": "optional/path/to/Localizable.xcstrings"
}Output:
{
"catalogPath": "/abs/path/Localizable.xcstrings",
"key": "home.title",
"lang": "en",
"updated": true
}xcstrings_languages
Input:
{}Output:
{
"languages": ["en", "ja", "fr"]
}xcstrings_strings
Input:
{
"catalogPath": "optional/path/to/Localizable.xcstrings",
"lang": "optional language code",
"missingLanguages": false
}Output:
{
"strings": [
{
"key": "home.title",
"localizations": {}
}
]
}Development
npm install
npm run test
npm run buildPublishing
- Package is published from Git tags matching
v*via GitHub Actions. - Workflow uses
NODE_AUTH_TOKENand supports npm provenance.
