awslabs.aws-for-sap-management-mcp-server

v0.1.2
awslabs.aws-for-sap-management-mcp-server Checked 2 days ago Published 16 days ago

An AWS Labs Model Context Protocol (MCP) server for AWS Systems Manager for SAP

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

list_applications

List all SAP applications registered with AWS Systems Manager for SAP. Returns a list of all SAP applications (HANA and SAP_ABAP) in the specified region. Args: ctx: MCP context object. region: AWS region to query. profile_name: AWS CLI profile name. Returns: ListApplicationsResponse with application summaries.

ParameterTypeDescription
profile_nameAWS CLI Profile Name to use. Falls back to AWS_PROFILE env var.
regionAWS region to query. Defaults to AWS_REGION environment variable or us-east-1.

get_application

Get detailed metadata for a specific SAP application. Retrieves application status, discovery status, type, and component information. Status values: ACTIVATED | STARTING | STOPPED | STOPPING | FAILED | REGISTERING | DELETING | UNKNOWN Discovery status values: SUCCESS | REGISTRATION_FAILED | REFRESH_FAILED | REGISTERING | DELETING Args: ctx: MCP context object. application_id: The application ID. region: AWS region. profile_name: AWS CLI profile name. Returns: ApplicationDetail with full app…

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

get_component

Get detailed health status for a specific component of an SAP application. Component types: HANA | HANA_NODE | ABAP | ASCS | ERS | APP | DIALOG | WEBDISP | WD Component status: ACTIVATED | STARTING | STOPPED | STOPPING | FAILED | REGISTERING | DELETING | UNKNOWN Args: ctx: MCP context object. application_id: The application ID. component_id: The component ID. region: AWS region. profile_name: AWS CLI profile name. Returns: ComponentDetail with component metadata.

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application.
component_id *stringThe unique identifier of the component.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

get_operation

Get the details of an SSM for SAP operation. Use this to check the status of async operations like register, start, or stop. Args: ctx: MCP context object. operation_id: The operation ID. region: AWS region. profile_name: AWS CLI profile name. Returns: OperationDetail with operation metadata.

ParameterTypeDescription
operation_id *stringThe unique identifier of the operation.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

register_application

Register an SAP application with AWS Systems Manager for SAP. For HANA applications, provide the HANA database details. For SAP_ABAP applications, you must first register the HANA database and provide its ARN. Args: ctx: MCP context object. application_id: Unique application identifier. application_type: HANA or SAP_ABAP. sid: SAP System ID (3 chars). sap_instance_number: Two-digit instance number. instances: List of EC2 instance IDs. credentials: Optional credential configurations.…

ParameterTypeDescription
application_id *stringUnique identifier for the application (e.g., "MyHanaApp").
application_type *stringApplication type: 'HANA' or 'SAP_ABAP'.
instances *arrayList of EC2 instance IDs (e.g., ["i-0123456789abcdef0"]).
sap_instance_number *stringTwo-digit instance number (e.g., "00", "01").
sid *stringSAP System ID (3 characters, e.g., "HDB", "S4H").
credentialsCredential configurations: [{"CredentialType": "ADMIN", "DatabaseName": "<SID>/<DB>", "SecretId": "<ARN>"}]
database_arnARN of HANA database. REQUIRED for SAP_ABAP type only.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.
tagsTags to apply to the application.

start_application

Start an SAP application registered with AWS Systems Manager for SAP. Args: ctx: MCP context object. application_id: The application ID. region: AWS region. profile_name: AWS CLI profile name. Returns: StartStopApplicationResponse with operation status.

ParameterTypeDescription
application_id *stringThe ID of the application to start.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

stop_application

Stop an SAP application registered with AWS Systems Manager for SAP. For HANA applications with associated NetWeaver (SAP_ABAP) applications, this tool can optionally stop the NetWeaver applications first before stopping the HANA database. Args: ctx: MCP context object. application_id: The application ID. include_ec2_instance_shutdown: Whether to also shutdown EC2 instances. stop_connected_entity: Connected entity to stop (e.g., 'DBMS'). region: AWS region. profile_name: AWS CLI profile na…

ParameterTypeDescription
application_id *stringThe ID of the application to stop.
include_ec2_instance_shutdownbooleanIf True, also shutdown the EC2 instances. Default: False.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.
stop_connected_entityConnected entity to stop. Valid values: 'DBMS'.

list_config_check_definitions

List all configuration check types and their metadata offered by SSM for SAP. Use this to discover which configuration checks are available before running them. Args: ctx: MCP context object. region: AWS region. profile_name: AWS CLI profile name. Returns: List of ConfigCheckDefinition with check IDs and descriptions.

