MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions28,870 in github.com/awslabs/mcp

↓ 24 callersFunctioncreate_sample_cluster_data
Create sample cluster data for testing. Parameters ---------- cluster_name : str Cluster name status : str Clust
src/ecs-mcp-server/tests/unit/utils/async_test_utils.py:132
↓ 24 callersFunctiondetect_mutating_keywords
Return a list of mutating keywords found in the SQL. The SQL is comment-normalized first so a comment wedged between the words of a multi-wor
src/postgres-mcp-server/awslabs/postgres_mcp_server/mutable_sql_detector.py:453
↓ 24 callersMethoderror
Record an error message (no-op for tests).
src/oracle-mcp-server/tests/test_server.py:63
↓ 24 callersMethodesm_kafka_troubleshoot_tool
Comprehensive Kafka ESM troubleshooting tool for both MSK and self-managed Kafka. This unified tool supports both Amazon MSK and self-managed
src/aws-serverless-mcp-server/awslabs/aws_serverless_mcp_server/tools/esm/esm_diagnosis.py:44
↓ 24 callersFunctionget_s3tables_client
Create a boto3 S3 Tables client. Args: region_name: Optional AWS region name. If not provided, uses AWS_REGION environment variable
src/s3-tables-mcp-server/awslabs/s3_tables_mcp_server/utils.py:52
↓ 24 callersFunctionhandle_identity_error
Convert an exception into a structured ErrorResponse. Extracts error code, message, and HTTP status from botocore ClientError. Falls back to
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/identity/error_handler.py:22
↓ 24 callersFunctionload_openapi_spec
Load an OpenAPI specification from a URL or file path. URL fetches are always DNS-pinned: the spec is retrieved by connecting only to the IP
src/openapi-mcp-server/awslabs/openapi_mcp_server/utils/openapi.py:359
↓ 24 callersMethodmanage_aws_glue_data_catalog_databases
Manage AWS Glue Data Catalog databases with both read and write operations. This tool provides operations for managing Glue Data Catalog data
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/handlers/glue/data_catalog_handler.py:79
↓ 24 callersMethodmock_aws_clients
Create a context manager that mocks boto3.client with the provided client dictionary. Args: mock_clients: Dictionary map
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:34
↓ 24 callersFunctionrun_query
Run a SQL query against Microsoft SQL Server.
src/mssql-mcp-server/awslabs/mssql_mcp_server/server.py:130
↓ 24 callersFunctionsuccess_result
Wrap *data* in a ``{success: true, data: ...}`` envelope.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tool_utils.py:160
↓ 23 callersFunction_base_config
(**overrides)
src/openapi-mcp-server/tests/test_new_features.py:92
↓ 23 callersFunctionassert_executable
Validate that the SQL is a single permitted statement. Fails closed: oversized input and any parser error are rejected. Args: sql: T
src/redshift-mcp-server/awslabs/redshift_mcp_server/sql_guard.py:160
↓ 23 callersFunctioncreate_jump_host_cc
Creates an EC2 jump host instance to access an ElastiCache cluster via SSH tunnel. Args: cache_cluster_id (str): ID of the ElastiCache cl
src/elasticache-mcp-server/awslabs/elasticache_mcp_server/tools/cc/connect.py:254
↓ 23 callersFunctioncreate_jump_host_serverless
Creates an EC2 jump host instance to access an ElastiCache serverless cache via SSH tunnel. Args: serverless_cache_name (str): Name of th
src/elasticache-mcp-server/awslabs/elasticache_mcp_server/tools/serverless/connect.py:275
↓ 23 callersFunctionfailure_result
Extract details from an exception and return a structured failure. If *error* carries ``status_code`` and ``body`` attributes (e.g. an HttpError)
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tool_utils.py:177
↓ 23 callersFunctionfilter_table_rows
Filter table rows by matching ALL query words (case-insensitive) across cell values. Handles both flat rows (dict of column→value) and nested row
src/aws-documentation-mcp-server/awslabs/aws_documentation_mcp_server/table_utils.py:407
↓ 23 callersFunctionhandle_aws_api_error
Handle AWS API errors using boto3's built-in exception information. Leverages boto3's structured error handling as documented at: https://bot
src/ccapi-mcp-server/awslabs/ccapi_mcp_server/errors.py:16
↓ 23 callersFunctionhandle_memory_error
Convert an exception into a structured ErrorResponse. Extracts error code, message, and HTTP status from botocore ClientError. Falls back to
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/memory/error_handler.py:22
↓ 23 callersMethodis_resource_mcp_managed
Check if a resource is managed by MCP by looking at Tags and Parameters. This method first checks if the resource has the MCP managed tag.
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/utils/aws_helper.py:302
↓ 23 callersFunctionload_config_from_env
Load configuration from environment variables.
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/config.py:92
↓ 23 callersFunctionmake_lambda_event
Create a realistic API Gateway proxy event for Lambda.
src/mcp-lambda-handler/tests/test_lambda_handler.py:314
↓ 23 callersFunctionmake_pool_conn
Create a PymssqlPoolConnection configured for testing.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:30
↓ 23 callersMethodmodel_validate
(cls, data: Dict)
src/mcp-lambda-handler/awslabs/mcp_lambda_handler/types.py:109
↓ 23 callersMethodsave_scan
Save scan state to local storage. Keeps last 50 scans.
src/security-agent-mcp-server/awslabs/security_agent_mcp_server/state.py:139
↓ 23 callersFunctionsearch
Search a Valkey Search index with auto-detected mode. Defaults to hybrid when embeddings are configured, which combines text matching with se
src/valkey-mcp-server/awslabs/valkey_mcp_server/tools/search_query.py:67
↓ 23 callersMethodstart_batch_translation
Start a batch translation job with S3 integration. Args: input_config: Configuration for input documents in S3 output
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/batch_manager.py:77
↓ 23 callersFunctionvalidate_healthomics_ecr_config
Validate ECR configuration for HealthOmics workflows. Performs a comprehensive validation of the ECR configuration to ensure HealthOmics work
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/ecr_tools.py:1296
↓ 23 callersMethodvalidate_translation
Validate the quality of a translation. This method performs basic validation checks on translation quality, including length ratio an
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/translation_service.py:255
↓ 22 callersFunction_epoch_ms
Return epoch milliseconds for N days ago.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_index_recommender.py:49
↓ 22 callersFunction_make_get_workflow_base_response
Helper to create a base get_workflow mock response with optional overrides.
src/aws-healthomics-mcp-server/tests/test_workflow_management.py:4228
↓ 22 callersFunction_validate_inputs
Validate input parameters.
src/aws-appsync-mcp-server/awslabs/aws_appsync_mcp_server/operations/create_graphql_api.py:106
↓ 22 callersMethodbrowser_snapshot
Capture an accessibility tree snapshot of the current page. Returns a structured text view of the page with element refs. Use the ref
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/browser/observation.py:63
↓ 22 callersMethodcomplete_task
Complete a Human-in-the-Loop (HITL) task. ⚠️ REQUIRES EXPLICIT USER CONFIRMATION. Before calling this tool you MUST present the full
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tools/hitl.py:159
↓ 22 callersMethodcontains_write_operations
Check if SQL contains write operations that modify data or schema. This method analyzes SQL queries to detect operations that would modify
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/utils/sql_analyzer.py:137
↓ 22 callersMethodcreate_boto3_client
Create or retrieve a cached boto3 client with the appropriate profile and region. The client is configured with a custom user agent suffix 'a
src/eks-mcp-server/awslabs/eks_mcp_server/aws_helper.py:52
↓ 22 callersMethoddetect_seasonality_and_trend
Analyze seasonality and extract trend component. Returns: DecompositionResult with seasonality and trend
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/metric_data_decomposer.py:37
↓ 22 callersFunctionextract_response_data
Helper function to extract data from CallToolResult content.
src/aws-dataprocessing-mcp-server/tests/handlers/glue/test_glue_commons_handler.py:12
↓ 22 callersFunctionformat_client_error
Format a botocore ClientError into a readable 'Code: Message' string.
src/aws-for-sap-management-mcp-server/awslabs/aws_for_sap_management_mcp_server/common.py:44
↓ 22 callersFunctiongenerate
Generate DynamoDB entities and repositories from a schema file. Args: schema_path: Path to the schema JSON file output_dir: Outpu
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/codegen.py:293
↓ 22 callersMethodgenerate
Generate a CDK project from the given JSON file. Args: json_file_path: Path to dynamodb_data_model.json Returns:
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cdk_generator/generator.py:57
↓ 22 callersMethodget
Get a database connection from the map.
src/mssql-mcp-server/awslabs/mssql_mcp_server/connection/db_connection_map.py:41
↓ 22 callersMethodget_aws_account_id
Get the AWS account ID for the current session. The account ID is cached after the first call to avoid repeated STS calls. Returns:
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/utils/aws_helper.py:102
↓ 22 callersFunctionget_aws_client
AWS Client handler with multi-profile support. Args: service_name: AWS service name (e.g., 'logs', 'cloudwatch') region_name: AWS
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/aws_common.py:23
↓ 22 callersFunctionget_timestream_influxdb_client
Get the AWS Timestream for InfluxDB client.
src/timestream-for-influxdb-mcp-server/awslabs/timestream_for_influxdb_mcp_server/server.py:247
↓ 22 callersMethodmock_aws_clients
Create a mock for boto3.client that returns specified clients.
src/ecs-mcp-server/tests/unit/api/troubleshooting_tools/test_fetch_network_configuration.py:33
↓ 22 callersMethodprepare_resource_tags
Prepare standard tags for a resource. Args: resource_type: The type of resource being created (e.g., 'EMRCluster', 'GlueJob', 'Cr
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/utils/aws_helper.py:190
↓ 22 callersMethodscrub_text
Scrub sensitive data from a text string. Args: text: The text to scrub Returns: The scrubbed text with sensi
src/aws-serverless-mcp-server/awslabs/aws_serverless_mcp_server/utils/data_scrubber.py:92
↓ 22 callersFunctiontransform_pricing_data
Filter and optimize AWS pricing data for reduced response size. Args: pricing_json_list: List of JSON strings from AWS Pricing API
src/aws-pricing-mcp-server/awslabs/aws_pricing_mcp_server/pricing_transformer.py:58
↓ 22 callersMethodtranslate_text
()
src/amazon-translate-mcp-server/tests/test_translation_service_coverage.py:333
↓ 22 callersFunctionvalidate_datastore_id
Validate AWS HealthLake datastore ID format. Requires exactly DATASTORE_ID_LENGTH alphanumeric characters. Used to constrain the value before
src/healthlake-mcp-server/awslabs/healthlake_mcp_server/fhir_operations.py:55
↓ 22 callersFunctionvalidate_file_read_path
Validate a file path before reading. Ensures the path is absolute, resolves symlinks and traversals, and blocks access to sensitive directori
src/sagemaker-ai-mcp-server/awslabs/sagemaker_ai_mcp_server/path_validation.py:65
↓ 22 callersFunctionvalidate_string_length
Validate string length constraints. Args: value: The string to validate min_length: Minimum allowed length max_length: Ma
src/aws-iot-sitewise-mcp-server/awslabs/aws_iot_sitewise_mcp_server/validation_utils.py:101
↓ 21 callersFunctionadd_search_intent_to_search_request
Adds the search_intent query parameter to the search_url if search_intent is a string. :param search_url: URL to be used for search_documentation
src/aws-documentation-mcp-server/awslabs/aws_documentation_mcp_server/util.py:404
↓ 21 callersFunctioncalculate_cost
Calculate cost and performance metrics from input data.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/cost_calculator.py:35
↓ 21 callersFunctioncreate_mcp_server
Create and configure the FastMCP server (synchronous wrapper). This is a synchronous convenience wrapper that calls :func:`create_mcp_server_
src/openapi-mcp-server/awslabs/openapi_mcp_server/server.py:536
↓ 21 callersMethoddetect_language
Detect the language of the given text. Args: text: Text to analyze for language detection Returns: LanguageD
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/translation_service.py:179
↓ 21 callersFunctiondetect_mutating_keywords
Return a list of mutating keywords found in the SQL (excluding comments).
src/oracle-mcp-server/awslabs/oracle_mcp_server/mutable_sql_detector.py:220
↓ 21 callersFunctionexpand_service_operation_wildcard_patterns
Expand wildcard patterns for service operation targets with pagination support. Args: targets: List of target dictionaries unix_s
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/audit_utils.py:714
↓ 21 callersFunctionfetch_datasets
Fetch and cache datasets from RODA. Uses the official NDJSON index file which contains all datasets pre-parsed. Thread-safe: uses asyncio.Loc
src/roda-mcp-server/awslabs/roda_mcp_server/server.py:66
↓ 21 callersMethodget_config
Get config for the current region.
src/security-agent-mcp-server/awslabs/security_agent_mcp_server/state.py:98
↓ 21 callersFunctionget_pricing
Get pricing information from AWS Price List API. Args: service_code: The service code (e.g., 'AmazonES' for OpenSearch, 'AmazonS3' for S3
src/aws-pricing-mcp-server/awslabs/aws_pricing_mcp_server/server.py:387
↓ 21 callersMethodinsert_one
Mock insert_one operation. Args: document: Document to insert Returns: MagicMock: A mock InsertOneResult
src/documentdb-mcp-server/tests/conftest.py:189
↓ 21 callersFunctionlist_runs
List workflow runs. Args: ctx: MCP context for error reporting max_results: Maximum number of results to return (default: 10)
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/workflow_execution.py:364
↓ 21 callersMethodvalidate_parameter_count
Validate parameter count matches range condition requirements. Args: pattern: AccessPattern object to validate patter
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/core/gsi_validator.py:508
↓ 21 callersFunctionvalidate_template
Validate a CloudFormation template using cfn-lint. Args: template_content: CloudFormation template as YAML or JSON string regions
src/aws-iac-mcp-server/awslabs/aws_iac_mcp_server/tools/cloudformation_validator.py:23
↓ 20 callersFunction_build_timeline_mocks
Build common mocks for HealthOmics client, logs, and MCP context. Args: task_count: Number of task events to include. Use 1 for single-ta
src/aws-healthomics-mcp-server/tests/test_run_timeline_output.py:107
↓ 20 callersFunction_create_server
(config, spec=None, extra_spec=None)
src/openapi-mcp-server/tests/test_new_features.py:102
↓ 20 callersFunction_strip_sql_comments
Remove SQL comments and string literal contents for security analysis. Parses character-by-character to correctly handle ``--`` and ``/*`` th
src/oracle-mcp-server/awslabs/oracle_mcp_server/mutable_sql_detector.py:119
↓ 20 callersMethodbuild_pk_for_lookup
Build partition key for lookups
src/dynamodb-mcp-server/tests/repo_generation_tool/fixtures/expected_outputs/python/saas/base_repository.py:72
↓ 20 callersMethodbuild_sk_for_lookup
Build sort key for lookups
src/dynamodb-mcp-server/tests/repo_generation_tool/fixtures/expected_outputs/python/saas/base_repository.py:80
↓ 20 callersMethodconfigure
Authenticate and connect to AWS Transform. Use when the user needs to set up or re-establish a connection. Two modes: - "cookie": imm
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tools/configure.py:211
↓ 20 callersFunctionexecute_training_action
Execute a training action for anomaly detection models in AWS IoT SiteWise. This specialized function handles training actions on anomaly detecti
src/aws-iot-sitewise-mcp-server/awslabs/aws_iot_sitewise_mcp_server/tools/sitewise_executions.py:301
↓ 20 callersFunctionexpand_service_wildcard_patterns
Expand wildcard patterns for service targets with pagination support. Args: targets: List of target dictionaries unix_start: Star
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/audit_utils.py:433
↓ 20 callersMethodfind
Mock find operation that applies actual filtering. Args: query: Query filter projection: Fields to include/exclude
src/documentdb-mcp-server/tests/conftest.py:50
↓ 20 callersMethodgenerate_chart
Generate SVG Gantt chart for tasks. Args: tasks: List of task dictionaries with timing data. Each task should have:
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/visualization/gantt_generator.py:56
↓ 20 callersFunctionget_anomalies
Retrieves cost anomalies using the AWS Cost Explorer GetAnomalies API. Args: ctx: The MCP context ce_client: Cost Explorer client
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_anomaly_tools.py:229
↓ 20 callersMethodget_language_metrics
Get usage metrics for language operations. Args: language_pair: Specific language pair (e.g., "en-es") or None for all
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/language_operations.py:150
↓ 20 callersFunctionlist_invoice_summaries
List AWS invoice summaries for an account or a single invoice. Retrieves invoice-level (header) details without line items. The required API
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/invoicing_operations.py:78
↓ 20 callersMethodmanage_aws_glue_classifiers
r"""Manage AWS Glue classifiers to determine data formats and schemas. This tool provides operations for AWS Glue classifiers, which help det
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/handlers/glue/crawler_handler.py:510
↓ 20 callersMethodreadonly_mode
Check if the server is running in readonly mode. Returns: True if readonly mode is enabled, False otherwise
src/elasticache-mcp-server/awslabs/elasticache_mcp_server/context.py:33
↓ 20 callersFunctionresolve_single_content
Resolve a single content input to its content. Detects the input type and dispatches to the appropriate reader. For inline content in text mo
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/content_resolver.py:198
↓ 20 callersMethodsmart_translate_workflow
Execute smart translation workflow with automatic language detection and quality validation. Workflow Steps: 1. Detect source languag
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/workflow_orchestrator.py:326
↓ 20 callersFunctionvalidate_asset_id
Validate asset ID format - accepts UUID or external ID format.
src/aws-iot-sitewise-mcp-server/awslabs/aws_iot_sitewise_mcp_server/validation.py:33
↓ 20 callersFunctionvalidate_aws_config
Validate AWS configuration.
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/config.py:184
↓ 20 callersFunctionvalkey_write
Execute a mutating Valkey command. Write tier — allowlisted mutations only. Destructive commands (FLUSHALL, SHUTDOWN, etc.) are blocked. Disa
src/valkey-mcp-server/awslabs/valkey_mcp_server/tools/valkey_write.py:142
↓ 19 callersFunction_normalize_run_ids
Normalize run_ids parameter to a list of strings. Handles various input formats: - List of strings: ["run1", "run2"] - JSON string: '["ru
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/run_analysis.py:64
↓ 19 callersFunction_parse
Extract the parsed JSON payload from an MCP result envelope.
src/aws-transform-mcp-server/tests/test_hitl.py:39
↓ 19 callersFunction_parse_time
Parse ISO 8601 time string to datetime. Assumes UTC if no timezone.
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/rum_tools.py:424
↓ 19 callersFunction_reload_ce_with_identity_decorator
Reload cost_explorer_tools with FastMCP.tool patched to return the original function unchanged (identity decorator). This exposes a callable 'cos
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_tools.py:838
↓ 19 callersMethodclose
Close the pool (no-op).
src/oracle-mcp-server/tests/conftest.py:92
↓ 19 callersFunctionconvert_temporal_fields
Convert string temporal fields to appropriate datetime objects based on Arrow schema. Args: rows: List of row dictionaries with string te
src/s3-tables-mcp-server/awslabs/s3_tables_mcp_server/engines/pyiceberg.py:28
↓ 19 callersFunctioncreate_operation_prompt
Create and register an operation prompt with the server. Args: server: MCP server instance api_name: Name of the API oper
src/openapi-mcp-server/awslabs/openapi_mcp_server/prompts/generators/operation_prompts.py:443
↓ 19 callersMethodcreate_test_file
Helper method to create test GenomicsFile objects.
src/aws-healthomics-mcp-server/tests/test_scoring_engine.py:34
↓ 19 callersFunctionformat_and_validate
Validate LLM-provided content against the component's output schema. Normalize the structure (preprocess) and auto-fill boilerplate.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/hitl_schemas.py:969
↓ 19 callersFunctionget_status_guidance
Get guidance message based on connection status. This function returns appropriate guidance messages for users based on the current status of
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/codeconnections.py:57
↓ 19 callersMethodget_translate_client
Get Amazon Translate client. Returns: boto3 Translate client instance Raises: AuthenticationError: If creden
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/aws_client.py:300
↓ 19 callersFunctionhandle_client_error
Handle boto3 ClientError exceptions. Args: ctx: The MCP context e: The ClientError exception operation: The operation tha
src/aws-support-mcp-server/awslabs/aws_support_mcp_server/errors.py:24
↓ 19 callersFunctioninternal_create_connection
Create or retrieve a cached database connection.
src/mssql-mcp-server/awslabs/mssql_mcp_server/server.py:447
↓ 19 callersFunctionlog_with_request_id
Log a message with the request ID from the context. Args: ctx: The MCP context containing the request ID level: The log level (fr
src/sagemaker-ai-mcp-server/awslabs/sagemaker_ai_mcp_server/logging_helper.py:33
← previousnext →201–300 of 28,870, ranked by callers