aws-dms-troubleshoot-mcp

v1.0.1
aws-dms-troubleshoot-mcp Checked 2 days ago Published 6 months ago

AWS DMS Troubleshooting MCP Server - Root Cause Analysis tool for AWS Database Migration Service replication issues

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_replication_tasks

List all DMS replication tasks with their current status. This tool provides an overview of all replication tasks in the specified region, including their current status, progress, and basic configuration. Returns: Dictionary containing: - tasks: List of replication tasks with key details - summary: Statistics about task statuses - region: The region queried

ParameterTypeDescription
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
regionstringAWS region for DMS resources
status_filterFilter by status: 'running', 'stopped', 'failed', 'starting', 'stopping', 'creating', 'deleting', 'modifying'

get_replication_task_details

Get detailed information about a specific replication task. This tool provides comprehensive details about a replication task, including its configuration, current status, statistics, and any error messages. Returns: Dictionary containing detailed task information including: - Task configuration and settings - Current status and progress - Error messages and stop reasons - Table-level statistics - Endpoint information

ParameterTypeDescription
task_identifier *stringReplication task identifier or ARN
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
regionstringAWS region for DMS resources

get_task_cloudwatch_logs

Retrieve CloudWatch logs for a replication task. This tool fetches CloudWatch logs for a specific replication task, which is crucial for diagnosing errors and understanding task behavior. Logs can be filtered by time range and search patterns. Returns: Dictionary containing: - log_events: List of log entries with timestamps and messages - log_group: CloudWatch log group name - time_range: Time period covered by the logs - summary: Count of different log levels if filter_pattern is used

ParameterTypeDescription
task_identifier *stringReplication task identifier
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
filter_patternCloudWatch Logs filter pattern (e.g., "ERROR" or "FATAL")
hours_backinteger
max_eventsinteger
regionstringAWS region for DMS resources

analyze_endpoint

Analyze a DMS endpoint configuration for potential issues. This tool examines source or target endpoint configuration and checks for common misconfigurations that can cause replication issues. If a replication_instance_arn is provided, a live connection test is run between that instance and the endpoint. The DMS DescribeEndpoints API does not return an associated replication instance, so the test is skipped unless the instance ARN is supplied explicitly. Returns: Dictionary containing: - endpoint_details: Configuration information - connec…

ParameterTypeDescription
endpoint_arn *stringEndpoint ARN to analyze
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
regionstringAWS region for DMS resources
replication_instance_arnOptional replication instance ARN. When provided, a live connection test is run between this instance and the endpoint.

diagnose_replication_issue

Perform comprehensive Root Cause Analysis (RCA) for a replication task. This tool combines information from multiple sources to diagnose issues with a failed or problematic replication task. It analyzes: - Task status and configuration - Recent error logs - Endpoint configurations - Common failure patterns Returns: Dictionary containing: - diagnosis_summary: High-level findings - root_causes: Identified root causes - recommendations: Actionable recommendations - supporting_evidence: Logs and configuration details

ParameterTypeDescription
task_identifier *stringReplication task identifier to diagnose
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
regionstringAWS region for DMS resources

get_troubleshooting_recommendations

Get troubleshooting recommendations based on common DMS error patterns. This tool provides recommendations based on common DMS error patterns and searches the official AWS documentation for relevant troubleshooting content. It combines curated quick-fix guidance with live documentation results. Returns: Dictionary containing: - matched_patterns: Error patterns that were matched - recommendations: Step-by-step troubleshooting guide - documentation_links: Relevant AWS documentation (static) - aws_docs_results: Live search results from AWS…

ParameterTypeDescription
error_pattern *stringError message or pattern from DMS task (e.g., "timeout", "connection refused", "access denied")

analyze_security_groups

Analyze security group rules for DMS replication instance connectivity. This tool examines security group configurations to identify potential network connectivity issues between the replication instance and endpoints. Returns: Dictionary containing: - security_groups: List of security groups with their rules - connectivity_issues: Identified connectivity problems - recommendations: Security group configuration recommendations

ParameterTypeDescription
replication_instance_arn *stringDMS Replication Instance ARN to analyze security groups for
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
regionstringAWS region for DMS resources

diagnose_network_connectivity

Perform comprehensive network connectivity diagnostics for a DMS task. This tool analyzes network configuration including security groups, VPC settings, subnets, and routing to identify connectivity issues between replication instance and endpoints. Returns: Dictionary containing: - network_summary: Overview of network configuration - connectivity_analysis: Detailed connectivity checks - identified_issues: List of network problems - recommendations: Network troubleshooting steps

ParameterTypeDescription
task_identifier *stringReplication task identifier to diagnose
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
regionstringAWS region for DMS resources

check_vpc_configuration

Analyze VPC routing, network ACLs, and connectivity configuration. This tool examines VPC-level network configuration that may affect DMS replication, including route tables, network ACLs, VPC peering, and Transit Gateway attachments. Returns: Dictionary containing: - vpc_details: VPC configuration information - routing_analysis: Route table analysis - network_acl_analysis: Network ACL configuration - connectivity_options: Available connectivity methods - recommendations: VPC configuration recommendations

ParameterTypeDescription
vpc_id *stringVPC ID to analyze for DMS connectivity
aws_profilestringAWS profile to use (defaults to AWS_PROFILE environment variable)
regionstringAWS region for DMS resources