@i18n-agent/mcp-client 1.4.1 → 1.4.2

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/mcp-client.js +4 -3
  2. package/package.json +1 -1
package/mcp-client.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Integrates with Claude Code CLI to provide translation capabilities
6
6
  */
7
7
 
8
- const MCP_CLIENT_VERSION = '1.4.1';
8
+ const MCP_CLIENT_VERSION = '1.4.2';
9
9
 
10
10
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
11
11
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
@@ -265,8 +265,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
265
265
 
266
266
  let finalErrorMsg = error.message;
267
267
 
268
- // Add retry guidance for non-auth/credit errors (but not for status checking)
269
- if (!isAuthError && !isCreditError && name !== 'check_translation_status') {
268
+ // Add retry guidance for non-auth/credit errors (only for tools that send content)
269
+ const contentBasedTools = ['translate_text', 'translate_file'];
270
+ if (!isAuthError && !isCreditError && contentBasedTools.includes(name)) {
270
271
  finalErrorMsg = `${error.message}. Please retry with smaller chunks or split the content into multiple requests.`;
271
272
  }
272
273
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-agent/mcp-client",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "MCP client for i18n-agent translation service with async job support and enhanced progress tracking - supports Claude, Cursor, VS Code, and other AI IDEs",
5
5
  "main": "mcp-client.js",
6
6
  "bin": {