@i18n-agent/mcp-client 1.8.15 → 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.
Files changed (2) hide show
  1. package/install.js +8 -1
  2. package/package.json +1 -1
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 (import.meta.url === `file://${process.argv[1]}`) {
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.15",
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": {