-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Add Amazon Translate MCP Server with managed batch processing and automatic translation workflows #1698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/terminology_manager.py
Fixed
Show fixed
Hide fixed
| # Use server-specified retry_after with some jitter | ||
| delay = float(retry_after) | ||
| if self.jitter: | ||
| delay += random.uniform(0, min(delay * 0.1, 5.0)) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
|
|
||
| # Add jitter to prevent thundering herd | ||
| if self.jitter: | ||
| delay += random.uniform(0, delay * 0.1) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/terminology_manager.py
Fixed
Show fixed
Hide fixed
| # Add jitter to avoid thundering herd | ||
| if self._jitter: | ||
| jitter_amount = delay * 0.1 # 10% jitter | ||
| delay += random.uniform(-jitter_amount, jitter_amount) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/batch_manager.py
Fixed
Show fixed
Hide fixed
| except ImportError: | ||
| # Fallback to standard library with security warning | ||
| import warnings | ||
| import xml.etree.ElementTree as ET |
Check notice
Code scanning / Bandit
Using xml.etree.ElementTree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.etree.ElementTree with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called. Note
| logger.debug( | ||
| 'Listed %d translation jobs, next_token: %s', | ||
| len(job_summaries), | ||
| 'present' if result['next_token'] else 'none', | ||
| ) |
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure Warning
Summary
Added new Amazon Translate MCP Server to enable AI applications to interact with Amazon Translate services through the Model Context Protocol.
Changes
User experience
Key capabilities available:
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change? (Y/N)
RFC issue number: #1450
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.