Connect your AI
Register the easyi18n MCP server in your client with one of the snippets below.
Each one starts the server with npx -y @easyi18n.com/cli@1.3.0 mcp,
which needs Node.js and no Dart SDK. The version is pinned: the snippet keeps
running the CLI that printed it until you print it again after an upgrade.
Each client has two forms. The first sends the login that easyi18n login
stores on the machine, so the server works as you and needs no key: run
easyi18n login once in a terminal and approve the code in your browser. The
second, with --require-agent-key, sends an
agent key from EASYI18N_TOKEN
and refuses to start without one. Use it in CI, or for an agent whose spending
should wait for an approval in the dashboard. Replace eik_YOUR_AGENT_KEY
with the key, or keep the key in your environment where the snippet reads it
from there.
The CLI prints each snippet and where it goes:
easyi18n mcp config --client cursor
easyi18n mcp config --client cursor --agent-key
Clients: claude-code, claude-desktop, cursor, vscode, codex,
gemini, windsurf, zed and generic. --runner dart prints the variant
for dart pub global run. The command never reads your key or your login.
On native Windows, a client that starts servers without a shell cannot find
npx. Claude Code documents wrapping the command as cmd /c npx ... there.
Claude Code
Run it in a terminal in the project. It registers the server in local scope, which stays out of the repository. The Claude Code plugin is the alternative, with skills and a key setting.
claude mcp add --transport stdio easyi18n -- npx -y @easyi18n.com/cli@1.3.0 mcp
With an agent key:
claude mcp add --env EASYI18N_TOKEN=eik_YOUR_AGENT_KEY --transport stdio easyi18n -- npx -y @easyi18n.com/cli@1.3.0 mcp --require-agent-key
Claude Desktop
Merge it into claude_desktop_config.json (Settings, Developer, Edit Config)
and restart Claude. Claude Desktop has no project folder, so the agent names
one with the project_dir argument.
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp"
]
}
}
}
With an agent key:
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp",
"--require-agent-key"
],
"env": {
"EASYI18N_TOKEN": "eik_YOUR_AGENT_KEY"
}
}
}
}
Cursor
Merge it into .cursor/mcp.json in the project.
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp"
],
"env": {
"EASYI18N_PROJECT_DIR": "${workspaceFolder}"
}
}
}
}
With an agent key, Cursor reads EASYI18N_TOKEN from the environment it was
started in, so the file holds no key and can be committed:
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp",
"--require-agent-key"
],
"env": {
"EASYI18N_TOKEN": "${env:EASYI18N_TOKEN}",
"EASYI18N_PROJECT_DIR": "${workspaceFolder}"
}
}
}
}
VS Code
Merge it into .vscode/mcp.json in the project.
{
"servers": {
"easyi18n": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp"
],
"env": {
"EASYI18N_PROJECT_DIR": "${workspaceFolder}"
}
}
}
}
With an agent key, VS Code asks for it once and stores it:
{
"inputs": [
{
"type": "promptString",
"id": "easyi18n-token",
"description": "easyi18n AI agent key (eik_)",
"password": true
}
],
"servers": {
"easyi18n": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp",
"--require-agent-key"
],
"env": {
"EASYI18N_TOKEN": "${input:easyi18n-token}",
"EASYI18N_PROJECT_DIR": "${workspaceFolder}"
}
}
}
}
Codex CLI
Install the plugin to get the setup and translate skills together with
the MCP server. Requires Node.js. These commands apply after the matching
CLI release and agents mirror have been published:
codex plugin marketplace add easyi18n-com/agents
codex plugin add easyi18n@easyi18n-com
Start a new session and invoke $easyi18n:setup or $easyi18n:translate.
Both skills use the same instructions as the server's MCP prompts.
The default server uses the login stored by easyi18n login.
For a local checkout of the agents mirror, replace easyi18n-com/agents
with its absolute directory path in the marketplace command.
Existing configuration and Agent keys
Back up your configuration before migrating. A complete manual
mcp_servers.easyi18n entry overrides the plugin's server; it is not merged
with it. Keep that entry when it contains custom settings, and update its
CLI pin together with the plugin version. If your entry uses another server
name, consolidate it under easyi18n so only one server remains active.
Preserve its env, env_vars, project directory, startup options and credit
ceiling. Do not edit the plugin cache: updates replace it.
For an Agent key, keep --require-agent-key and env_vars = ["EASYI18N_TOKEN"]
in that manual entry. env supplies explicit values; env_vars forwards
named variables from Codex's environment. Installing the plugin alone does
not forward shell variables such as EASYI18N_MCP_MAX_CREDITS or
EASYI18N_BASE_URL; preserve their explicit configuration when used.
Never put a key in chat or a committed file.
Tools-only connection
The snippet below connects the 15 tools, but does not install either skill.
Append it to ~/.codex/config.toml. startup_timeout_sec gives the first
npx download time to finish: Codex waits 10 seconds by default.
[mcp_servers.easyi18n]
command = "npx"
args = ["-y", "@easyi18n.com/cli@1.3.0", "mcp"]
startup_timeout_sec = 60
required = true
omit_tools_from = ["deferred"]
With an agent key, Codex forwards EASYI18N_TOKEN from the shell it runs in:
[mcp_servers.easyi18n]
command = "npx"
args = ["-y", "@easyi18n.com/cli@1.3.0", "mcp", "--require-agent-key"]
env_vars = ["EASYI18N_TOKEN"]
startup_timeout_sec = 60
required = true
omit_tools_from = ["deferred"]
Gemini CLI
Install the easyi18n extension. It registers the server as cli under the
extension easyi18n and uses the login that easyi18n login stores:
gemini extensions install https://github.com/easyi18n-com/agents
Without the extension, or for an agent key, merge the snippet into
.gemini/settings.json in the project.
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp"
]
}
}
}
With an agent key, Gemini CLI reads EASYI18N_TOKEN from the shell it runs in:
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp",
"--require-agent-key"
],
"env": {
"EASYI18N_TOKEN": "$EASYI18N_TOKEN"
}
}
}
}
Windsurf
Merge it into Windsurf's mcp_config.json.
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp"
]
}
}
}
With an agent key:
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp",
"--require-agent-key"
],
"env": {
"EASYI18N_TOKEN": "eik_YOUR_AGENT_KEY"
}
}
}
}
Zed
Merge it into Zed's user settings.json.
{
"context_servers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp"
]
}
}
}
With an agent key:
{
"context_servers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp",
"--require-agent-key"
],
"env": {
"EASYI18N_TOKEN": "eik_YOUR_AGENT_KEY"
}
}
}
}
Other clients
Most MCP clients read this mcpServers shape. Merge it into the client's MCP
configuration.
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp"
]
}
}
}
With an agent key:
{
"mcpServers": {
"easyi18n": {
"command": "npx",
"args": [
"-y",
"@easyi18n.com/cli@1.3.0",
"mcp",
"--require-agent-key"
],
"env": {
"EASYI18N_TOKEN": "eik_YOUR_AGENT_KEY"
}
}
}
}
Check the connection
Ask the agent to call status. It answers with the project, its languages and
its family. A no_credential error means the server found neither a login
nor a key: run easyi18n login, or check the client configuration, and
restart the client.