Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/mcp
/ functions
Functions
35,417 in github.com/awslabs/mcp
⨍
Functions
35,417
◇
Types & classes
5,673
↳
Endpoints
3,994
Method
test_binary_payload_not_inlined
(self, mock_stream, _cfg, handler, ctx, tmp_path)
src/aws-transform-mcp-server/tests/test_download_artifact.py:143
Method
test_binary_round_trips_for_non_utf8_bytes
Bytes that are not valid UTF-8 survive intact, which errors='replace' destroyed.
src/db2-mcp-server/tests/test_ibm_db_connection.py:200
Method
test_binlog_is_detected
``BINLOG '...'`` — injects a raw binary log event.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1019
Method
test_blank_cli_value_uses_default_session_duration
A whitespace-only session-duration flag value falls back to the default.
src/aws-healthomics-mcp-server/tests/test_config_jwt_role_resolution.py:89
Method
test_blank_end_date_means_none_reported
A blank endDate string is treated as no endDate, not as unreadable.
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:457
Method
test_blank_lines_in_pre_do_not_produce_empty_values
A run of newlines is one boundary.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1699
Method
test_blank_sources_are_treated_as_unset
Whitespace-only source values are treated as unset (resolution disabled).
src/aws-healthomics-mcp-server/tests/test_config_jwt_role_resolution.py:211
Method
test_blank_value_uses_single_tenant
An empty/whitespace-only flag value yields single-tenant mode.
src/aws-healthomics-mcp-server/tests/test_config_multitenant_parsing.py:146
Method
test_blob_value
Should extract blobValue.
src/mysql-mcp-server/tests/test_server_helpers.py:44
Method
test_block_comment
Block comments are stripped.
src/db2-mcp-server/tests/test_mutable_sql_detector.py:417
Function
test_block_comment_inside_string_literal_not_stripped
Block comment markers inside a string literal are preserved.
src/oracle-mcp-server/tests/test_server.py:430
Method
test_block_comment_multiline
A multi-line block comment is stripped.
src/db2-mcp-server/tests/test_mutable_sql_detector.py:465
Method
test_block_elements_are_value_boundaries
Sibling block elements in one cell are joined rather than fused.
src/aws-documentation-mcp-server/tests/test_table_utils.py:746
Method
test_block_elements_in_single_row_header_delimited
Sibling <p> values in a single-row <thead> cell are delimited, not fused.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1470
Method
test_blocked_admin_command
(self)
src/valkey-mcp-server/tests/test_command_runners.py:67
Method
test_blocked_command
(self)
src/valkey-mcp-server/tests/integration/test_command_runners_live.py:134
Method
test_blocked_config
(self)
src/valkey-mcp-server/tests/test_command_runners.py:145
Method
test_blocked_dir_aws_raises_valueerror
(self)
src/aws-transform-mcp-server/tests/test_file_validation.py:179
Method
test_blocked_dir_logs_warning
(self)
src/aws-transform-mcp-server/tests/test_file_validation.py:81
Method
test_blocked_dir_logs_warning
(self)
src/aws-transform-mcp-server/tests/test_file_validation.py:218
Method
test_blocked_dir_raises_valueerror
(self)
src/aws-transform-mcp-server/tests/test_file_validation.py:51
Method
test_blocked_dir_raises_valueerror
(self)
src/aws-transform-mcp-server/tests/test_file_validation.py:172
Method
test_blocked_dirs_use_realpath
(self)
src/eks-mcp-server/tests/test_path_validation.py:83
Method
test_blocked_eval
(self)
src/valkey-mcp-server/tests/test_command_runners.py:141
Method
test_blocked_eval
(self)
src/valkey-mcp-server/tests/integration/test_command_runners_live.py:193
Method
test_blocked_filename_logs_warning
(self)
src/aws-transform-mcp-server/tests/test_file_validation.py:92
Method
test_blocked_filename_on_write_raises_valueerror
Sensitive filenames must be blocked on writes, not just reads.
src/aws-transform-mcp-server/tests/test_file_validation.py:250
Method
test_blocked_filename_raises_valueerror
(self)
src/aws-transform-mcp-server/tests/test_file_validation.py:58
Method
test_blocked_flushall
(self)
src/valkey-mcp-server/tests/test_command_runners.py:132
Method
test_blocked_flushall
(self)
src/valkey-mcp-server/tests/integration/test_command_runners_live.py:189
Method
test_blocked_patterns_processing
Test blocked patterns configuration.
src/amazon-translate-mcp-server/tests/test_config.py:566
Method
test_blocked_save_path_raises
(self)
src/aws-transform-mcp-server/tests/test_tool_utils.py:550
Method
test_blocked_shutdown
(self)
src/valkey-mcp-server/tests/test_command_runners.py:137
Function
test_blocked_statement_is_rejected_in_read_only_mode
Every non-read statement type must be rejected, exercised by real SQL.
src/postgres-mcp-server/tests/test_sql_guard_read_only_corpus.py:428
Function
test_blocked_statement_is_write_set_not_dangerous_set
These are write-set members, so write mode must let them past the guard. Pins the mode contract per statement type: had one of them belonged in t
src/postgres-mcp-server/tests/test_sql_guard_read_only_corpus.py:439
Function
test_blocked_statement_produces_the_expected_node
The probe must exercise the node type it claims to. Without this, a probe whose SQL quietly parses into a different node (as ``ALTER TABLE ..
src/postgres-mcp-server/tests/test_sql_guard_read_only_corpus.py:413
Method
test_blocked_write_command
(self)
src/valkey-mcp-server/tests/test_command_runners.py:62
Method
test_blocklist_covers_both_home_sources
Sensitive directories are blocked under every candidate home.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:79
Method
test_blocklist_covers_expected_location
Every location reported by AWS Security is on the blocklist.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:31
Method
test_blocklist_entries_are_fully_resolved
Entries are stored resolved so symlinked system paths still match.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:35
Method
test_blocklist_has_no_duplicates
The two home sources normally agree, so entries must be deduplicated.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:40
Method
test_blocklist_is_checked_before_existence
A sensitive path that does not exist is reported as sensitive. Callers have historically special-cased "does not exist" errors in or
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:227
Method
test_body_read_failures_are_retryable
A response body cut short or corrupted in transit is transient.
src/billing-cost-management-mcp-server/tests/utilities/test_aws_service_base.py:730
Method
test_bogus_endpoint_rejected
Connection with an attacker-controlled endpoint must be rejected.
src/mysql-mcp-server/tests/test_endpoint_validation.py:312
Method
test_bogus_endpoint_rejected_iam_auth
IAM-auth connections must also reject an attacker-controlled endpoint. The IAM path is the higher-value target — a bogus endpoint would
src/mysql-mcp-server/tests/test_endpoint_validation.py:331
Method
test_bool_wraps_to_resolved
(self)
src/aws-transform-mcp-server/tests/test_hitl_schemas.py:591
Method
test_bool_wraps_to_resolved
(self)
src/aws-transform-mcp-server/tests/test_hitl_schemas.py:602
Method
test_boolean_parsing
Test boolean environment variable parsing.
src/amazon-translate-mcp-server/tests/test_config.py:149
Method
test_boolean_value
Should extract booleanValue.
src/mysql-mcp-server/tests/test_server_helpers.py:39
Function
test_both_cost_tables_store_dates
A midnight DAILY timestamp is stored as the date getCostAndUsage returns.
src/billing-cost-management-mcp-server/tests/utilities/test_ce_time_period_format.py:134
Method
test_both_dates_required
The date-pair form requires start_date and end_date together.
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:748
Method
test_both_ends_wildcards
Test wildcards at both beginning and end.
src/cloudwatch-applicationsignals-mcp-server/tests/test_audit_utils.py:3151
Method
test_both_flags_rejected
A role that is both superuser and rds_superuser is rejected.
src/postgres-mcp-server/tests/test_privilege_guardrail.py:151
Method
test_both_forms_returned_keeps_both_and_notes_the_stripped_one
When user:a and a are both stored keys, both come back and only a is noted.
src/billing-cost-management-mcp-server/tests/tools/test_cost_allocation_tags_tools.py:837
Function
test_both_headers_validated_independently
Test that both host and origin headers are validated independently.
src/aws-api-mcp-server/tests/middleware/test_http_header_validation_middleware.py:147
Function
test_both_layers_select_identical_spans
Guard and executor rewrite exactly the same character ranges.
src/postgres-mcp-server/tests/test_named_params.py:78
Method
test_both_models_allowed_in_us_west_2
Both reranking models are offered in us-west-2.
src/bedrock-kb-retrieval-mcp-server/tests/test_managed_kb.py:335
Method
test_both_operator_and_function_error
Test that having both operator and function (non-size) is caught.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_filter_expression_validator.py:591
Method
test_both_operator_and_function_non_size
Test both operator and function set (non-size).
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_filter_expression_validator.py:469
Method
test_both_params_error
Test error when both container registry params are provided.
src/aws-healthomics-mcp-server/tests/test_validation_utils.py:2064
Method
test_both_paths_relative
Test that error message shows both paths when both are relative.
src/cloudwatch-applicationsignals-mcp-server/tests/test_enablement_tools.py:190
Method
test_both_permission_updates_fail
Test handling when both registry policy and template creation fail.
src/aws-healthomics-mcp-server/tests/test_ecr_tools.py:5180
Method
test_both_pk_and_sk_mismatch
Both PK and SK mismatches produce two errors.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_gsi_validator.py:744
Method
test_both_policies_invalid_returns_not_usable
Property: Both policies invalid returns healthomics_usable=False. Feature: ecr-container-tools, Property: HealthOmics Usability Evaluation
src/aws-healthomics-mcp-server/tests/test_ecr_utils.py:932
Method
test_both_policies_none_returns_not_usable
Property: Both policies None returns healthomics_usable=False. Feature: ecr-container-tools, Property: HealthOmics Usability Evaluation
src/aws-healthomics-mcp-server/tests/test_ecr_utils.py:905
Method
test_both_quoted
Test that both-quoted multi-part name is valid.
src/postgres-mcp-server/tests/test_server_internal_functions.py:2290
Function
test_both_rewrites_agree_on_the_parameterized_corpus
The guard and the executor must treat the same colons as placeholders.
src/postgres-mcp-server/tests/test_sql_guard_read_only_corpus.py:909
Method
test_both_segment_and_nfg
Test with both segment and NFG provided.
src/aws-network-mcp-server/tests/tools/cloud_wan/test_get_cloudwan_routes.py:147
Function
test_both_service_name_and_sid_raises
Verify providing both service_name and sid raises ValueError.
src/oracle-mcp-server/tests/test_oracledb_pool_connection.py:80
Method
test_both_set_enable_wins
When both ENABLE and DISABLE are set, ENABLE wins.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_server_integration.py:61
Method
test_both_settings_present_fails
Test both inline and S3 settings fails validation.
src/aws-healthomics-mcp-server/tests/test_run_batch.py:256
Method
test_both_shapes_run_the_same_server
Wrapping the command must not change which code is under test.
src/redshift-mcp-server/tests/test_e2e_verdict.py:182
Method
test_both_sources_mixed_cli_and_env_raise_conflict
A conflict is detected even when the two sources come from different origins.
src/aws-healthomics-mcp-server/tests/test_config_jwt_role_resolution.py:245
Method
test_both_sources_via_cli_raise_conflict
Configuring both sources via CLI is rejected as a conflict.
src/aws-healthomics-mcp-server/tests/test_config_jwt_role_resolution.py:224
Method
test_both_sources_via_env_raise_conflict
Configuring both sources via environment variables is rejected as a conflict.
src/aws-healthomics-mcp-server/tests/test_config_jwt_role_resolution.py:238
Method
test_both_times_specified
Test with both start_time and end_time specified.
src/ecs-mcp-server/tests/unit/utils/test_time_utils.py:36
Method
test_boto3_client_error_handling
Test error handling when boto3 client creation fails.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_metrics_error_handling.py:433
Method
test_boto3_client_error_handling
Test error handling when boto3 client creation fails.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_logs_error_handling.py:372
Method
test_boto3_client_error_handling
Test error handling when boto3 client fails.
src/cloudwatch-mcp-server/tests/cloudwatch_alarms/test_active_alarms.py:329
Method
test_boto3_client_getter
Test boto3_client_getter passes config to client creation.
src/amazon-sns-sqs-mcp-server/tests/test_generator.py:515
Method
test_boto_core_error_handling
Test handling of BotoCoreError exceptions.
src/amazon-translate-mcp-server/tests/test_batch_manager.py:605
Method
test_botocore_error
Test handling of BotoCoreError.
src/aws-healthomics-mcp-server/tests/test_ecr_tools.py:2441
Method
test_botocore_error
Test BotoCoreError returns proper error.
src/aws-healthomics-mcp-server/tests/test_clone_container.py:751
Method
test_botocore_error_handling
Test BotoCoreError handling.
src/aws-healthomics-mcp-server/tests/test_ecr_coverage.py:1147
Method
test_botocore_error_handling
Test handling of BotoCoreError.
src/aws-healthomics-mcp-server/tests/test_ecr_tools.py:5780
Method
test_botocore_error_handling
Test handling of BotoCoreError.
src/aws-healthomics-mcp-server/tests/test_ecr_tools.py:6961
Method
test_botocore_error_maps_to_registry_source_error
A ``BotoCoreError`` becomes a ``RegistrySourceError``.
src/aws-healthomics-mcp-server/tests/test_dynamodb_registry_source.py:158
Method
test_botocore_error_max_retries_exceeded
Test BotoCoreError when max retries are exceeded.
src/amazon-translate-mcp-server/tests/test_translation_service_coverage.py:1072
Method
test_botocore_error_retry
Test BotoCoreError retry logic.
src/amazon-translate-mcp-server/tests/test_translation_service_coverage.py:478
Method
test_botocore_validation_errors_are_modify_request
Botocore's ValidationError family means the arguments are wrong, like ParamValidationError.
src/billing-cost-management-mcp-server/tests/utilities/test_aws_service_base.py:703
Function
test_bound_psycopg_placeholders_are_allowed
Psycopg placeholders are normalized only when parameters are supplied.
src/aurora-dsql-mcp-server/tests/test_sql_guard.py:67
Method
test_boundary_conditions
Test boundary conditions and edge cases.
src/aws-iot-sitewise-mcp-server/tests/tools/test_timestamp_tools.py:490
Method
test_boundary_exact_max_results_with_no_upstream_token_is_genuinely_complete
Filtered set == max_results and upstream is exhausted (no current_token). No runs were discarded (the slice at max_results kept everything) a
src/aws-healthomics-mcp-server/tests/test_pagination_hints_real_shapes.py:266
Method
test_boundary_exact_max_results_with_upstream_token_is_incomplete
Filtered set == max_results and an upstream current_token exists. Before the fix, the truncation check was strictly ``len(filtered_ru
src/aws-healthomics-mcp-server/tests/test_pagination_hints_real_shapes.py:174
Method
test_boundary_is_randomized
Successive boundaries differ -- randomness is the whole mechanism here. Nothing asserted this: replacing _generate_data_boundary's body with
src/db2-mcp-server/tests/test_server.py:843
Method
test_boundary_not_guessable_from_payload
A payload carrying a plausible closing tag cannot match the real boundary.
src/db2-mcp-server/tests/test_server.py:856
Method
test_boundary_values_and_edge_cases
Test boundary values and edge cases for various parameters.
src/aws-dataprocessing-mcp-server/tests/handlers/glue/test_glue_commons_handler.py:300
Method
test_br_spelling_variants
<br />, <br/> and <br> are all treated as value boundaries.
src/aws-documentation-mcp-server/tests/test_table_utils.py:650
Function
test_break_even_is_ri_only_in_botocore_model
Pin the Cost Explorer shape asymmetry the tool description relies on.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:1594
Method
test_break_in_single_row_header_delimited
A <br /> inside a single-row <thead> cell is delimited, not fused.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1460
← previous
next →
12,201–12,300 of 35,417, ranked by callers