MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

Methodtest_space
Test that an unquoted identifier with space returns None.
src/postgres-mcp-server/tests/test_server_internal_functions.py:1974
Methodtest_space_unquoted
Test that unquoted identifier with space is rejected.
src/postgres-mcp-server/tests/test_server_internal_functions.py:2402
Methodtest_span_limit_follows_the_start_months_length
The cap is the start month's length, not a flat 31 days. Verified against the live API: a range starting 2026-02-15 is accepted at 28
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:797
Methodtest_sparse_gsi_lifecycle
Test complete lifecycle: create without GSI key, update to add it, update to remove it.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_sparse_gsi.py:173
Methodtest_sparse_gsi_with_optional_key_field
Test that deals schema with optional GSI keys generates correct code.
src/dynamodb-mcp-server/tests/repo_generation_tool/integration/test_sparse_gsi_integration.py:28
Functiontest_spawn_detached_does_not_hold_the_log_descriptor_open
The parent's handle is closed; the child owns its own. Left open, the file would stay held for the lifetime of the harness -- and on the fall
src/postgres-mcp-server/tests/test_e2e_harness_contracts.py:328
Functiontest_spawn_detached_redirects_output_and_detaches_stdin
Output must land in the log and the child must never read from a terminal.
src/postgres-mcp-server/tests/test_e2e_harness_contracts.py:296
Functiontest_spawn_detached_returns_none_instead_of_raising_when_spawn_fails
Teardown must not fail a run whose assertions already completed. Returning None lets the caller fall back to a blocking delete rather than le
src/postgres-mcp-server/tests/test_e2e_harness_contracts.py:308
Functiontest_spawn_detached_returns_none_when_the_log_cannot_be_opened
An unwritable log directory is reported, not raised.
src/postgres-mcp-server/tests/test_e2e_harness_contracts.py:318
Functiontest_spawn_detached_returns_pid_and_log_path
The caller needs both, to tell the operator what to watch.
src/postgres-mcp-server/tests/test_e2e_harness_contracts.py:253
Functiontest_spawn_detached_starts_a_new_session
Without start_new_session the child shares our process group. It would then receive the same SIGINT/SIGTERM the harness gets, so a Ctrl-C dur
src/postgres-mcp-server/tests/test_e2e_harness_contracts.py:283
Functiontest_spawn_detached_uses_this_interpreter_and_passes_argv
sys.executable keeps the child inside the venv, so the package imports. A bare ``python`` could resolve to a system interpreter without the packa
src/postgres-mcp-server/tests/test_e2e_harness_contracts.py:266
Methodtest_spec_can_add_token_error_codes
An operation can widen the codes that mean a rejected token.
src/billing-cost-management-mcp-server/tests/utilities/test_pagination.py:550
Methodtest_special_case_client_operations
Test special case client operations to increase coverage.
src/ecs-mcp-server/tests/unit/test_aws_utils.py:230
Methodtest_special_characters
Test matching with special characters.
src/aws-bedrock-custom-model-import-mcp-server/tests/utils/test_matching.py:130
Methodtest_special_characters
String with special characters is classified as INLINE_CONTENT.
src/aws-healthomics-mcp-server/tests/test_content_resolver.py:932
Methodtest_special_characters_in_metric_names_are_escaped
Test that special characters in metric names are properly handled in JSON serialization.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_cloudformation_template_generator.py:70
Methodtest_special_characters_in_parameters
Test special characters in parameters.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_validator.py:226
Methodtest_special_characters_in_patterns
Test handling of special characters in patterns.
src/aws-healthomics-mcp-server/tests/test_pattern_matcher.py:263
Methodtest_special_regex_characters_escaped
Test that special regex characters are properly escaped.
src/cloudwatch-applicationsignals-mcp-server/tests/test_audit_utils.py:3216
Methodtest_specialized_converter_routes_automation_ops_to_records
Compute Optimizer Automation operations map to the 'records' converter.
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:875
Methodtest_specialized_converter_routes_budget_ops_to_records
Budget actions and notifications operations map to the 'records' converter.
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:887
Methodtest_specialized_converter_routes_bvs_segment_ops_to_records
BVS list billing view segments operations map to the 'records' converter.
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:912
Methodtest_specialized_converter_routes_es_linked_account_charges_to_records
Enterprise Support linked-account charges map to the 'records' converter. Without this entry the lookup returns None and the whole charges li
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:896
Methodtest_specific_error_classes
Test specific error classes.
src/openapi-mcp-server/tests/auth/test_auth_errors.py:58
Methodtest_specific_error_getting_tags
Test specific error handling when getting tags.
src/lambda-tool-mcp-server/tests/test_server_coverage.py:59
Methodtest_specific_vault
Gets a specific token vault by ID.
src/amazon-bedrock-agentcore-mcp-server/tests/identity/test_unit_token_vault.py:49
Methodtest_specify_assets_remap_value
(self)
src/aws-transform-mcp-server/tests/test_hitl_schemas.py:312
Methodtest_specs_resolve_to_known_values
Pin values the live API was verified to accept, so table edits are caught.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:2906
Functiontest_split_cli_command_successfully
Test that split_cli_command tokenizes valid CLI commands correctly.
src/aws-api-mcp-server/tests/parser/test_lexer.py:21
Functiontest_split_cli_command_unsuccessfully
Test that split_cli_command raises errors for invalid or prohibited CLI commands.
src/aws-api-mcp-server/tests/parser/test_lexer.py:37
Methodtest_split_do_identifier_is_not_flagged
``D/**/O GET_LOCK(...)`` — splitting the keyword yields ``D O``. After comment-stripping this is ``D O GET_LOCK(...)`` which is not a
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1348
Methodtest_split_drop_identifier_is_not_flagged_as_drop
``DR/**/OP`` must not be reported as DROP. Note: this query DOES still get blocked because the database would reject it as a syntax e
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:388
Methodtest_split_insert_identifier_is_not_a_mutation
``INS/**/ERT`` must not be reported as INSERT.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:383
Methodtest_sql
SQL queries starting with SELECT should be detected.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_index_recommender.py:161
Methodtest_sql_conversion_threshold_custom
Test custom SQL conversion threshold.
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:2416
Methodtest_sql_details
SQL sanitized query and database type are extracted.
src/cloudwatch-applicationsignals-mcp-server/tests/test_trace_tools.py:165
Methodtest_sql_has_a_max_length
An unbounded `sql` let one call stall the process. Two injection patterns are quadratic in input length (measured: clean 4x per doubl
src/db2-mcp-server/tests/test_server.py:789
Methodtest_sql_injection_in_parameters
Test SQL injection patterns in parameters.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_validator.py:233
Methodtest_sql_injection_patterns
Test detection of various SQL injection patterns.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:109
Functiontest_sql_injection_prevention_insert
Test that SQL injection with INSERT is prevented when write access is disabled.
src/aws-dataprocessing-mcp-server/tests/handlers/athena/test_athena_query_handler.py:875
Methodtest_sql_is_optional_when_opening_or_closing
A transaction can be opened, or closed, without a statement of its own.
src/redshift-mcp-server/tests/test_redshift.py:1775
Methodtest_sql_is_required_to_add_to_a_transaction
in_transaction with no statement would open nothing and run nothing.
src/redshift-mcp-server/tests/test_redshift.py:1765
Methodtest_sql_is_required_without_a_transaction_parameter
Otherwise the call asks for nothing at all.
src/redshift-mcp-server/tests/test_redshift.py:1760
Methodtest_sql_order_by_display
SQL ORDER BY fields should be classified as display.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_index_recommender.py:1167
Methodtest_sqlserver_uses_top
Test that SQL Server uses TOP syntax.
src/dynamodb-mcp-server/tests/db_analyzer/test_plugins.py:115
Methodtest_squatted_bucket_aborts_before_caching
A 403 from the ownership assertion aborts without registering or caching the bucket.
src/security-agent-mcp-server/tests/test_server.py:1121
Methodtest_sse_app_is_wrapped_with_identity_middleware
The sse base app is wrapped with IdentityMiddleware before serving.
src/aws-healthomics-mcp-server/tests/test_server_multitenant_wiring.py:139
Methodtest_ssh_directory_blocked
Test that ~/.ssh/ files are blocked.
src/sagemaker-ai-mcp-server/tests/test_path_validation.py:57
Methodtest_ssl_context_for_secret_arn_path
The Secrets Manager credential path must configure an SSL context. When secret_arn is set, a password is transmitted on the wire, so TLS
src/mysql-mcp-server/tests/test_ca_bundle.py:224
Methodtest_ssl_context_load_error
Test handling of SSL certificate loading errors.
src/amazon-keyspaces-mcp-server/tests/test_client.py:201
Methodtest_ssl_default
SSL mode resolves to 50443 when no port is given.
src/db2-mcp-server/tests/test_server.py:523
Functiontest_ssl_noverify_uses_tcps_protocol
Verify ssl_encryption=noverify uses TCPS protocol in DSN.
src/oracle-mcp-server/tests/test_oracledb_pool_connection.py:145
Functiontest_ssl_off_uses_tcp_protocol
Verify ssl_encryption=off uses plain TCP protocol in DSN.
src/oracle-mcp-server/tests/test_oracledb_pool_connection.py:73
Functiontest_ssl_require_missing_cert_file_rejected
A cert path that does not point at a real file is rejected (fast-fail).
src/db2-mcp-server/tests/test_ibm_db_connection.py:657
Functiontest_ssl_require_uses_tcps_protocol
Verify ssl_encryption=require uses TCPS protocol in DSN.
src/oracle-mcp-server/tests/test_oracledb_pool_connection.py:67
Methodtest_ssl_require_without_certificate_rejected
ssl_encryption='require' without a certificate bundle must be rejected. SECURITY=SSL with no SSLServerCertificate encrypts but does not authe
src/db2-mcp-server/tests/test_ibm_db_connection.py:87
Methodtest_ssl_with_cert
SSL mode adds SECURITY=SSL and the certificate path.
src/db2-mcp-server/tests/test_ibm_db_connection.py:68
Functiontest_ssm_cli_raises_parameter_schema_validation_error_when_platform_name_should_be_used_instead_of_platform_type
Test that a schema validation error is raised when PlatformName should be used instead of PlatformType.
src/aws-api-mcp-server/tests/parser/test_parser.py:501
Functiontest_ssm_cli_raises_parameter_schema_validation_error_when_platform_type_should_be_used_instead_of_platform_name
Test that a schema validation error is raised when PlatformType should be used instead of PlatformName.
src/aws-api-mcp-server/tests/parser/test_parser.py:482
Functiontest_ssm_cli_raises_parameter_schema_validation_error_when_platform_version_missing
Test that a schema validation error is raised when PlatformVersion is missing for Amazon Linux 2.
src/aws-api-mcp-server/tests/parser/test_parser.py:551
Functiontest_ssm_cli_raises_parameter_schema_validation_error_when_sync_name_is_expected_but_missing
Test that a schema validation error is raised when --sync-name is required but missing.
src/aws-api-mcp-server/tests/parser/test_parser.py:522
Functiontest_ssm_cli_raises_parameter_schema_validation_error_when_windows_server_shorthand_used
Test that a schema validation error is raised for Windows Server shorthand in SSM CLI.
src/aws-api-mcp-server/tests/parser/test_parser.py:461
Functiontest_ssm_cli_validation_is_case_insensitive
Test that SSM CLI validation is case insensitive.
src/aws-api-mcp-server/tests/parser/test_parser.py:546
Functiontest_ssm_list_documents_filters
Test that SSM list-documents filters are parsed without error.
src/aws-api-mcp-server/tests/parser/test_parser.py:354
Methodtest_sso_flow_exception
Exception in SSO flow returns failure_result with hint.
src/aws-transform-mcp-server/tests/test_configure.py:658
Methodtest_sso_missing_idc_region
(self, handler, mock_context)
src/aws-transform-mcp-server/tests/test_configure.py:1404
Methodtest_sso_missing_startUrl_defaults_to_none
Omit startUrl — should be None, not a truthy FieldInfo.
src/aws-transform-mcp-server/tests/test_field_defaults.py:137
Methodtest_sso_missing_start_url
(self, handler, mock_context)
src/aws-transform-mcp-server/tests/test_configure.py:347
Methodtest_sso_multiple_profiles_no_selection
( self, mock_oauth, mock_discover, handler, mock_context )
src/aws-transform-mcp-server/tests/test_configure.py:197
Methodtest_sso_multiple_profiles_with_selection
( self, mock_oauth, mock_discover, mock_fes_bearer, mock_set_config,
src/aws-transform-mcp-server/tests/test_configure.py:256
Methodtest_sso_no_profiles
(self, mock_oauth, mock_discover, handler, mock_context)
src/aws-transform-mcp-server/tests/test_configure.py:166
Methodtest_sso_profile_not_found
(self, mock_oauth, mock_discover, handler, mock_context)
src/aws-transform-mcp-server/tests/test_configure.py:312
Methodtest_sso_single_profile
( self, mock_oauth, mock_discover, mock_fes_bearer, mock_set_config,
src/aws-transform-mcp-server/tests/test_configure.py:116
Methodtest_ssrf_attempt_region
Test rejection of SSRF attempts via region.
src/amazon-translate-mcp-server/tests/test_security_validators.py:60
Methodtest_ssrf_prevention
Test SSRF prevention in S3 URIs.
src/amazon-translate-mcp-server/tests/test_security_validators.py:173
Methodtest_stac_from_data_at_work
Finds STAC endpoints from DataAtWork sections.
src/roda-mcp-server/tests/test_server.py:639
Methodtest_stac_tag_detected
Datasets with 'stac' tag are flagged as has_stac_tag.
src/roda-mcp-server/tests/test_server.py:647
Methodtest_stack_exists
Test when CloudFormation stack exists.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_fetch_cloudformation_status.py:38
Methodtest_stack_failure
Test when CloudFormation stack exists but has failed resources.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_fetch_cloudformation_status.py:87
Methodtest_stack_filename_matches_cdk_init
Test that stack filename matches what cdk init created.
src/dynamodb-mcp-server/tests/cdk_generator/integration/test_cdk_generation.py:85
Methodtest_stack_not_found
Test when CloudFormation stack does not exist.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_fetch_cloudformation_status.py:141
Methodtest_stack_not_found_error
Test error handling when stack doesn't exist.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_deployment_troubleshooter.py:264
Methodtest_stack_preview_skips_non_dict_frames_and_caps_at_five
Stack preview skips non-dict frames and previews at most five.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1689
Methodtest_stacked_queries_are_detected
A semicolon-separated stacked query must be flagged.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:225
Methodtest_stacked_query
Test that stacked query injection is rejected.
src/postgres-mcp-server/tests/test_server_internal_functions.py:2525
Methodtest_stacked_utility_verb_is_caught_by_the_semicolon_pattern
A non-initial utility verb reached via stacking is caught by the ';' guard. The leading anchor deliberately does not match here -- the stacke
src/db2-mcp-server/tests/test_mutable_sql_detector.py:191
Methodtest_stage_error_reports_failed_stage_and_detail
A raising stage surfaces its name in ``failed_stage`` and its cause in ``detail``.
src/aws-healthomics-mcp-server/integration/harness_tests/test_provision_teardown_unit.py:148
Methodtest_stale_cache_triggers_refetch
Expired cache timestamp causes a fresh download.
src/roda-mcp-server/tests/test_server.py:315
Functiontest_stale_guidance_removed
Stale or wrong guidance from the hand-maintained text is gone.
src/billing-cost-management-mcp-server/tests/test_server_instructions.py:173
Methodtest_stamps_region_on_items_with_empty_region
A falsey service region is replaced with the region that returned the item.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_automation_tools.py:2184
Methodtest_stamps_region_on_items_without_it
Summaries carry no region field, so the queried region is stamped on them.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_automation_tools.py:2163
Functiontest_standalone_comment_line_allowed
A standalone comment line (-- at start of line) is allowed.
src/mssql-mcp-server/tests/test_injection_false_positives.py:127
Functiontest_standalone_comment_with_union_allowed
A UNION query with comments on their own lines is allowed.
src/mssql-mcp-server/tests/test_injection_false_positives.py:141
Methodtest_standalone_config
(self)
src/valkey-mcp-server/tests/test_connection.py:52
Methodtest_standalone_instance_invalid_port_raises
Standalone instance with a malformed AWS port fails closed (no 3306 guess).
src/mysql-mcp-server/tests/test_endpoint_validation.py:724
Methodtest_standalone_instance_missing_address_raises
When AWS returns an empty Address, fail closed — never keep the caller host.
src/mysql-mcp-server/tests/test_endpoint_validation.py:827
Methodtest_standalone_instance_overwrites_endpoint
Standalone instance path should overwrite db_endpoint with AWS-sourced value.
src/mysql-mcp-server/tests/test_endpoint_validation.py:649
Methodtest_standalone_instance_zero_port_raises
A zero/absent AWS port on the standalone path fails closed (no 3306 guess).
src/mysql-mcp-server/tests/test_endpoint_validation.py:856
Methodtest_standalone_tls_uses_correct_advanced_config
(self, tmp_path)
src/valkey-mcp-server/tests/test_connection.py:145
← previousnext →31,501–31,600 of 35,417, ranked by callers