MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

↓ 7 callersMethodresolve_service_code
Resolve a service code alias to the actual AWS Support API service code. Handles common shorthand names (e.g., 'ecs', 's3', 'lambda') and
src/aws-support-mcp-server/awslabs/aws_support_mcp_server/client.py:186
↓ 7 callersMethodresolve_time_range
Resolve start and end times for CloudWatch queries. This function is public for unit testing purposes. Args: start_time:
src/eks-mcp-server/awslabs/eks_mcp_server/cloudwatch_handler.py:50
↓ 7 callersFunctionsanitize_tool_name
Sanitize a Step Functions state machine name to be used as a tool name.
src/stepfunctions-tool-mcp-server/awslabs/stepfunctions_tool_mcp_server/server.py:80
↓ 7 callersMethodsearch_sequence_stores
Search for genomics files in HealthOmics sequence stores. Args: file_type: Optional file type filter search_terms: Li
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/search/healthomics_search_engine.py:62
↓ 7 callersFunctionsearch_stac_endpoints
Search for STAC (SpatioTemporal Asset Catalog) endpoints across all datasets. Scans dataset Resources (Explore links, descriptions), DataAtWork
src/roda-mcp-server/awslabs/roda_mcp_server/server.py:1287
↓ 7 callersFunctionsecure_tool
Decorator to secure a tool function with permission checks and response sanitization. Args: config: The MCP server configuration
src/ecs-mcp-server/awslabs/ecs_mcp_server/utils/security.py:411
↓ 7 callersMethodselect
Return a supported transport mode for the given configuration. The configured transport is normalized (trimmed; empty/whitespace/None
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/transport.py:70
↓ 7 callersFunctionselect_proxy_endpoint
Pick the proxy endpoint that serves the role the caller asked for. A proxy's default endpoint is READ_WRITE and routes to the current writer.
src/postgres-mcp-server/awslabs/postgres_mcp_server/connection/cp_api_connection.py:422
↓ 7 callersFunctionset_correlation_id
Set correlation ID in context. Args: correlation_id: Correlation ID to set
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/logging_config.py:267
↓ 7 callersFunctionsetup
One-time setup: provision or reuse agent space and IAM service role. NOTE: This creates a minimal role for code scanning and basic pentesting (S3
src/security-agent-mcp-server/awslabs/security_agent_mcp_server/server.py:289
↓ 7 callersMethodsetup
Set up workspace before task execution. Override to prepare the workspace before the agent starts (e.g., copy template files, create
src/cloudwatch-applicationsignals-mcp-server/evals/core/task.py:165
↓ 7 callersMethodsetup_table
Set up an Athena table based on the schema information. Args: database_name: Name of the database table_name: Name of
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/storage_lens_tools.py:554
↓ 7 callersMethodshould_retry
Determine if an exception should trigger a retry. Args: exception: The exception that occurred attempt: Current attem
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/retry_handler.py:101
↓ 7 callersFunctionsp_explorer
Tool that describes Savings Plans inventory and purchasable offerings. Args: ctx: The MCP context object operation: The operation
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/sp_explorer_tools.py:89
↓ 7 callersFunctionstart_migration
Start migration to an Amazon ElastiCache replication group. This tool starts migration from a Redis instance to an ElastiCache replication group.
src/elasticache-mcp-server/awslabs/elasticache_mcp_server/tools/rg/start_migration.py:121
↓ 7 callersMethodstorage_gb
Calculate storage in GB.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/data_model.py:68
↓ 7 callersFunctionstore_deployment_metadata
Update deployment metadata with additional information. Args: project_name: Name of the project metadata: Additional metadata to
src/aws-serverless-mcp-server/awslabs/aws_serverless_mcp_server/utils/deployment_manager.py:81
↓ 7 callersMethodto_mcp_result
(self)
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/server.py:123
↓ 7 callersMethodtool
Return a decorator that records the registered tool's name and annotations.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:50
↓ 7 callersFunctionupdate
Update documents in a DocumentDB collection. This tool updates existing documents that match a specified filter. Returns: Dict[str,
src/documentdb-mcp-server/awslabs/documentdb_mcp_server/write_tools.py:70
↓ 7 callersMethodupdate
Update an existing entity with optimistic locking (prevents lost updates) Note: Uses PutItem with exclude_none=True to support sparse GSIs. T
src/dynamodb-mcp-server/tests/repo_generation_tool/fixtures/expected_outputs/python/elearning/base_repository.py:168
↓ 7 callersFunctionupload_frontend_assets
Upload frontend assets to S3. Args: configuration: Deployment configuration deploy_result: Result of the deployment Raises:
src/aws-serverless-mcp-server/awslabs/aws_serverless_mcp_server/tools/webapps/utils/frontend_uploader.py:29
↓ 7 callersFunctionvalidate_athena_name
Raise ValueError unless ``value`` is a plain Athena identifier.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/storage_lens_tools.py:96
↓ 7 callersFunctionvalidate_aws_region
Validate AWS region against whitelist. Args: region: AWS region to validate Returns: Validated region string Raises:
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/security_validators.py:147
↓ 7 callersMethodvalidate_credentials
Validate current AWS credentials. Returns: True if credentials are valid, False otherwise
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/aws_client.py:352
↓ 7 callersFunctionvalidate_date_format
Validate if a string is in YYYY-MM-DD format. Args: date_str: Date string to validate Returns: True if the date is valid, Fa
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/aws_service_base.py:308
↓ 7 callersFunctionvalidate_endpoint
Validate that the requested endpoint matches an RDS instance or allowed list. Returns the AWS-sourced (host, port) on match. Raises ValueError on
src/mssql-mcp-server/awslabs/mssql_mcp_server/server.py:412
↓ 7 callersFunctionvalidate_fhir_resource_type
Validate a FHIR resource type (PascalCase, letters/digits only).
src/healthlake-mcp-server/awslabs/healthlake_mcp_server/fhir_operations.py:145
↓ 7 callersFunctionvalidate_next_token
Validate next token constraints. Args: token: The next token to validate field_name: Name of the field for error messages Re
src/aws-iot-sitewise-mcp-server/awslabs/aws_iot_sitewise_mcp_server/validation_utils.py:571
↓ 7 callersFunctionvalidate_output_dir
Validate output directory is within the allowed base directory.
src/document-loader-mcp-server/awslabs/document_loader_mcp_server/server.py:290
↓ 7 callersFunctionvalidate_prerequisites
Validates prerequisites for ECS Express Mode deployment. Checks: 1. Task Execution Role exists (checks default 'ecsTaskExecutionRole' if
src/ecs-mcp-server/awslabs/ecs_mcp_server/api/express.py:119
↓ 7 callersMethodvalidate_range_condition
Validate range_condition against allowed DynamoDB operators. Args: range_condition: Range condition value to validate
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/core/range_query_validator.py:41
↓ 7 callersFunctionvalidate_state_machine_name
Validate that the state machine name is valid and can be called.
src/stepfunctions-tool-mcp-server/awslabs/stepfunctions_tool_mcp_server/server.py:68
↓ 7 callersMethodvalidate_sync
Validate connectivity synchronously with a lightweight probe. Mirrors the same return-value rigor _execute_sync applies to fetch_assoc
src/db2-mcp-server/awslabs/db2_mcp_server/connection/ibm_db_connection.py:555
↓ 7 callersMethodvalidate_template_syntax
Validate template syntax for common issues. Args: template: Template string to validate Returns: List of Val
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/core/key_template_parser.py:100
↓ 7 callersFunctionvalidate_workflow_token
Validate any workflow token exists and optionally check its type.
src/ccapi-mcp-server/awslabs/ccapi_mcp_server/impl/utils/validation.py:20
↓ 7 callersFunctionwrite_svg_to_s3
Parse S3 path, validate bucket, check no-overwrite, and upload SVG. Args: svg_content: The SVG string to upload. s3_path: The S3
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/s3_utils.py:250
↓ 6 callersMethod__init__
(self, table_name: str = 'ELearningPlatform')
src/dynamodb-mcp-server/tests/repo_generation_tool/fixtures/expected_outputs/python/elearning/repositories.py:568
↓ 6 callersMethod__init__
Initialize the error. Args: message: Error message error_type: Type of authentication error details: Addi
src/openapi-mcp-server/awslabs/openapi_mcp_server/auth/auth_errors.py:38
↓ 6 callersFunction_aggregate_task_metrics
Aggregate task metrics by normalized base name. Groups tasks by their normalized base name (removing scatter/iteration suffixes) and calculat
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/run_analysis.py:1148
↓ 6 callersMethod_apg_cluster_props
Cluster metadata shaped like internal_get_cluster_properties returns.
src/postgres-mcp-server/tests/test_server_internal_functions.py:688
↓ 6 callersFunction_append_filesystem_usage
Append filesystem usage information for SAP-relevant paths. First attempts to run `df -h` via SSM RunShellScript on each instance. Falls back
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/ssm_sap_health/tools.py:2316
↓ 6 callersFunction_apply_pareto_materiality
Rank grouped efficiency metrics by score, spend-materiality aware. The fetch that feeds this is highest-spend-first (orderBy Spend Desc), so the
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_optimization_hub_helpers.py:536
↓ 6 callersFunction_arg
Build a single ``--flag=value`` argv token (unambiguous for argparse).
src/aws-healthomics-mcp-server/tests/test_config_multitenant_parsing.py:63
↓ 6 callersFunction_bearer_scope
Build an ASGI HTTP scope with an Authorization: Bearer header. This models the Calling_Agent forwarding the customer's bearer token unchanged
src/aws-healthomics-mcp-server/tests/test_multihop_identity_propagation.py:78
↓ 6 callersFunction_bearer_scope
Build an ASGI HTTP scope with an Authorization: Bearer header.
src/aws-healthomics-mcp-server/tests/test_jwt_derive_assume_role_shape.py:71
↓ 6 callersMethod_call
(self, mock_client, batch_run_settings, **kwargs)
src/aws-healthomics-mcp-server/tests/test_run_batch.py:640
↓ 6 callersMethod_call_tool
(self, mock_context, **kwargs)
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:2058
↓ 6 callersFunction_call_with_today
Call the real cost_anomaly with UTC today pinned and a mocked CE client. Returns (response, client) so a test can read the DateInterval actually
src/billing-cost-management-mcp-server/tests/tools/test_cost_anomaly_tools.py:868
↓ 6 callersFunction_ce_response
One DAILY week, one group, $1 a day; ``fmt`` renders a ``YYYY-MM-DD`` day.
src/billing-cost-management-mcp-server/tests/utilities/test_ce_time_period_format.py:63
↓ 6 callersFunction_check_target_group_health
Check target group health and return any unhealthy targets.
src/ecs-mcp-server/awslabs/ecs_mcp_server/api/troubleshooting_tools/fetch_service_events.py:79
↓ 6 callersFunction_check_version_meets_minimum
Check if current version meets minimum requirement. Args: current_version: Current version tuple or None Returns: bool: True
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/model_validation_utils.py:252
↓ 6 callersFunction_client_error
Create a ClientError for testing.
src/amazon-bedrock-agentcore-mcp-server/tests/runtime/test_unit_lifecycle.py:33
↓ 6 callersFunction_connection_double
A connection that records what run_query hands it.
src/postgres-mcp-server/tests/test_run_query_policy_wiring.py:74
↓ 6 callersMethod_convert_named_to_positional
Convert named parameter SQL to positional parameter SQL for asyncmy. Converts %(name)s style placeholders to %s and returns ordered params.
src/mysql-mcp-server/awslabs/mysql_mcp_server/connection/asyncmy_pool_connection.py:334
↓ 6 callersFunction_create_healthomics_registry_policy
Create a sample registry policy that grants HealthOmics access.
src/aws-healthomics-mcp-server/tests/test_ecr_tools.py:2921
↓ 6 callersMethod_create_mock_insight_item
Helper to create a mock insight item for testing.
src/eks-mcp-server/tests/test_insights_handler.py:94
↓ 6 callersFunction_create_unsigned_client
Create an UNSIGNED (no SigV4) boto3 client for a Transform Coral service.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/transform_api_client.py:98
↓ 6 callersFunction_current_settings
Report the settings this server resolved at startup. Listed in the instructions right after GUIDE_POINTER, since the caller cannot read the s
src/redshift-mcp-server/awslabs/redshift_mcp_server/server.py:119
↓ 6 callersMethod_delete_stack
Delete a CloudFormation stack.
src/sagemaker-ai-mcp-server/awslabs/sagemaker_ai_mcp_server/sagemaker_hyperpod/hyperpod_stack_handler.py:632
↓ 6 callersMethod_deploy_stack
Deploy a CloudFormation stack from the specified template file.
src/eks-mcp-server/awslabs/eks_mcp_server/eks_stack_handler.py:353
↓ 6 callersFunction_describe_support_cases_logic
Business logic for retrieving information about support cases.
src/aws-support-mcp-server/awslabs/aws_support_mcp_server/server.py:331
↓ 6 callersFunction_emoji
Get status emoji, defaulting to ⚪ for unknown statuses.
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/ssm_sap_health/tools.py:69
↓ 6 callersFunction_ensure_scheduler_role
Ensure the EventBridge Scheduler execution role exists. Creates the role with AWSSystemsManagerForSAPFullAccess policy if it doesn't exist.
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/ssm_sap_scheduling/tools.py:62
↓ 6 callersMethod_ensure_stack_ownership
Ensure that a stack exists and was created by this tool. Args: ctx: The MCP context stack_name: Name of the stack to
src/eks-mcp-server/awslabs/eks_mcp_server/eks_stack_handler.py:64
↓ 6 callersFunction_enterprise_support
Route an Enterprise Support ``operation`` to its handler. Kept separate from the FastMCP-decorated wrapper so the routing can be unit tested
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/enterprise_support_tools.py:42
↓ 6 callersFunction_error_response
Build an error response with top-level service, operation, and error_type. Matches the shape handle_aws_error returns, so the failure is classifi
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/compute_optimizer_tools.py:654
↓ 6 callersFunction_execute_access_patterns
Execute all data model validation access patterns operations. Args: workspace_dir: Absolute path of the workspace directory acces
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/server.py:954
↓ 6 callersMethod_execute_query_batch
Execute a batch of queries and collect results. Args: query_names: List of query names to execute database: Target da
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/db_analyzer/mysql.py:324
↓ 6 callersFunction_execute_statement_in_transaction
Execute a statement on an open transaction's session, optionally closing it. A statement inside a transaction is sent bare: the transaction is al
src/redshift-mcp-server/awslabs/redshift_mcp_server/redshift.py:792
↓ 6 callersFunction_explain_list
Explain list content comprehensively.
src/ccapi-mcp-server/awslabs/ccapi_mcp_server/impl/tools/explanation.py:191
↓ 6 callersFunction_extract_keywords
Extract significant lowercase keywords from text, filtering stop words. Splits on non-alphanumeric boundaries (preserving underscores and hyphens
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/canary_recommendation_engine.py:130
↓ 6 callersFunction_extract_log_group_name
Extract log group name from an ARN or return as-is if already a name.
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_logs/index_recommender.py:57
↓ 6 callersFunction_extract_slo_metric_name
Extract the RUM metric name from an SLO config.
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/rum_tools.py:1707
↓ 6 callersMethod_extract_template_fields
Extract field names from template(s), handling both string and list. Args: template: Single template string, list of templates, o
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/generators/jinja2_generator.py:312
↓ 6 callersFunction_factory
Return an sts_client_factory yielding the given stub client.
src/aws-healthomics-mcp-server/tests/test_jwt_derive_assume_role_shape.py:103
↓ 6 callersFunction_find_matching_pull_through_cache
Find a pull-through cache rule that matches the given registry. Args: registry: The upstream registry URL ptc_rules: List of pull
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/ecr_tools.py:2056
↓ 6 callersFunction_find_soffice
Find the soffice binary. Checks $PATH first, then known macOS app bundle locations. Returns the full path to soffice, or None if not found.
src/document-loader-mcp-server/awslabs/document_loader_mcp_server/server.py:541
↓ 6 callersFunction_flatten_request_headers
Flatten multi-value header lists into single comma-separated strings.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/upload_helper.py:45
↓ 6 callersFunction_format_linked_accounts
Format linked account objects from the AWS API response. Args: linked_accounts: List of linked account objects from the AWS API. Ret
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/billing_conductor_operations.py:317
↓ 6 callersFunction_format_pricing_rules
Format pricing rule objects from the AWS API response.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/billing_conductor_operations.py:1058
↓ 6 callersFunction_format_timestamp
None-guard around the shared timestamp_to_utc_iso_string helper. Args: timestamp: A datetime (or None) returned by boto3. Returns:
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/compute_optimizer_automation_operations.py:43
↓ 6 callersMethod_get_base_url
Get the CloudWatch PromQL base URL for a region. Raises: ValueError: If region is malformed or not a recognized AWS region.
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/promql_client.py:116
↓ 6 callersFunction_get_max_file_size
Get max file size from environment or use default. The MAX_FILE_SIZE_MB env var is specified in megabytes for ergonomics.
src/document-loader-mcp-server/awslabs/document_loader_mcp_server/server.py:51
↓ 6 callersFunction_get_run_analysis_data
Get structured analysis data for the specified runs. Args: run_ids: List of run IDs to analyze headroom: Headroom percentage for
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/run_analysis.py:856
↓ 6 callersFunction_get_task_definition_by_service
Get task definition for a specific ECS service. Parameters ---------- cluster_name : str Name of the ECS Cluster. servic
src/ecs-mcp-server/awslabs/ecs_mcp_server/api/troubleshooting_tools/utils.py:371
↓ 6 callersFunction_get_task_definition_by_task
Get task definition for a specific ECS task. Parameters ---------- task_id : str ID of the ECS Task. cluster_name : str
src/ecs-mcp-server/awslabs/ecs_mcp_server/api/troubleshooting_tools/utils.py:421
↓ 6 callersMethod_get_token_client_credentials
Get a token using the client credentials flow. Returns: str: Access token or None if authentication fails Raises:
src/openapi-mcp-server/awslabs/openapi_mcp_server/auth/cognito_auth.py:273
↓ 6 callersFunction_get_validated_hostname
Validate that the provided hostname matches the host stored in the Secrets Manager secret. Ensures the connection target is consistent with the c
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/db_analyzer/mysql.py:470
↓ 6 callersFunction_has_recent_config_checks
Check if there are config check results within the given age threshold.
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/ssm_sap_health/tools.py:214
↓ 6 callersMethod_healthlake_host
Return the expected HealthLake hostname for this client's region.
src/healthlake-mcp-server/awslabs/healthlake_mcp_server/fhir_operations.py:1034
↓ 6 callersFunction_invoke_stream_boto3
Invoke a streaming FES operation and drain its event stream synchronously. Reassembles ``binaryPayloadEvent`` chunks into a single ``bytes`` obje
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/transform_api_client.py:403
↓ 6 callersMethod_is_cache_valid
Check if the language cache is valid and not expired.
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/language_operations.py:378
↓ 6 callersMethod_list_read_sets
List read sets in a HealthOmics sequence store. Args: sequence_store_id: ID of the sequence store Returns: L
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/search/healthomics_search_engine.py:576
↓ 6 callersMethod_list_s3_objects_paginated
List objects in an S3 bucket with pagination support. Args: bucket_name: Name of the S3 bucket prefix: Object key pre
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/search/s3_search_engine.py:642
↓ 6 callersFunction_load_next_steps_prompt
Load next steps guidance from markdown file with optional variable substitution. Args: filename: Name of the markdown file in prompts/nex
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/server.py:929
↓ 6 callersMethod_make_conn
Create a test connection with a mocked data_client.
src/mysql-mcp-server/tests/test_rds_api_connection.py:73
↓ 6 callersFunction_make_context
Build a CredentialContext for tests.
src/aws-healthomics-mcp-server/tests/test_identity_middleware.py:34
↓ 6 callersFunction_make_fake_client
Build a fake httpx.Client class that records the URL it was asked to dial.
src/openapi-mcp-server/tests/test_ssrf_protection.py:789
↓ 6 callersFunction_make_http_status_error
Build an httpx.HTTPStatusError with a mocked response.
src/healthlake-mcp-server/tests/test_server_dataplane_errors.py:29
← previousnext →1,601–1,700 of 35,417, ranked by callers