@scoutello/i18n-magic 0.38.0 → 0.39.0
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 +28 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -314,9 +314,35 @@ Open Cursor settings and add this to your MCP configuration:
|
|
|
314
314
|
}
|
|
315
315
|
```
|
|
316
316
|
|
|
317
|
-
|
|
318
|
-
- Replace `/absolute/path/to/your/project` with
|
|
317
|
+
**⚠️ CRITICAL Configuration**:
|
|
318
|
+
- Replace `/absolute/path/to/your/project` with **YOUR PROJECT DIRECTORY** containing `i18n-magic.js`
|
|
319
|
+
- **DO NOT** use the i18n-magic package directory - use where YOU use translations
|
|
319
320
|
- The `cwd` parameter must be an absolute path
|
|
321
|
+
- If you get "Connection closed" error, verify your `cwd` points to the correct directory
|
|
322
|
+
|
|
323
|
+
### Troubleshooting MCP Setup
|
|
324
|
+
|
|
325
|
+
**Error: "MCP error -32000: Connection closed"**
|
|
326
|
+
|
|
327
|
+
This means the server couldn't find your configuration. Check:
|
|
328
|
+
|
|
329
|
+
1. ✅ `cwd` points to YOUR project directory (not the i18n-magic package)
|
|
330
|
+
2. ✅ `i18n-magic.js` exists in that directory
|
|
331
|
+
3. ✅ Paths are absolute
|
|
332
|
+
|
|
333
|
+
Test your setup:
|
|
334
|
+
```bash
|
|
335
|
+
# Navigate to your project
|
|
336
|
+
cd /your/project/path
|
|
337
|
+
|
|
338
|
+
# Verify config exists
|
|
339
|
+
ls -la i18n-magic.js
|
|
340
|
+
|
|
341
|
+
# Test the MCP server manually
|
|
342
|
+
node ./node_modules/@scoutello/i18n-magic/dist/mcp-server.js
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
You should see: `[i18n-magic MCP] Server started and ready to accept connections`
|
|
320
346
|
|
|
321
347
|
### How it works
|
|
322
348
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scoutello/i18n-magic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Intelligent CLI toolkit that automates internationalization workflows with AI-powered translations for JavaScript/TypeScript projects",
|