@i18n-agent/mcp-client 1.15.7 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/i18n-agent.js +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,11 +19,10 @@ Professional translation service client for Claude, Cursor, VS Code, Antigravity
|
|
|
19
19
|
## 🚀 Quick Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
|
|
23
|
-
i18n-agent
|
|
22
|
+
npx @i18n-agent/mcp-client install
|
|
24
23
|
```
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
The installer will detect all available AI IDEs and configure them automatically.
|
|
27
26
|
|
|
28
27
|
### Claude Code Marketplace Installation
|
|
29
28
|
|
|
@@ -235,7 +234,7 @@ Create `.cursor/mcp_settings.json` or `.vscode/mcp_settings.json`:
|
|
|
235
234
|
- **Automatic Polling**: Client automatically polls for job completion
|
|
236
235
|
|
|
237
236
|
### Credit Management
|
|
238
|
-
- **Cost**: 0.
|
|
237
|
+
- **Cost**: 0.01 credits per word
|
|
239
238
|
- **Monitoring**: Check balance before large translations
|
|
240
239
|
- **Estimates**: Get word count estimates before translation
|
|
241
240
|
|
|
@@ -326,7 +325,7 @@ export I18N_AGENT_API_KEY=your-key-here
|
|
|
326
325
|
|
|
327
326
|
## 📊 Pricing
|
|
328
327
|
|
|
329
|
-
- **Pay-per-use**: 0.
|
|
328
|
+
- **Pay-per-use**: 0.01 credits per word
|
|
330
329
|
- **No subscriptions**: Only pay for what you translate
|
|
331
330
|
- **Bulk discounts**: Available for enterprise usage
|
|
332
331
|
- **Free tier**: New accounts get starter credits
|
package/i18n-agent.js
CHANGED
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
const MCP_CLIENT_VERSION = '1.13.0';
|
|
9
9
|
|
|
10
|
+
// CLI argument routing — must run before MCP server initialization
|
|
11
|
+
const _cliCommand = process.argv[2];
|
|
12
|
+
if (_cliCommand === 'install' || _cliCommand === 'setup') {
|
|
13
|
+
const { main } = await import('./install.js');
|
|
14
|
+
await main();
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
10
18
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
11
19
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
12
20
|
import {
|
|
@@ -333,7 +341,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
333
341
|
},
|
|
334
342
|
{
|
|
335
343
|
name: 'get_credits',
|
|
336
|
-
description: 'Get remaining credits for the user and approximate word count available at 0.
|
|
344
|
+
description: 'Get remaining credits for the user and approximate word count available at 0.01 credits per word',
|
|
337
345
|
inputSchema: {
|
|
338
346
|
type: 'object',
|
|
339
347
|
properties: {
|
|
@@ -1356,7 +1364,7 @@ async function handleGetCredits(args) {
|
|
|
1356
1364
|
text: `💰 **Credits Information**\n\n` +
|
|
1357
1365
|
`💳 **Credits Remaining**: ${parsed.credits || 'N/A'}\n` +
|
|
1358
1366
|
`📝 **Approximate Words Available**: ${approximateWordsAvailable.toLocaleString()}\n` +
|
|
1359
|
-
`💵 **Cost per Word**: 0.
|
|
1367
|
+
`💵 **Cost per Word**: 0.01 credits\n` +
|
|
1360
1368
|
`⏰ **Last Updated**: ${new Date().toLocaleString()}\n\n` +
|
|
1361
1369
|
`Note: Word count is approximate and may vary based on actual content complexity and translation requirements.`,
|
|
1362
1370
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@i18n-agent/mcp-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
4
4
|
"description": "🌍 i18n-agent MCP Client - 48 languages, AI-powered translation for Claude, Claude Code, Cursor, VS Code, Codex. Get API key at https://app.i18nagent.ai",
|
|
5
5
|
"main": "i18n-agent.js",
|
|
6
6
|
"bin": "i18n-agent.js",
|