MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions30,950 in github.com/awslabs/mcp

↓ 25 callersFunctionextract_response_data
Helper function to extract data from CallToolResult content.
src/aws-dataprocessing-mcp-server/tests/handlers/athena/test_athena_query_handler.py:26
↓ 25 callersMethodhandle_request
Handle an incoming Lambda request.
src/mcp-lambda-handler/awslabs/mcp_lambda_handler/mcp_lambda_handler.py:401
↓ 25 callersMethodis_readonly
Check if the server is running in read-only mode.
src/iam-mcp-server/awslabs/iam_mcp_server/context.py:43
↓ 25 callersFunctionlint_workflow_definition
Lint WDL or CWL workflow definitions and return validation findings. This tool validates workflow definitions using appropriate linting tools:
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/workflow_linting.py:390
↓ 25 callersMethodparse_results_from_file
Parse Oracle query results with AWR/V$SQL fallback logic.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/db_analyzer/oracle.py:456
↓ 25 callersMethodraise_for_status
(self)
src/openapi-mcp-server/tests/test_ssrf_protection.py:775
↓ 25 callersFunctionreset_credential_context
Reset the credential context using a token from :func:`set_credential_context`. Restores the contextvar to its previous value so the request's cr
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/aws_utils.py:485
↓ 25 callersFunctionsearch_transaction_spans
Executes a CloudWatch Logs Insights query against trace span records stored in CloudWatch Logs with the OpenTelemetry semantic-convention schema (@dat
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/trace_tools.py:103
↓ 25 callersFunctionset_credential_context
Set the credential context for the current request. Intended for use by the identity middleware to populate the per-request context before an
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/utils/aws_utils.py:467
↓ 25 callersFunctionsetup_aurora_iam_policy_for_current_user
Create or update IAM policy for Aurora access. Maintains one policy per user, adding new clusters as they're created. Args: db_user:
src/mysql-mcp-server/awslabs/mysql_mcp_server/connection/cp_api_connection.py:457
↓ 25 callersMethodvalidate_usage_data_file
Load and validate usage_data file against schema entities. Args: usage_data_path: Path to usage_data.json file schema
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/core/usage_data_validator.py:43
↓ 25 callersFunctionvalidate_uuid_format
Validate UUID format constraints. Args: value: The UUID string to validate field_name: Name of the field for error messages
src/aws-iot-sitewise-mcp-server/awslabs/aws_iot_sitewise_mcp_server/validation_utils.py:44
↓ 24 callersFunction_app_monitor_response
Build a mock get_app_monitor response.
src/cloudwatch-applicationsignals-mcp-server/tests/test_rum_tools.py:14
↓ 24 callersFunction_base_config
(**overrides)
src/openapi-mcp-server/tests/test_new_features.py:113
↓ 24 callersFunction_execute_protected_statement
Execute a SQL statement against a Redshift cluster in a protected fashion. The SQL is first validated by the read-only guard (single-statement en
src/redshift-mcp-server/awslabs/redshift_mcp_server/redshift.py:237
↓ 24 callersFunction_generate_analysis_report
Generate a comprehensive analysis report from the structured data. Args: analysis_data: Structured analysis data from _get_run_analysis_d
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/run_analysis.py:200
↓ 24 callersFunction_setup_page
Set page content via CDP Page.setDocumentContent. AgentCore Chromium enforces Trusted Types, blocking page.set_content() and document.write()
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_integ_browser_session.py:147
↓ 24 callersFunctioncalculate_name_similarity
Calculate similarity score between target name and candidate name. Args: target_name: The name the user is looking for candidate_
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/utils.py:83
↓ 24 callersMethodcreate_boto3_client
Create a boto3 client with the appropriate profile and region. The client is configured with a custom user agent suffix 'awslabs/mcp/aws-data
src/aws-dataprocessing-mcp-server/awslabs/aws_dataprocessing_mcp_server/utils/aws_helper.py:150
↓ 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:69
↓ 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 callersMethodexecute
Execute a query (no-op).
src/oracle-mcp-server/tests/conftest.py:60
↓ 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 callersMethodput_item
(self, *, TableName, Item)
src/aws-healthomics-mcp-server/integration/harness_tests/test_agentcore_e2e_provisioning.py:170
↓ 24 callersFunctionrun_query
Run a SQL query against Microsoft SQL Server.
src/mssql-mcp-server/awslabs/mssql_mcp_server/server.py:134
↓ 24 callersFunctionsuccess_result
Wrap *data* in a ``{success: true, data: ...}`` envelope.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tool_utils.py:161
↓ 23 callersFunction_call_get_credits
Invoke get_credits with the billing and STS clients patched.
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:171
↓ 23 callersFunction_fake_cluster
Build a RedshiftCluster for mocking discover_clusters() return values.
src/redshift-mcp-server/tests/test_redshift.py:41
↓ 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:178
↓ 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 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
↓ 23 callersMethodload
Load language configuration from JSON file.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/core/language_config.py:69
↓ 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 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:4328
↓ 22 callersFunction_reload_compute_optimizer_with_identity_decorator
Reload compute_optimizer_tools with FastMCP.tool patched to return the original function unchanged (identity decorator). This exposes a callable
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:830
↓ 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:160
↓ 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:61
↓ 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:256
↓ 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 callersFunctiontimestamp_to_utc_iso_string
Convert a timestamp to a UTC ISO 8601 formatted string. Handles both epoch seconds (int/float) and datetime objects, as different AWS service
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/time_utils.py:54
↓ 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_flux_query
Validate that a Flux query does not contain write-producing operations. When INFLUXDB_WRITE_MODE is disabled (default), this function rejects Flu
src/timestream-for-influxdb-mcp-server/awslabs/timestream_for_influxdb_mcp_server/server.py:514
↓ 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 callersFunction_create_server
(config, spec=None, extra_spec=None)
src/openapi-mcp-server/tests/test_new_features.py:123
↓ 21 callersFunction_offset_date
Return a UTC calendar date the given number of days from today. Windows for GetCredits are validated against the current date, so tests use o
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:139
↓ 21 callersFunction_parse_list_files_response
Parse the EventStream response from invoke('listFiles'). The API returns a streaming response with content blocks. For listFiles, expect 'tex
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/code_interpreter/files.py:159
↓ 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:423
↓ 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 callersMethodclose
Close the pool (no-op).
src/oracle-mcp-server/tests/conftest.py:92
↓ 21 callersMethodconnect
Connect Playwright to a remote browser via CDP. Uses the bedrock-agentcore SDK to generate SigV4-signed WebSocket headers and the aut
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/browser/connection_manager.py:49
↓ 21 callersFunctionconvert_response_if_needed
Offload an API response to SQL if it exceeds the size threshold. Auto-derives pagination metadata (`next_page_token`, `has_more`, `pages_fetc
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/sql_utils.py:514
↓ 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 callersFunctionresolve_influxdb_config
Resolve InfluxDB configuration from parameters or environment variables. Caller-supplied connection parameters and server environment credentials
src/timestream-for-influxdb-mcp-server/awslabs/timestream_for_influxdb_mcp_server/server.py:277
↓ 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:113
↓ 20 callersFunction_get_credits_client
Build a billing client mock whose get_credits returns the given list.
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:106
↓ 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
← previousnext →201–300 of 30,950, ranked by callers