@i18n-agent/mcp-client 1.8.258 → 1.8.260

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 +7 -7
  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.8.239';
8
+ const MCP_CLIENT_VERSION = '1.8.260';
9
9
 
10
10
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
11
11
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
@@ -1609,20 +1609,20 @@ function getCodeBlockLanguage(fileType) {
1609
1609
 
1610
1610
  // Handler for checking translation status
1611
1611
  async function handleCheckTranslationStatus(args) {
1612
- const { jobId, languageCursor, pageSize } = args;
1612
+ const { jobId, languageCursor, pageSize = 10 } = args; // Default pageSize to 10 to prevent token overflow
1613
1613
 
1614
1614
  if (!jobId) {
1615
1615
  throw new Error('jobId is required');
1616
1616
  }
1617
1617
 
1618
- // Build arguments with optional pagination params
1619
- const requestArgs = { jobId };
1618
+ // Build arguments with pagination params (default pageSize prevents token overflow)
1619
+ const requestArgs = {
1620
+ jobId,
1621
+ pageSize // Always include pageSize (defaults to 10)
1622
+ };
1620
1623
  if (languageCursor !== undefined) {
1621
1624
  requestArgs.languageCursor = languageCursor;
1622
1625
  }
1623
- if (pageSize !== undefined) {
1624
- requestArgs.pageSize = pageSize;
1625
- }
1626
1626
 
1627
1627
  const mcpRequest = {
1628
1628
  jsonrpc: '2.0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-agent/mcp-client",
3
- "version": "1.8.258",
3
+ "version": "1.8.260",
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": {