Back to Home
BjoernRave icon

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

Run Command
node ./node_modules/@scoutello/i18n-magic/dist/mcp-server.js

Environment 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

Stats

Interest Score34
Security Score4
Cost ClassMedium
Avg Tokens1200
Stars5
Forks0
Last Update2025-11-23

Tags

i18nAITranslationCLIMCP