@i18n-agent/mcp-client 1.8.14 ā 1.8.16
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 +2 -8
- package/install.js +8 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,19 +18,13 @@ Professional translation service client for Claude, Cursor, VS Code, and other A
|
|
|
18
18
|
|
|
19
19
|
## š Quick Installation
|
|
20
20
|
|
|
21
|
-
Install via npx (recommended):
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npx -p @i18n-agent/mcp-client mcp-client
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Or install globally:
|
|
28
|
-
|
|
29
21
|
```bash
|
|
30
22
|
npm install -g @i18n-agent/mcp-client
|
|
31
23
|
mcp-client
|
|
32
24
|
```
|
|
33
25
|
|
|
26
|
+
**Note:** Global installation is required due to npm bin naming limitations. The installer will detect all available AI IDEs and configure them automatically.
|
|
27
|
+
|
|
34
28
|
## š Setup API Key
|
|
35
29
|
|
|
36
30
|
1. **Get your API key** from [app.i18nagent.ai](https://app.i18nagent.ai)
|
package/install.js
CHANGED
|
@@ -607,7 +607,14 @@ Try these commands in your AI IDE:
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
// Handle command line execution
|
|
610
|
-
if (
|
|
610
|
+
// Check if this file is being run directly (not imported)
|
|
611
|
+
const isMainModule = process.argv[1] && (
|
|
612
|
+
import.meta.url === `file://${process.argv[1]}` ||
|
|
613
|
+
import.meta.url.endsWith(process.argv[1]) ||
|
|
614
|
+
process.argv[1].includes('mcp-client')
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
if (isMainModule) {
|
|
611
618
|
main();
|
|
612
619
|
}
|
|
613
620
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@i18n-agent/mcp-client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.16",
|
|
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": "mcp-client.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"install": "node install.js",
|
|
12
12
|
"test": "node test.js",
|
|
13
|
-
"postinstall": "echo '\nš i18n-agent MCP Client installed successfully!\nš” Run:
|
|
13
|
+
"postinstall": "echo '\nš i18n-agent MCP Client installed successfully!\nš” Run: mcp-client (if installed globally) or node install.js\n'"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|