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_cognito_auth_provider_init
Test CognitoAuthProvider initialization.
src/openapi-mcp-server/tests/auth/test_cognito_auth_boost_coverage.py:37
Method
test_cognito_auth_successful_validation
Test successful CognitoAuthProvider validation.
src/openapi-mcp-server/tests/auth/test_cognito_auth_coverage_boost.py:38
Function
test_cognito_import_error_handling
Test that ImportError is handled when importing CognitoAuthProvider.
src/openapi-mcp-server/tests/auth/test_register_coverage.py:20
Function
test_coh_real_efficiency_metrics_clamps_daily_over_90_days
A Daily start older than 90 days before today is clamped forward with a range_note.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1068
Function
test_coh_real_efficiency_metrics_clamps_monthly_over_3_months
A Monthly start older than 3 months before this month is clamped forward with a note.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1101
Function
test_coh_real_efficiency_metrics_daily_passthrough_reload_identity_decorator
Daily granularity keeps full YYYY-MM-DD dates (no month truncation).
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:860
Function
test_coh_real_efficiency_metrics_daily_rejects_monthly_format_date
Daily granularity with a YYYY-MM date is rejected locally, not forwarded. A month-only date is only valid for Monthly; validating against the res
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:920
Function
test_coh_real_efficiency_metrics_defaults_reload_identity_decorator
Omitted granularity/dates default to Monthly + a coerced lookback window.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:716
Function
test_coh_real_efficiency_metrics_error_result_skips_operation_parameters
A non-success helper result is returned without an operation_parameters block.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1286
Function
test_coh_real_efficiency_metrics_exception_reload_identity_decorator
A helper exception is caught and surfaced as a friendly error.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:823
Function
test_coh_real_efficiency_metrics_invalid_date_reload_identity_decorator
A malformed date is rejected before any API call.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:901
Function
test_coh_real_efficiency_metrics_invalid_granularity_reload_identity_decorator
An unsupported granularity is rejected before any API call.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:759
Function
test_coh_real_efficiency_metrics_invalid_group_by_reload_identity_decorator
Efficiency metrics reject group_by values other than AccountId/Region.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:778
Function
test_coh_real_efficiency_metrics_invalid_order_by_reload_identity_decorator
An out-of-range order_by dimension is rejected.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:798
Function
test_coh_real_efficiency_metrics_invalid_order_value_reload_identity_decorator
An order value outside Asc/Desc is rejected.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1041
Function
test_coh_real_efficiency_metrics_invalid_ranking_mode
An unrecognized ranking_mode is rejected before the helper is called.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1192
Function
test_coh_real_efficiency_metrics_monthly_truncates_daily_format_date
Monthly granularity accepts a YYYY-MM-DD date by truncating it to YYYY-MM.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:977
Function
test_coh_real_efficiency_metrics_no_clamp_within_limit
A window inside the API span is passed through unchanged with no range_note.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1133
Function
test_coh_real_efficiency_metrics_order_by_not_dict_reload_identity_decorator
A non-object order_by JSON is rejected.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1016
Function
test_coh_real_efficiency_metrics_performance_requires_group_by
ranking_mode='performance' without group_by is rejected before the helper.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1219
Function
test_coh_real_efficiency_metrics_performance_with_group_by_proceeds
ranking_mode='performance' WITH group_by passes validation and calls the helper.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:1255
Function
test_coh_real_efficiency_metrics_rejects_unpadded_date
A non-zero-padded date is rejected locally, not forwarded. strptime alone is lenient (it accepts '2026-6-5'), but COH requires strict zero-pa
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:949
Function
test_coh_real_efficiency_metrics_reload_identity_decorator
Real dispatcher wires list_efficiency_metrics with parsed/validated params.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:666
Function
test_coh_real_get_recommendation_missing_params_reload_identity_decorator
Test real cost_optimization_hub get_recommendation missing params with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:410
Function
test_coh_real_get_recommendation_missing_resource_id_reload_identity_decorator
Test real cost_optimization_hub get_recommendation missing resource_id with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:562
Function
test_coh_real_get_recommendation_success_reload_identity_decorator
Test real cost_optimization_hub get_recommendation success with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:383
Function
test_coh_real_invalid_group_by_reload_identity_decorator
Test real cost_optimization_hub invalid group_by with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:497
Function
test_coh_real_list_recommendations_exception_reload_identity_decorator
Test real cost_optimization_hub list_recommendations exception with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:539
Function
test_coh_real_list_recommendations_invalid_order_by_reload_identity_decorator
list_recommendations rejects an unsupported order_by dimension before the API call.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:641
Function
test_coh_real_list_recommendations_no_filters_reload_identity_decorator
Test real cost_optimization_hub list_recommendations no filters with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:457
Function
test_coh_real_list_recommendations_order_by_reload_identity_decorator
list_recommendations forwards a parsed order_by to the helper.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:602
Function
test_coh_real_list_recommendations_reload_identity_decorator
Test real cost_optimization_hub list_recommendations with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:339
Function
test_coh_real_main_exception_reload_identity_decorator
Test real cost_optimization_hub main exception with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:580
Function
test_coh_real_summaries_default_group_by_reload_identity_decorator
Test real cost_optimization_hub summaries default group_by with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:440
Function
test_coh_real_summaries_exception_reload_identity_decorator
Test real cost_optimization_hub summaries exception with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:513
Function
test_coh_real_summaries_reload_identity_decorator
Test real cost_optimization_hub summaries with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:290
Function
test_coh_real_unsupported_operation_lists_efficiency_metrics
The unsupported-operation error advertises list_efficiency_metrics.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:847
Function
test_coh_real_unsupported_operation_reload_identity_decorator
Test real cost_optimization_hub unsupported operation with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_tools.py:426
Method
test_cohere_model_allowed_in_us_east_1
The Cohere reranking model is offered in us-east-1 and must be allowed.
src/bedrock-kb-retrieval-mcp-server/tests/test_managed_kb.py:317
Method
test_cold_start_creates_exactly_one_session
Concurrent cold-start calls create exactly one session (zero orphans).
src/redshift-mcp-server/tests/test_redshift.py:1989
Method
test_collaborators_missing_workspace
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:1100
Method
test_collaborators_success
(self, _, mock_paginate, mock_fes, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:1080
Method
test_collect_cluster_details
Test collect_cluster_details function.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:338
Method
test_collect_cluster_details_error
Test collect_cluster_details with error handling.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:370
Method
test_collect_cluster_details_missing_clusters
Test collect_cluster_details when clusters key is missing.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:386
Function
test_collect_regional_pages_merges_items_tokens_and_outcomes
Regional pages are merged, stamped, and retain every regional error.
src/billing-cost-management-mcp-server/tests/utilities/test_regional_fanout.py:76
Method
test_collect_service_details_exception_handling
Test collect_service_details exception handling - covers lines 324-325.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:1074
Method
test_collect_task_details_find_load_balancers_exception
Test collect_task_details when find_load_balancers raises exception.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:1044
Method
test_collect_task_details_validate_container_images_exception
Test collect_task_details when validate_container_images raises exception.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:1009
Method
test_collect_task_details_with_find_task_definitions_client_error
Test collect_task_details when find_task_definitions raises ClientError.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:981
Method
test_collect_task_details_with_find_task_definitions_general_exception
Test collect_task_details when find_task_definitions raises general Exception.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:1125
Function
test_collection_does_not_skip_when_opt_in_present
With the signal present, the hook leaves integration items unskipped. When ``RUN_REMOTE_INTEGRATION_TESTS`` is truthy the collection hook is a no
src/aws-healthomics-mcp-server/integration/harness_tests/test_opt_in_gate.py:220
Function
test_collection_skips_integration_items_and_builds_no_aws_client
With the signal absent, integration items are skipped and no AWS client is built. Drives ``pytest_collection_modifyitems`` directly with fake ite
src/aws-healthomics-mcp-server/integration/harness_tests/test_opt_in_gate.py:171
Method
test_colspan_in_data_row
A data cell with colspan fills multiple columns.
src/aws-documentation-mcp-server/tests/test_table_utils.py:838
Method
test_colspan_in_header
A header cell with colspan expands into multiple columns.
src/aws-documentation-mcp-server/tests/test_table_utils.py:856
Method
test_colspan_row_not_dropped
Rows with colspan cells are not dropped due to cell count mismatch.
src/aws-documentation-mcp-server/tests/test_table_utils.py:885
Method
test_colspan_rowspan_not_parent
A cell with both colspan and rowspan does not make those columns parents.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1266
Method
test_colspan_suffixes_use_delimited_text
A colspan header carries the delimited text into its generated suffixes.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1480
Method
test_colspan_with_rowspan
Colspan and rowspan can coexist in the same table.
src/aws-documentation-mcp-server/tests/test_table_utils.py:868
Function
test_column_definition
Test ColumnDefinition model.
src/billing-cost-management-mcp-server/tests/test_models.py:91
Function
test_column_name_containing_into_not_flagged
A column name containing 'into' (e.g. shipped_into) should not trigger SELECT INTO.
src/mssql-mcp-server/tests/test_injection_false_positives.py:151
Method
test_column_named_change_is_not_flagged
``SELECT change FROM ledger`` — column, not CHANGE REPLICATION.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1082
Method
test_column_named_release_is_not_flagged
``SELECT release FROM versions`` — column, not RELEASE SAVEPOINT.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1086
Method
test_column_named_start_is_not_flagged
``SELECT start, stop FROM schedule`` — columns, not verbs.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1078
Method
test_combined_flags
Test parsing multiple flags together.
src/finch-mcp-server/tests/test_cli_flags.py:110
Method
test_combined_registry_and_image_mappings
Test with both registry and image mappings.
src/aws-healthomics-mcp-server/tests/test_create_container_registry_map.py:274
Method
test_combined_validation_workflow
Test combined validation in a typical workflow.
src/amazon-translate-mcp-server/tests/test_security_validators.py:361
Method
test_command_and_stdin_payload
Verify argv flags and that sql is piped via stdin (input=sql).
src/aurora-dsql-mcp-server/tests/test_dsql_lint.py:206
Method
test_command_error
(self, mock_client)
src/valkey-mcp-server/tests/test_search_aggregate.py:149
Method
test_command_failed
(self)
src/aws-for-sap-management-mcp-server/tests/test_health.py:2177
Method
test_command_injection_in_parameters
Test command injection patterns in parameters.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_validator.py:239
Function
test_command_line_args
Test that the command-line arguments are parsed correctly.
src/eks-mcp-server/tests/test_server.py:57
Function
test_command_line_args
Test that the command-line arguments are parsed correctly.
src/sagemaker-ai-mcp-server/tests/test_server.py:58
Function
test_command_line_args
Test that the command-line arguments are parsed correctly.
src/aws-dataprocessing-mcp-server/tests/test_server.py:132
Method
test_comment_before_verb_after_semicolon_is_detected
``SELECT 1;<comment>DO ...`` — comment after ``;`` must not hide DO.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1538
Method
test_comment_bypass_injection_detected
Inline comments between SQL keywords must not bypass injection detection.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1548
Method
test_comment_bypass_mutating_detected
Inline comments between SQL keywords must not bypass mutating keyword detection.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1559
Method
test_comment_handling
Test that comments don't interfere with detection.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:781
Method
test_comment_injection
Test that comment injection returns None.
src/postgres-mcp-server/tests/test_server_internal_functions.py:1290
Method
test_comment_injection_block
Test that block comment injection is rejected.
src/postgres-mcp-server/tests/test_server_internal_functions.py:1591
Method
test_comment_injection_does_not_bypass_detection
SQL comments must not smuggle a mutation past the detector. Postgres treats /* */ and -- as whitespace, so a comment wedged between t
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:508
Method
test_comment_injection_double_dash
Test that double-dash comment injection is rejected.
src/postgres-mcp-server/tests/test_server_internal_functions.py:1587
Function
test_comment_injection_no_space_detected
Comment injection with no space between quote and -- is flagged.
src/mssql-mcp-server/tests/test_injection_false_positives.py:99
Method
test_comment_injection_same_line_only
comment_injection flags a quote + -- on the SAME line, not across lines. The historical `'.*?--` regex ran without re.DOTALL, so a string lit
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:451
Method
test_comment_injection_scan_is_linear
The comment-injection check must not be O(n^2) on quote-heavy input (ReDoS).
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:441
Function
test_comment_injection_with_space_detected
Comment injection with space between quote and -- is also flagged.
src/mssql-mcp-server/tests/test_injection_false_positives.py:106
Method
test_comment_only
Should return an empty set for a query with only comments.
src/s3-tables-mcp-server/tests/test_database.py:159
Method
test_comment_only_body_raises
A build comment is not content.
src/aws-documentation-mcp-server/tests/test_util.py:1041
Method
test_comment_only_query
Should not raise for comment-only query, just return result from engine.
src/s3-tables-mcp-server/tests/test_database.py:221
Function
test_comment_precedence_line_then_block
Line comment on same line as /* prevents block comment from opening.
src/oracle-mcp-server/tests/test_server.py:517
Method
test_comment_text_containing_into_outfile_passes
Benign query whose comment happens to mention ``INTO OUTFILE``. Regression test: V1 of the fix would have flagged this because it ran
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:344
Method
test_comment_text_containing_load_data_passes
Benign query whose comment happens to mention ``LOAD DATA``.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:354
Method
test_commercial_host_rejected
The commercial docs host is not on the CN allowlist.
src/aws-documentation-mcp-server/tests/test_server_aws_cn.py:362
Method
test_commit_after_select_is_detected
``SELECT 1; COMMIT`` — COMMIT leads the second statement.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1057
Method
test_commit_inside_string_literal_is_not_flagged
``WHERE kind = 'commit'`` — "commit" as data.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1264
Method
test_commit_is_detected
``COMMIT`` — makes pending mutations durable.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:969
Method
test_commit_prefix_filter
Match deployments by commit prefix and exclude non-matches.
src/cloudwatch-applicationsignals-mcp-server/tests/test_cw_logs.py:240
Method
test_communication
Test Communication model.
src/aws-support-mcp-server/tests/test_models.py:91
Method
test_compare_identities_does_not_match_and_carries_values
``compare_identities`` reports no match while carrying both identities.
src/aws-healthomics-mcp-server/integration/harness_tests/test_isolation.py:87
Method
test_compare_identities_matches_and_carries_values
``compare_identities`` reports a match and carries both identities.
src/aws-healthomics-mcp-server/integration/harness_tests/test_isolation.py:56
← previous
next →
12,201–12,300 of 32,024, ranked by callers