i18n-magic
by BjoernRave
Overview
Automates internationalization (i18n) workflows with AI-powered translations for JavaScript/TypeScript projects, functioning as a Model Context Protocol (MCP) server for LLMs.
Installation
node ./node_modules/@scoutello/i18n-magic/dist/mcp-server.jsEnvironment Variables
- OPENAI_API_KEY
- GEMINI_API_KEY
- I18N_MCP_PROJECT_ROOT
- DEBUG_NAMESPACE_MATCHING
- S3_REGION
- S3_ACCESS_KEY
- S3_SECRET_KEY
Security Notes
The server dynamically imports the 'i18n-magic.js' configuration file. If an attacker can control the server's effective current working directory (cwd) or the '--project-root' argument, they could potentially inject and execute arbitrary code via a malicious config file. Additionally, file I/O operations (loadLocalesFile, writeLocalesFile) construct paths using locale and namespace parameters directly. While these are typically derived from trusted configuration, the lack of explicit path sanitization could lead to path traversal vulnerabilities if malicious input were to bypass validation or if the configuration itself is compromised, allowing arbitrary file reads/writes outside the intended locales directory. The server relies heavily on trusting the content of the 'i18n-magic.js' file.
Similar Servers
cclsp
Integrate LLM-based coding agents with Language Server Protocol (LSP) servers to enable robust code navigation, symbol resolution, and refactoring across various programming languages.
mcp-servers
Provides a production-ready Model Context Protocol (MCP) server for seamless integration with VS Code and other MCP clients to enable AI-driven development features.
doc-bot
An intelligent MCP (Model Context Protocol) server that enhances AI coding assistants by providing smart documentation management and API references for deep project understanding.
mcp-mobile-server
Transforms AI assistants into a mobile development powerhouse, automating workflows and integrating cross-platform tools for Flutter, Android, and iOS development.