ParameterTypeDescription
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

start_config_checks

Trigger configuration checks against a specified SSM for SAP application. Args: ctx: MCP context object. application_id: The application ID. check_ids: List of check IDs to run. region: AWS region. profile_name: AWS CLI profile name. Returns: StartConfigChecksResponse with initiated operation details.

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application.
check_ids *arrayList of configuration check IDs to run (e.g., ["SAP_CHECK_01"]). Use list_config_check_definitions to discover available checks.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

get_config_check_summary

Get a comprehensive summary of the latest configuration check results. Lists the most recent result for each configuration check type, with optional subcheck details. Args: ctx: MCP context object. application_id: The application ID. include_subchecks: Whether to include subcheck details. region: AWS region. profile_name: AWS CLI profile name. Returns: ConfigCheckSummary with check results and counts.

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application.
include_subchecksbooleanWhether to include subcheck details. Default: True.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

get_config_check_operation

Get the details of a specific configuration check operation. Args: ctx: MCP context object. operation_id: The operation ID. region: AWS region. profile_name: AWS CLI profile name. Returns: Dictionary with configuration check operation details.

ParameterTypeDescription
operation_id *stringThe unique identifier of the configuration check operation.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

list_sub_check_results

List the sub-check results for a specific configuration check operation. Args: ctx: MCP context object. operation_id: The operation ID. region: AWS region. profile_name: AWS CLI profile name. Returns: List of SubCheckResult with sub-check details.

ParameterTypeDescription
operation_id *stringThe unique identifier of the configuration check operation.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

list_sub_check_rule_results

List the rule evaluation results for a specific sub-check. Args: ctx: MCP context object. subcheck_result_id: The sub-check result ID. region: AWS region. profile_name: AWS CLI profile name. Returns: List of rule result dictionaries.

ParameterTypeDescription
subcheck_result_id *stringThe unique identifier of the sub-check result.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

schedule_config_checks

Schedule recurring configuration checks using Amazon EventBridge Scheduler. Creates an EventBridge schedule that periodically triggers SSM for SAP configuration checks against the specified application. Args: ctx: MCP context object. application_id: The application ID. schedule_expression: Rate or cron expression. check_ids: Optional specific check IDs. schedule_name: Optional custom schedule name. timezone_str: Timezone for cron expressions. region: AWS region. profile_nam…

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application.
schedule_expression *stringSchedule expression. Examples: "rate(7 days)", "cron(0 9 ? * MON *)".
check_idsOptional list of specific configuration check IDs to run.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.
schedule_nameOptional custom name for the schedule. Auto-generated if not provided.
timezone_strTimezone for cron expressions (e.g., "America/New_York"). Default: UTC.

schedule_start_application

