Analyze i18n MCP Server
An MCP server that analyzes files to detect hardcoded text and suggests i18n transformations with diff output for review.
It also collates new and missing i18n key value pairs into a json file in /Users/user/Library/Caches/cursor/analyze-i18n/files which can be used for BTS upload.
Usage guide
- On cursor, enter
cmd + L to bring up the chat window
- Click
@ and select the project folder to add the project to context
- Enter
Use tool: anaylze_i18n
- After it runs, review the changes made by AI
- If there are any new i18n key value pairs that are generated, a .json file will be produced
MCP Integration
- Open
Cursor Settings > MCP & Integrations > MCP Tools
- Click
New MCP Server
- Add the following configuration:
{
"mcpServers": {
...,
"analyze-i18n": {
"command": "npx",
"args": ["@binance/analyze-i18n"]
}
}
}
Development
npm run dev - Start with hot reload
npm run build - Build for production
npm start - Alias for dev command
npm run debug - Debug with inspector
MCP configurations on local
See the Quickstart tutorial for more information.
{
"analyze-i18n": {
"command": "node",
"args": ["<path-to>/analyze-i18n/build/src/index.js"]
}
}
{
"analyze-i18n": {
"command": "npx",
"args": ["tsx", "<path-to>/analyze-i18n/src/index.ts"]
}
}
Deployment
Documentation