@i18n-agent/mcp-client 1.8.243 → 1.8.245
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.
- package/mcp-client.js +5 -4
- package/package.json +1 -1
package/mcp-client.js
CHANGED
|
@@ -1781,12 +1781,13 @@ async function handleDownloadTranslations(args) {
|
|
|
1781
1781
|
try {
|
|
1782
1782
|
console.error(`📥 Downloading ${language}...`);
|
|
1783
1783
|
|
|
1784
|
+
// CRITICAL FIX: S3 presigned URLs are self-contained and include authentication in the URL
|
|
1785
|
+
// Adding an Authorization header causes S3 to reject the request with 400/403
|
|
1786
|
+
// because the signature was calculated without the Authorization header
|
|
1784
1787
|
const fileResponse = await axios.get(downloadUrl, {
|
|
1785
1788
|
responseType: 'text',
|
|
1786
|
-
timeout: 60000
|
|
1787
|
-
|
|
1788
|
-
'Authorization': `Bearer ${API_KEY}`
|
|
1789
|
-
}
|
|
1789
|
+
timeout: 60000 // 1 minute per file
|
|
1790
|
+
// DO NOT add Authorization header for S3 presigned URLs
|
|
1790
1791
|
});
|
|
1791
1792
|
|
|
1792
1793
|
// Determine file extension from file name or metadata
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@i18n-agent/mcp-client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.245",
|
|
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": {
|