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_rejected_inside_a_transaction
Every spelling the guard recognises, in read-write mode where the deny-list is off.
src/redshift-mcp-server/tests/test_sql_guard.py:265
Method
test_rejected_locally
Incomplete or ignored total impact arguments fail before any API call.
src/billing-cost-management-mcp-server/tests/tools/test_cost_anomaly_tools.py:1290
Function
test_rejected_next_token_reported_as_token_error_not_access_denied
A rejected next_token comes back as AccessDeniedException with no message. Cost Explorer answers a stale, truncated or made-up NextPageToken on b
src/billing-cost-management-mcp-server/tests/tools/test_sp_recommendation_tools.py:841
Method
test_rejected_on_unsupported_operations
Operations without recommendationPreferences get an error instead of a silent drop.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:3197
Function
test_rejected_query_is_validation_error
A query rejected by the read-only check is a validation_error the caller must modify.
src/billing-cost-management-mcp-server/tests/tools/test_storage_lens_tools.py:1477
Method
test_rejected_sql_is_not_prompted_for
Stacked statements are rejected by the guard before anyone is asked.
src/redshift-mcp-server/tests/test_server.py:247
Function
test_rejected_statement_never_reaches_the_connection
A rejection must stop before the database, not merely be reported.
src/postgres-mcp-server/tests/test_run_query_policy_wiring.py:106
Method
test_rejected_superuser_evicted_despite_key_mismatch
Behavioral guardrail-bypass regression, exercised against a REAL map. internal_create_connection stores the connection under the AWS-resolved
src/postgres-mcp-server/tests/test_server_error_handling.py:331
Method
test_rejected_token_is_invalid_next_token
InvalidNextTokenException on the caller's token maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_cost_anomaly_monitors.py:240
Method
test_rejected_token_is_invalid_next_token
A token the service rejects maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_invoice_units_tools.py:214
Method
test_rejected_token_is_invalid_next_token
InvalidNextTokenException on the caller's token maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_budget_performance_history.py:259
Method
test_rejected_token_is_invalid_next_token
A token the service rejects maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_aws_bcm_pricing_calculator_tools.py:1876
Method
test_rejected_token_is_invalid_next_token
A token the service rejects maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:1143
Method
test_rejected_token_is_invalid_next_token
A token the service rejects maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_enterprise_support_operations.py:863
Method
test_rejected_token_is_invalid_next_token
A token the service rejects maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:999
Method
test_rejected_token_is_invalid_next_token
A token the service rejects maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_procurement_preferences_tools.py:249
Method
test_rejected_token_is_invalid_next_token
The service reports a bad caller token as ValidationException naming the token.
src/billing-cost-management-mcp-server/tests/tools/test_free_tier_plan_operations.py:225
Method
test_rejected_token_is_invalid_next_token
A token the service rejects maps to invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_free_tier_usage_tools_new.py:467
Method
test_rejected_token_maps_to_invalid_next_token
A stale caller token is reported as invalid_next_token.
src/billing-cost-management-mcp-server/tests/tools/test_sp_purchase_analyzer_tools.py:668
Method
test_rejected_with_read_only_enforcement_off
Refused in read-write mode too, where the deny-list no longer applies.
src/redshift-mcp-server/tests/test_sql_guard.py:231
Method
test_rejection_carries_error_type_and_operation
Every validation failure names its type and the operation it was for.
src/billing-cost-management-mcp-server/tests/tools/test_business_support_operations.py:1191
Method
test_rejection_close_failure_is_swallowed
If close() raises during cleanup, the rejection is still surfaced. Closing a rejected connection is best-effort: a failure there must not
src/postgres-mcp-server/tests/test_server_error_handling.py:421
Function
test_rejection_message_does_not_echo_sensitive_literal
Rejection messages name the construct, not the query's literal values (FR8).
src/postgres-mcp-server/tests/test_sql_guard.py:325
Method
test_rejects_absolute_path_in_zip_entry
Property: ZIP entries with absolute paths are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:131
Method
test_rejects_aliased_experimental_to
Test that aliased experimental import with to() is rejected.
src/timestream-for-influxdb-mcp-server/tests/test_server.py:2741
Method
test_rejects_ancestor_of_blocked_directory
An ancestor of a sensitive directory is rejected.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:147
Method
test_rejects_backslash_traversal_in_zip
Property: ZIP entries with backslash traversal are rejected on all platforms. Note: On macOS/Linux, backslash is a valid filename character,
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:175
Method
test_rejects_bad_location_hash_length
A non-16-character location hash is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1130
Method
test_rejects_bare_dotdot
Property: Bare '..' is rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:62
Method
test_rejects_blank_path
Blank paths are rejected rather than resolving to the working directory.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:244
Method
test_rejects_blocked_directory_itself
The sensitive directory itself is rejected.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:96
Method
test_rejects_breakout_values
Values containing quote, backslash, or newline are rejected.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_identifier_validator.py:288
Method
test_rejects_commands_with_local_paths
Test that commands with local paths are rejected when FILE_ACCESS_MODE is NO_ACCESS.
src/aws-api-mcp-server/tests/parser/test_parser_file_access.py:213
Method
test_rejects_control_characters
URLs with control characters (CRLF injection) must be rejected.
src/amazon-bedrock-agentcore-mcp-server/tests/test_url_validator.py:175
Method
test_rejects_dangerous_templates
Templates with break-out chars or non-placeholder brace expressions are rejected.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_identifier_validator.py:330
Method
test_rejects_delete_in_readonly
Should reject DELETE when readonly is True.
src/mysql-mcp-server/tests/test_server_error_handling.py:101
Method
test_rejects_domain_suffix_attack
PoC vector 2: prefix match must not approve a longer hostname.
src/amazon-bedrock-agentcore-mcp-server/tests/test_url_validator.py:97
Method
test_rejects_dotdot_in_zip_entry
Property: ZIP entries with ../ traversal are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:119
Method
test_rejects_double_encoded_data
Test that double-base64-encoded data is rejected.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:2994
Method
test_rejects_drop_in_readonly
Should reject DROP when readonly is True.
src/mysql-mcp-server/tests/test_server_error_handling.py:119
Method
test_rejects_embedded_dotdot
Property: Paths with /../ in the middle are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:52
Method
test_rejects_empty_min_length_fields
(self, action, kwargs, field, handler, ctx)
src/aws-transform-mcp-server/tests/test_engagement.py:544
Method
test_rejects_end_before_start
end_time must be later than start_time; this is caught after config fetch.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1142
Method
test_rejects_endpoint_not_in_cluster
Caller-supplied endpoint that doesn't match any cluster endpoint raises ValueError.
src/postgres-mcp-server/tests/test_server_internal_functions.py:1315
Method
test_rejects_endpoint_with_wrong_port
Caller supplies correct host but wrong port → ValueError.
src/postgres-mcp-server/tests/test_server_internal_functions.py:1352
Method
test_rejects_etc
(self)
src/eks-mcp-server/tests/test_path_validation.py:113
Method
test_rejects_etc_subdir
(self)
src/eks-mcp-server/tests/test_path_validation.py:117
Method
test_rejects_experimental_to
Test that experimental.to() is rejected in read-only mode.
src/timestream-for-influxdb-mcp-server/tests/test_server.py:2677
Method
test_rejects_experimental_to
Test experimental.to().
src/timestream-for-influxdb-mcp-server/tests/test_server.py:2930
Method
test_rejects_file_blob_arguments
Test that commands with file:// and fileb:// arguments are rejected when FILE_ACCESS_MODE is NO_ACCESS.
src/aws-api-mcp-server/tests/parser/test_parser_file_access.py:230
Method
test_rejects_file_inside_tilde_form_of_blocked_directory
A tilde path to a file inside a sensitive directory is rejected.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:113
Method
test_rejects_filesystem_root
The filesystem root is rejected because it contains sensitive directories.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:137
Method
test_rejects_filter
The filter argument applies only to get_free_tier_usage, so it is refused.
src/billing-cost-management-mcp-server/tests/tools/test_free_tier_plan_operations.py:118
Method
test_rejects_filter
The filter argument applies only to get_free_tier_usage.
src/billing-cost-management-mcp-server/tests/tools/test_free_tier_plan_operations.py:281
Method
test_rejects_home_dir_traversal_in_zip
Property: ZIP entries targeting home directory are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:137
Method
test_rejects_home_directory
The home directory is rejected because it contains sensitive directories.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:142
Method
test_rejects_hostname_as_cache_name
(self)
src/valkey-mcp-server/tests/test_connection.py:218
Method
test_rejects_influxdb_wideTo
Test that influxdb.wideTo() is rejected in read-only mode.
src/timestream-for-influxdb-mcp-server/tests/test_server.py:2720
Method
test_rejects_influxdb_wideTo
Test influxdb.wideTo().
src/timestream-for-influxdb-mcp-server/tests/test_server.py:2942
Method
test_rejects_injection_and_reserved
Names that are not plain, non-reserved identifiers are rejected.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_identifier_validator.py:89
Method
test_rejects_insert_in_readonly
Should reject INSERT when readonly is True.
src/mysql-mcp-server/tests/test_server_error_handling.py:65
Method
test_rejects_interpolation_with_nested_quotes
Test that interpolation containing nested quotes cannot smuggle a write.
src/timestream-for-influxdb-mcp-server/tests/test_server.py:3046
Method
test_rejects_interpolation_without_any_write_function
Test that interpolation is refused on its own merits, not via to(). The interpolation guard must run against the raw query. Checking the
src/timestream-for-influxdb-mcp-server/tests/test_server.py:3034
Method
test_rejects_invalid_base64
Test that non-base64 data is rejected.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:3014
Method
test_rejects_invalid_end_time
A malformed end_time is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1040
Method
test_rejects_invalid_end_time
A malformed end_time is rejected after the config fetch succeeds.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1249
Method
test_rejects_invalid_ids
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:202
Method
test_rejects_invalid_inputs
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:86
Method
test_rejects_invalid_instrumentation_type
An invalid instrumentation_type is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1005
Method
test_rejects_invalid_instrumentation_type
An invalid instrumentation_type is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1207
Method
test_rejects_invalid_mode_without_calling_api
Invalid modes are rejected; API not called; caller inputs unchanged.
src/aws-healthomics-mcp-server/tests/test_run_batch.py:1734
Method
test_rejects_invalid_mode_without_calling_api
Invalid modes are rejected; API not called; caller inputs unchanged.
src/aws-healthomics-mcp-server/tests/test_workflow_execution.py:2662
Method
test_rejects_invalid_project_name
Project names outside the allowlist are rejected at the request boundary.
src/aws-serverless-mcp-server/tests/test_models.py:139
Method
test_rejects_invalid_signal_type
A non-SNAPSHOT signal_type is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1016
Method
test_rejects_invalid_signal_type
A non-SNAPSHOT signal_type is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1219
Method
test_rejects_invalid_start_time
A malformed start_time is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1028
Method
test_rejects_invalid_start_time
A malformed start_time is rejected after the config fetch succeeds.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1232
Method
test_rejects_invalid_status
An out-of-enum status is rejected before any API call.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:926
Method
test_rejects_invalid_token_state
Invalid regional state is rejected before any clients are created.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_automation_tools.py:2287
Method
test_rejects_invalid_types
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:178
Method
test_rejects_leading_dotdot_slash
Property: Paths starting with ../ are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:47
Method
test_rejects_malformed_page_value_from_healthlake
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:270
Method
test_rejects_multiple_traversal_levels
Property: Multiple levels of ../ traversal are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:84
Method
test_rejects_nested_traversal_in_zip_entry
Property: ZIP entries with nested ../ traversal are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:125
Method
test_rejects_non_alnum_or_wrong_length
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:145
Method
test_rejects_non_https_scheme
Only https is permitted.
src/amazon-bedrock-agentcore-mcp-server/tests/test_url_validator.py:120
Method
test_rejects_non_https_url
fetch() must refuse to call urlopen on any non-https URL. Defensive guard against a future bug that points _RDS_CA_BUNDLE_URL at file
src/mysql-mcp-server/tests/test_hatch_build.py:105
Method
test_rejects_non_json_strings
Property: Tag parsing rejects invalid JSON - non-JSON strings. Generate arbitrary strings and filter to those that are not valid JSON objects
src/aws-healthomics-mcp-server/tests/test_workflow_management.py:3589
Method
test_rejects_non_string_path
Non-string input is rejected with a clear error.
src/ecs-mcp-server/tests/unit/utils/test_path_validation.py:251
Method
test_rejects_non_string_types
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:92
Method
test_rejects_non_strings
Non-string inputs are rejected rather than raising.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_identifier_validator.py:94
Method
test_rejects_non_strings
Non-string values are rejected rather than raising.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_identifier_validator.py:293
Method
test_rejects_non_strings
Non-string templates are rejected rather than raising.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_identifier_validator.py:335
Method
test_rejects_null_bytes
Paths with null bytes are rejected.
src/aws-healthomics-mcp-server/tests/test_package_workflow_output.py:82
Method
test_rejects_null_bytes
Property: Paths with null bytes are rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:93
Method
test_rejects_os_native_separator_traversal
Property: Traversal using OS-native separators is rejected.
src/aws-healthomics-mcp-server/tests/test_path_traversal.py:67
Method
test_rejects_overlong
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:97
Method
test_rejects_paging_arguments
get_account_plan_state does not page, so max_items and next_token are refused.
src/billing-cost-management-mcp-server/tests/tools/test_free_tier_plan_operations.py:154
Method
test_rejects_parameter_for_different_action
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_engagement.py:469
Method
test_rejects_path_in_aws_dir
(self)
src/eks-mcp-server/tests/test_path_validation.py:31
← previous
next →
29,201–29,300 of 35,417, ranked by callers