@i18n-agent/mcp-client 1.8.426 → 1.8.427

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 +3 -3
  2. package/package.json +1 -1
package/mcp-client.js CHANGED
@@ -2057,7 +2057,7 @@ async function handleSingleFileUpload(args) {
2057
2057
  };
2058
2058
 
2059
2059
  try {
2060
- const response = await axios.post(`${MCP_SERVER_URL.replace('/mcp', '')}/namespaces/${finalNamespace}/translations/upload`,
2060
+ const response = await axios.post(`${MCP_SERVER_URL}/namespaces/${finalNamespace}/translations/upload`,
2061
2061
  requestData.fileContent,
2062
2062
  {
2063
2063
  headers: {
@@ -2174,7 +2174,7 @@ async function handleParallelDocumentUpload(args) {
2174
2174
  formData.append('namespace', finalNamespace);
2175
2175
 
2176
2176
  try {
2177
- const response = await axios.post(`${MCP_SERVER_URL.replace('/mcp', '')}/translations/upload-parallel`,
2177
+ const response = await axios.post(`${MCP_SERVER_URL}/translations/upload-parallel`,
2178
2178
  formData,
2179
2179
  {
2180
2180
  headers: {
@@ -2237,7 +2237,7 @@ async function handleListUploadedTranslations(args) {
2237
2237
 
2238
2238
  try {
2239
2239
  const response = await axios.get(
2240
- `${MCP_SERVER_URL.replace('/mcp', '')}/namespaces/${namespace}/translations/files?${params.toString()}`,
2240
+ `${MCP_SERVER_URL}/namespaces/${namespace}/translations/files?${params.toString()}`,
2241
2241
  {
2242
2242
  headers: {
2243
2243
  'X-API-Key': API_KEY
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-agent/mcp-client",
3
- "version": "1.8.426",
3
+ "version": "1.8.427",
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": {