@i18n-agent/mcp-client 1.7.1 → 1.7.3

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 +6 -6
  2. package/package.json +1 -1
package/mcp-client.js CHANGED
@@ -47,7 +47,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
47
47
  tools: [
48
48
  {
49
49
  name: 'translate_text',
50
- description: 'Translate text content with cultural adaptation using AI subagents. Supports both single and multi-language translation. For large requests (>100 texts or >50,000 characters), returns a jobId for async processing. Use check_translation_status to monitor progress and download results.',
50
+ description: '⚠️ IMPORTANT: You MUST provide either targetLanguage (for single language) OR targetLanguages array (for multiple languages). Translate text content with cultural adaptation using AI subagents. Supports both single and multi-language translation. For large requests (>100 texts or >50,000 characters), returns a jobId for async processing. Use check_translation_status to monitor progress and download results.',
51
51
  inputSchema: {
52
52
  type: 'object',
53
53
  properties: {
@@ -58,12 +58,12 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
58
58
  },
59
59
  targetLanguage: {
60
60
  type: 'string',
61
- description: 'Target language code (e.g., "es", "fr", "zh-CN") - for single language translation',
61
+ description: '⚠️ REQUIRED (if targetLanguages not provided): Target language code for single language translation (e.g., "es", "fr", "zh-CN")',
62
62
  },
63
63
  targetLanguages: {
64
64
  type: 'array',
65
65
  items: { type: 'string' },
66
- description: 'Array of target language codes (e.g., ["es", "fr", "zh-CN"]) - for multi-language translation',
66
+ description: '⚠️ REQUIRED (if targetLanguage not provided): Array of target language codes for multi-language translation (e.g., ["es", "fr", "zh-CN"])',
67
67
  },
68
68
  sourceLanguage: {
69
69
  type: 'string',
@@ -105,7 +105,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
105
105
  },
106
106
  {
107
107
  name: 'translate_file',
108
- description: 'Translate file content while preserving structure and format. Supports both single and multi-language translation. Supports JSON, YAML, XML, CSV, TXT, MD, and other text files. For large files (>100KB), returns a jobId for async processing. Use check_translation_status to monitor progress and download results.',
108
+ description: '⚠️ IMPORTANT: You MUST provide either targetLanguage (for single language) OR targetLanguages array (for multiple languages). Translate file content while preserving structure and format. Supports both single and multi-language translation. Supports JSON, YAML, XML, CSV, TXT, MD, and other text files. For large files (>100KB), returns a jobId for async processing. Use check_translation_status to monitor progress and download results.',
109
109
  inputSchema: {
110
110
  type: 'object',
111
111
  properties: {
@@ -125,12 +125,12 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
125
125
  },
126
126
  targetLanguage: {
127
127
  type: 'string',
128
- description: 'Target language code or name - for single language translation',
128
+ description: '⚠️ REQUIRED (if targetLanguages not provided): Target language code or name - for single language translation (e.g., "es", "fr", "de")',
129
129
  },
130
130
  targetLanguages: {
131
131
  type: 'array',
132
132
  items: { type: 'string' },
133
- description: 'Array of target language codes (e.g., ["es", "fr", "zh-CN"]) - for multi-language translation',
133
+ description: '⚠️ REQUIRED (if targetLanguage not provided): Array of target language codes for multi-language translation (e.g., ["es", "fr", "zh-CN"])',
134
134
  },
135
135
  targetAudience: {
136
136
  type: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-agent/mcp-client",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
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": {