Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/mcp
/ functions
Functions
32,024 in github.com/awslabs/mcp
⨍
Functions
32,024
◇
Types & classes
5,353
↳
Endpoints
3,782
Method
test_calculate_match_score_multiple_patterns
Test match score calculation with multiple patterns.
src/aws-healthomics-mcp-server/tests/test_pattern_matcher.py:89
Method
test_calculate_match_score_single_pattern
Test match score calculation with single pattern.
src/aws-healthomics-mcp-server/tests/test_pattern_matcher.py:72
Method
test_calculate_progress
Test progress calculation for different job statuses.
src/amazon-translate-mcp-server/tests/test_batch_manager.py:508
Method
test_calculate_retry_delay
Test retry delay calculation.
src/amazon-translate-mcp-server/tests/test_translation_service.py:427
Function
test_calculate_route
Test the calculate_route tool.
src/aws-location-mcp-server/tests/test_server.py:672
Function
test_calculate_route_error
Test the calculate_route tool when an error occurs.
src/aws-location-mcp-server/tests/test_server.py:736
Function
test_calculate_route_no_client
Test calculate_route when client is not initialized.
src/aws-location-mcp-server/tests/test_server.py:761
Function
test_calculate_route_no_routes
Test calculate_route when no routes are found.
src/aws-location-mcp-server/tests/test_server.py:775
Function
test_calculate_route_raw_mode
Test calculate_route with raw mode.
src/aws-location-mcp-server/tests/test_server.py:793
Function
test_calculate_route_with_leg_geometry
Test calculate_route with leg geometry enabled.
src/aws-location-mcp-server/tests/test_server.py:961
Method
test_calculate_savings_basic
Test basic savings calculation.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:124
Method
test_calculate_savings_minimum_billing
Test savings calculation with minimum billing time.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:152
Method
test_calculate_savings_no_savings
Test when recommended instance costs more.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:138
Method
test_calculate_savings_pricing_unavailable
Test when pricing is unavailable.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:168
Method
test_calculate_score_basic
Test basic score calculation.
src/aws-healthomics-mcp-server/tests/test_scoring_engine.py:54
Method
test_calculate_seasonal_strength_direct_zero_cycles
Test seasonal strength calculation directly with zero cycles condition.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_seasonal_detector.py:486
Method
test_calculate_seasonal_strength_edge_case
Test seasonal strength with edge case that triggers n_cycles check.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_decomposer_trend.py:217
Method
test_calculate_seasonal_strength_exactly_one_cycle
Test seasonal strength with exactly one seasonal cycle.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_decomposer_trend.py:238
Method
test_calculate_seasonal_strength_insufficient_cycles
Test seasonal strength calculation when n_cycles is exactly 0.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_seasonal_detector.py:459
Method
test_calculate_seasonal_strength_negative_period
Test seasonal strength with negative seasonal period.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_decomposer_trend.py:228
Method
test_calculate_seasonal_strength_single_value_large_period
Test seasonal strength calculation with single value and large period.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_seasonal_detector.py:468
Method
test_calculate_seasonal_strength_values_shorter_than_period
Test seasonal strength calculation when values array is shorter than seasonal period.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_seasonal_detector.py:477
Method
test_calculate_seasonal_strength_zero_cycles
Test seasonal strength calculation with zero cycles.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_seasonal_detector.py:424
Method
test_calculate_start_time
Test start time calculation for different ranges.
src/amazon-translate-mcp-server/tests/test_language_operations.py:384
Method
test_calculate_storage_cost_dynamic
Test dynamic storage cost calculation.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:102
Method
test_calculate_storage_cost_pricing_unavailable
Test that None is returned when pricing is unavailable.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:115
Method
test_calculate_storage_cost_static
Test static storage cost calculation.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:89
Method
test_calculate_supported_pairs
Test supported pairs calculation.
src/amazon-translate-mcp-server/tests/test_language_operations.py:408
Method
test_calculate_task_cost_above_minimum
Test cost calculation when runtime exceeds minimum.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:62
Method
test_calculate_task_cost_basic
Test basic task cost calculation.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:38
Method
test_calculate_task_cost_minimum_billing
Test that minimum billing time of 60 seconds is applied.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:45
Method
test_calculate_task_cost_pricing_unavailable
Test that None is returned when pricing is unavailable.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:70
Method
test_calculate_task_cost_zero_runtime
Test that zero runtime uses minimum billing time.
src/aws-healthomics-mcp-server/tests/test_cost_analyzer.py:54
Method
test_call_api_clienterror_returns_structured_dict
ClientError from boto3 should now return structured JSON, not re-raise.
src/security-agent-mcp-server/tests/test_server.py:694
Method
test_call_api_invalid_operation
Rejects invalid operation names.
src/security-agent-mcp-server/tests/test_server.py:211
Method
test_call_api_non_clienterror_still_raises
RuntimeError (non-ClientError) must still bubble up — only ClientError is caught.
src/security-agent-mcp-server/tests/test_server.py:719
Method
test_call_api_success
Calls API successfully.
src/security-agent-mcp-server/tests/test_server.py:198
Method
test_call_api_underlying_error
Underlying client error rethrows via ctx.error.
src/security-agent-mcp-server/tests/test_server.py:588
Function
test_call_aws_awscli_customization_error
Test call_aws handles error response from AWS CLI customization command.
src/aws-api-mcp-server/tests/test_server.py:796
Function
test_call_aws_awscli_customization_success
Test call_aws returns success response for AWS CLI customization command.
src/aws-api-mcp-server/tests/test_server.py:755
Function
test_call_aws_both_validation_failures_and_constraints
Test call_aws returns error for both validation failures and failed constraints.
src/aws-api-mcp-server/tests/test_server.py:715
Function
test_call_aws_delegates_to_helper
Test call_aws delegates to call_aws_helper with None credentials.
src/aws-api-mcp-server/tests/test_server.py:1121
Function
test_call_aws_denied_when_index_unavailable
Fail closed: deny execution when the security policy index failed to initialize. Regression test for the policy fail-open advisory. When the read
src/aws-api-mcp-server/tests/test_security_policy.py:627
Function
test_call_aws_ecs_deploy_error_sanitization
Test error sanitization.
src/aws-api-mcp-server/tests/test_server.py:1468
Function
test_call_aws_eks_update_kubeconfig_validates_kubeconfig_path
Test that eks update-kubeconfig validates the kubeconfig path via the awscli_patch.
src/aws-api-mcp-server/tests/test_server.py:1504
Function
test_call_aws_exceeds_max_batch_commands
Test call_aws with more than MAX_BATCH_COMMANDS.
src/aws-api-mcp-server/tests/test_server.py:1226
Function
test_call_aws_execution_error_awsmcp_error
Test call_aws returns error details for AwsApiMcpError during execution.
src/aws-api-mcp-server/tests/test_server.py:509
Function
test_call_aws_execution_error_generic_exception
Test call_aws returns error details for generic exception during execution.
src/aws-api-mcp-server/tests/test_server.py:553
Function
test_call_aws_expand_regions_exception
Test call_aws when expand_regions_if_needed raises AwsRegionResolutionError.
src/aws-api-mcp-server/tests/test_server.py:1241
Function
test_call_aws_failed_constraints
Test call_aws returns error for failed constraints.
src/aws-api-mcp-server/tests/test_server.py:679
Function
test_call_aws_help_command_failure
Test call_aws raises error when help command fails.
src/aws-api-mcp-server/tests/test_server.py:1305
Function
test_call_aws_help_command_success
Test call_aws returns success response for help command.
src/aws-api-mcp-server/tests/test_server.py:1284
Function
test_call_aws_helper_passes_region_to_customization
Ensure region is forwarded to execute_awscli_customization when using customizations.
src/aws-api-mcp-server/tests/test_server.py:192
Function
test_call_aws_helper_passes_region_to_interpret
Ensure region is forwarded to interpret_command for normal operations.
src/aws-api-mcp-server/tests/test_server.py:237
Function
test_call_aws_helper_with_credentials
Test call_aws_helper passes credentials to interpret_command.
src/aws-api-mcp-server/tests/test_server.py:1049
Function
test_call_aws_helper_without_credentials
Test call_aws_helper works without credentials.
src/aws-api-mcp-server/tests/test_server.py:1087
Function
test_call_aws_mixed_valid_invalid_commands
Test call_aws with one valid and one invalid command.
src/aws-api-mcp-server/tests/test_server.py:1195
Function
test_call_aws_no_credentials_error
Test call_aws returns error when no AWS credentials are found.
src/aws-api-mcp-server/tests/test_server.py:474
Function
test_call_aws_non_aws_command
Test call_aws with command that doesn't start with 'aws'.
src/aws-api-mcp-server/tests/test_server.py:589
Function
test_call_aws_response_serialization_with_error
Test CallAWSResponse serialization with error.
src/aws-api-mcp-server/tests/common/test_models.py:64
Function
test_call_aws_response_serialization_with_response
Test CallAWSResponse serialization with response.
src/aws-api-mcp-server/tests/common/test_models.py:50
Function
test_call_aws_response_validation_error
Test CallAWSResponse validation fails when neither response nor error provided.
src/aws-api-mcp-server/tests/common/test_models.py:44
Function
test_call_aws_response_with_both
Test CallAWSResponse with both response and error.
src/aws-api-mcp-server/tests/common/test_models.py:32
Function
test_call_aws_response_with_error
Test CallAWSResponse with error field.
src/aws-api-mcp-server/tests/common/test_models.py:23
Function
test_call_aws_response_with_response
Test CallAWSResponse with response field.
src/aws-api-mcp-server/tests/common/test_models.py:10
Function
test_call_aws_runs_multiple_commands
Test call_aws returns success for multiple commands.
src/aws-api-mcp-server/tests/test_server.py:1143
Function
test_call_aws_security_policy_deny
Test call_aws when security policy denies the operation.
src/aws-api-mcp-server/tests/test_security_policy.py:540
Function
test_call_aws_security_policy_elicit
Test call_aws when security policy requires elicitation.
src/aws-api-mcp-server/tests/test_security_policy.py:574
Function
test_call_aws_success
Test call_aws returns success for a valid read-only command.
src/aws-api-mcp-server/tests/test_server.py:74
Function
test_call_aws_validation_error_awsmcp_error
Test call_aws returns error details for AwsApiMcpError during validation.
src/aws-api-mcp-server/tests/test_server.py:438
Function
test_call_aws_validation_error_generic_exception
Test call_aws returns error details for generic exception during validation.
src/aws-api-mcp-server/tests/test_server.py:457
Function
test_call_aws_validation_failures
Test call_aws returns error for validation failures.
src/aws-api-mcp-server/tests/test_server.py:643
Function
test_call_aws_wildcard_region_expansion
Test call_aws expands wildcard regions correctly.
src/aws-api-mcp-server/tests/test_server.py:1170
Function
test_call_aws_with_consent_and_accept
Test call_aws with a mutating action the policy requires consent for (accepted).
src/aws-api-mcp-server/tests/test_server.py:293
Function
test_call_aws_with_consent_and_reject
Test call_aws with a mutating action the policy requires consent for (rejected).
src/aws-api-mcp-server/tests/test_server.py:352
Function
test_call_aws_without_consent
Test call_aws with a mutating action the policy allows without consent.
src/aws-api-mcp-server/tests/test_server.py:391
Method
test_call_fes_raises_on_none_config
(self)
src/aws-transform-mcp-server/tests/test_pyright_fixes.py:37
Method
test_call_generic
call() dispatches PascalCase op names to snake_case boto3 methods.
src/security-agent-mcp-server/tests/test_aws_client.py:120
Method
test_call_invalid_operation
Operation names that don't match the regex raise ValueError.
src/security-agent-mcp-server/tests/test_aws_client.py:131
Method
test_call_some_proc_is_detected
``CALL some_proc()`` — stored proc body can mutate.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:514
Method
test_call_tcp_happy_path
call_tcp resolves creds, signs, and sends request.
src/aws-transform-mcp-server/tests/test_pyright_fixes.py:56
Method
test_call_tcp_raises_on_none_config
(self)
src/aws-transform-mcp-server/tests/test_pyright_fixes.py:45
Method
test_call_tool_exception
Test tool call failure is handled gracefully. Verifies that when the MCP client tool call fails, the function raises the exception.
src/aws-iac-mcp-server/tests/client/test_aws_knowledge_client.py:72
Function
test_call_tool_formats_validation_errors
Test that call_tool intercepts ValidationError and reformats using format_validation_errors.
src/dynamodb-mcp-server/tests/test_dynamodb_server.py:2224
Method
test_call_tool_handler_client_error_resource_not_found
Test call_tool handler with ResourceNotFoundException.
src/healthlake-mcp-server/tests/test_server_mcp_handlers.py:129
Method
test_call_tool_handler_client_error_validation
Test call_tool handler with ValidationException.
src/healthlake-mcp-server/tests/test_server_mcp_handlers.py:148
Method
test_call_tool_handler_generic_exception
Test call_tool handler with generic exception.
src/healthlake-mcp-server/tests/test_server_mcp_handlers.py:188
Method
test_call_tool_handler_no_credentials_error
Test call_tool handler with NoCredentialsError.
src/healthlake-mcp-server/tests/test_server_mcp_handlers.py:171
Method
test_call_tool_handler_validation_error
Test call_tool handler with validation error.
src/healthlake-mcp-server/tests/test_server_mcp_handlers.py:109
Function
test_call_tool_preserves_non_validation_errors
Test that call_tool does NOT reformat non-ValidationError ToolErrors.
src/dynamodb-mcp-server/tests/test_dynamodb_server.py:2260
Method
test_call_unknown_operation_rejected
Operations not in the SDK are rejected.
src/security-agent-mcp-server/tests/test_aws_client.py:138
Method
test_callback_missing_code
Callback without code parameter sets error.
src/aws-transform-mcp-server/tests/test_oauth.py:342
Method
test_callback_state_mismatch
Callback with wrong state parameter sets error.
src/aws-transform-mcp-server/tests/test_oauth.py:363
Method
test_callback_success
Successful callback sets auth_code on state.
src/aws-transform-mcp-server/tests/test_oauth.py:384
Method
test_callback_with_error_param
Callback with error parameter sets state.error.
src/aws-transform-mcp-server/tests/test_oauth.py:321
Method
test_caller_endpoint_string_is_never_used_for_connection
On successful match, the connection is built from the AWS-sourced host string.
src/postgres-mcp-server/tests/test_server_internal_functions.py:499
Method
test_caller_metadata_overrides_derived_envelope
Explicit kwargs to convert_response_if_needed take precedence over derived values.
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:935
Function
test_caller_next_token_injected_into_first_request
Caller's next_token reaches the first boto3 call for every paginated CE op.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:1094
Method
test_caller_next_token_is_used_on_first_request
Caller-supplied next_token must be injected into the first boto3 call.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:368
Method
test_caller_supplied_values_are_not_overridden
A caller-supplied stateless_http/transport_security value is left untouched.
src/aws-healthomics-mcp-server/integration/harness_tests/test_entrypoint_header_shim.py:168
← previous
next →
11,301–11,400 of 32,024, ranked by callers