Schedule automatic start of an SAP application using EventBridge Scheduler. Useful for starting SAP systems at the beginning of business hours or cost optimization by starting dev/test systems only when needed. Args: ctx: MCP context object. application_id: The application ID. schedule_expression: Rate or cron expression. schedule_name: Optional custom schedule name. description: Optional description. start_date: Optional start date (ISO format). end_date: Optional end date (ISO format…

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application to start.
schedule_expression *stringSchedule expression. Examples: "cron(0 8 ? * MON-FRI *)" for weekdays at 8 AM, "rate(12 hours)".
descriptionOptional description for the schedule.
end_dateOptional end date in ISO format.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.
schedule_nameOptional custom name. Auto-generated if not provided.
start_dateOptional start date in ISO format (e.g., "2026-01-15T00:00:00Z").
timezone_strTimezone for cron expressions. Default: UTC.

schedule_stop_application

Schedule automatic stop of an SAP application using EventBridge Scheduler. Useful for stopping SAP systems at end of business hours or cost optimization by stopping dev/test systems overnight/weekends. Args: ctx: MCP context object. application_id: The application ID. schedule_expression: Rate or cron expression. include_ec2_instance_shutdown: Whether to also shutdown EC2 instances. stop_connected_entity: Connected entity to stop (e.g., 'DBMS'). schedule_name: Optional custom schedule name.…

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application to stop.
schedule_expression *stringSchedule expression. Examples: "cron(0 20 ? * MON-FRI *)" for weekdays at 8 PM.
descriptionOptional description for the schedule.
end_dateOptional end date in ISO format.
include_ec2_instance_shutdownbooleanIf True, also shutdown EC2 instances. Default: False.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.
schedule_nameOptional custom name. Auto-generated if not provided.
start_dateOptional start date in ISO format.
stop_connected_entityConnected entity to stop. Valid values: 'DBMS'.
timezone_strTimezone for cron expressions. Default: UTC.

list_app_schedules

List all EventBridge Scheduler schedules for a specific SAP application. Scans all schedules and filters to those targeting the given application ID. Args: ctx: MCP context object. application_id: The application ID. include_disabled: Whether to include disabled schedules. region: AWS region. profile_name: AWS CLI profile name. Returns: ListSchedulesResponse with matching schedules.

ParameterTypeDescription
application_id *stringThe unique identifier of the SAP application.
include_disabledbooleanIf True, include disabled schedules. Default: True.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

delete_schedule

Delete an EventBridge Scheduler schedule. Args: ctx: MCP context object. schedule_name: The schedule name. region: AWS region. profile_name: AWS CLI profile name. Returns: DeleteScheduleResponse with deletion status.

ParameterTypeDescription
schedule_name *stringThe name of the schedule to delete.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

update_schedule_state

Enable or disable an EventBridge Scheduler schedule. Args: ctx: MCP context object. schedule_name: The schedule name. enabled: True to enable, False to disable. region: AWS region. profile_name: AWS CLI profile name. Returns: UpdateScheduleStateResponse with new state.

ParameterTypeDescription
enabled *booleanTrue to enable, False to disable.
schedule_name *stringThe name of the schedule to update.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

get_schedule_details

Get detailed information about a specific EventBridge Scheduler schedule. Args: ctx: MCP context object. schedule_name: The schedule name. region: AWS region. profile_name: AWS CLI profile name. Returns: Dictionary with full schedule details including target, expression, and state.

ParameterTypeDescription
schedule_name *stringThe name of the schedule to retrieve.
profile_nameAWS CLI Profile Name.
regionAWS region. Defaults to AWS_REGION or us-east-1.

get_sap_health_summary

Get comprehensive health summary for SAP systems managed by SSM for SAP. Returns structured per-application health data including: - Application and discovery status - Component details with EC2 instance IDs - Configuration check results (auto-triggers checks if none recent) - HANA log backup status via SSM agent - AWS Backup status for SAP HANA instances - CloudWatch metrics (CPU, status checks) for EC2 instances - Overall health verdict Use generate_health_report for a detailed, downloadable Markdown report. A…

ParameterTypeDescription
application_idOptional specific application ID. If not provided, checks all applications.
auto_trigger_config_checksbooleanAutomatically trigger config checks if no recent results exist. Default: True.
config_check_max_age_hoursintegerMax age in hours for config check results before auto-triggering. Default: 24.
include_aws_backup_statusbooleanInclude AWS Backup status for SAP HANA. Default: True.
include_cloudwatch_metricsbooleanInclude CloudWatch metrics for EC2 instances. Default: True.
include_config_checksbooleanInclude configuration check results. Default: True.
include_log_backup_statusbooleanInclude HANA log backup status via SSM. Default: True.
include_rule_resultsbooleanInclude rule-level results within sub-checks. Default: True.
include_subchecksbooleanInclude sub-check details within config checks. Default: True.
profile_nameAWS CLI Profile Name. Falls back to AWS_PROFILE env var.
regionAWS region. Defaults to AWS_REGION environment variable or us-east-1.

generate_health_report

Generate a detailed, downloadable health report for SAP systems managed by SSM for SAP. Produces a comprehensive Markdown-formatted report covering: - Discovery status (SUCCESS | REGISTRATION_FAILED | REFRESH_FAILED | REGISTERING | DELETING) - Application status (ACTIVATED | STARTING | STOPPED | STOPPING | FAILED | REGISTERING | DELETING | UNKNOWN) - Component status with host details - Configuration checks with subchecks and rule results (optional) - HANA Log Backup status via SSM agent (optional) - AWS Backup status for SAP HANA (optio…

ParameterTypeDescription
application_idOptional specific application ID. If not provided, checks all applications.
include_aws_backup_statusbooleanInclude AWS Backup status for SAP HANA. Default: True.
include_cloudwatch_metricsbooleanInclude CloudWatch metrics for EC2 instances. Default: True.
include_config_checksbooleanInclude configuration check results. Default: True.
include_log_backup_statusbooleanInclude HANA log backup status via SSM. Default: True.
include_rule_resultsbooleanInclude rule-level results within sub-checks. Default: True.
include_subchecksbooleanInclude sub-check details within config checks. Default: True.
profile_nameAWS CLI Profile Name. Falls back to AWS_PROFILE env var.
regionAWS region. Defaults to AWS_REGION environment variable or us-east-1.