@i18n-agent/mcp-client 1.8.3 → 1.8.4
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/install.js +19 -0
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -9,6 +9,7 @@ import fs from 'fs';
|
|
|
9
9
|
import path from 'path';
|
|
10
10
|
import os from 'os';
|
|
11
11
|
import { fileURLToPath } from 'url';
|
|
12
|
+
import { execSync } from 'child_process';
|
|
12
13
|
|
|
13
14
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
14
15
|
|
|
@@ -99,6 +100,24 @@ function copyMcpClientToStableLocation() {
|
|
|
99
100
|
// Copy mcp-client.js to stable location
|
|
100
101
|
fs.copyFileSync(paths.sourceFile, paths.mcpClientPath);
|
|
101
102
|
|
|
103
|
+
// Copy package.json to stable location
|
|
104
|
+
const packageJsonSource = path.resolve(__dirname, 'package.json');
|
|
105
|
+
const packageJsonDest = path.join(paths.packageDir, 'package.json');
|
|
106
|
+
fs.copyFileSync(packageJsonSource, packageJsonDest);
|
|
107
|
+
|
|
108
|
+
// Install dependencies
|
|
109
|
+
console.log(` 📦 Installing dependencies...`);
|
|
110
|
+
try {
|
|
111
|
+
execSync('npm install --production --silent', {
|
|
112
|
+
cwd: paths.packageDir,
|
|
113
|
+
stdio: 'pipe'
|
|
114
|
+
});
|
|
115
|
+
console.log(` ✅ Dependencies installed successfully`);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(` ⚠️ Warning: Failed to install dependencies automatically`);
|
|
118
|
+
console.error(` 💡 Run manually: cd ${paths.packageDir} && npm install`);
|
|
119
|
+
}
|
|
120
|
+
|
|
102
121
|
console.log(` 📦 Installed MCP client to: ${paths.packageDir}`);
|
|
103
122
|
|
|
104
123
|
return paths;
|
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.4",
|
|
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": {
|