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
Function
test_per_target_secret_wins_over_default
Per-target ARN takes precedence over the configured default.
src/mssql-mcp-server/tests/test_server.py:1202
Method
test_per_task_vs_per_run_split
Only the run filesystem pair is per-run.
src/aws-healthomics-mcp-server/tests/test_metrics_schema.py:33
Method
test_percentage_is_returned
A percentage value, including the clamped forms, is returned as savings_percentage.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2759
Method
test_percentile
Compute a percentile in milliseconds from bucketed data.
src/cloudwatch-applicationsignals-mcp-server/tests/test_cw_logs.py:334
Method
test_percentile_empty
Return None for empty percentile duration data.
src/cloudwatch-applicationsignals-mcp-server/tests/test_cw_logs.py:340
Method
test_percentile_falls_back_to_last_bucket
Fall back to the largest bucket when the cumulative rank is never reached.
src/cloudwatch-applicationsignals-mcp-server/tests/test_cw_logs.py:350
Method
test_percentile_mismatched_lengths
Return None when Values and Counts arrays differ in length.
src/cloudwatch-applicationsignals-mcp-server/tests/test_cw_logs.py:358
Method
test_percentile_nearest_rank
(self)
src/aws-healthomics-mcp-server/tests/test_run_metrics_tools.py:162
Method
test_percentile_zero_total
Return None when all bucket counts are zero (total weight <= 0).
src/cloudwatch-applicationsignals-mcp-server/tests/test_cw_logs.py:345
Method
test_perfect_sine_wave_no_trend
Perfect sine wave centered at 1000 should have no trend.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_decomposer_trend.py:22
Function
test_performance
Performance.
src/cloudwatch-applicationsignals-mcp-server/tests/test_rum_tools.py:337
Method
test_performance_mode_cap_hit_pagination_has_no_continuation
A capped ranking is partial but not continuable: no next_token, no max_items advice.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2238
Method
test_performance_mode_early_stop_warning
A fetch that fails mid-way is partial but not described as the cap.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2332
Method
test_performance_mode_fetch_cap_unchanged
The internal fetch stops at EFFICIENCY_PARETO_MAX_PAGES full pages and flags cap_hit.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2206
Method
test_performance_mode_fetches_spend_desc_and_directs_by_order
In performance mode the API fetch is forced to Spend Desc. The caller's order_by only sets the ranking DIRECTION (Score Asc = worst first).
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2134
Method
test_performance_mode_full_fetch_trimmed_is_complete
Trimming a fully fetched ranking to max_items is a top N, not partial data.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2280
Method
test_performance_mode_max_items_only_trims_ranked_list
A caller max_items is a display count, not a fetch size. It must not shrink the per-page fetch (which would corrupt the Pareto denomi
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2166
Method
test_performance_mode_untrimmed_has_no_note
Without a max_items trim, ranking_focus carries no ranked-vs-returned note.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2313
Method
test_performance_regression_correlation
Test change events for performance regression correlation.
src/cloudwatch-applicationsignals-mcp-server/tests/test_change_tools.py:1945
Method
test_performance_tracking_edge_cases
Test performance tracking edge cases.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:3207
Function
test_performance_vitals_bucketing
Test that Web Vitals results get good/needs-improvement/poor assessment.
src/cloudwatch-applicationsignals-mcp-server/tests/test_rum_tools.py:350
Function
test_performance_vitals_needs_improvement_and_malformed_p90
Middle bucket (p90 between good and poor) -> 'needs-improvement'; non-numeric p90 -> no assessment, no crash.
src/cloudwatch-applicationsignals-mcp-server/tests/test_rum_tools.py:1647
Method
test_performance_with_large_history
Test performance considerations with large alarm history.
src/cloudwatch-mcp-server/tests/cloudwatch_alarms/test_alarm_history_integration.py:542
Method
test_performance_with_long_patterns
Test performance with long patterns and text.
src/aws-healthomics-mcp-server/tests/test_pattern_matcher.py:277
Method
test_performance_with_long_strings
Test that the function performs reasonably with very long strings.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_is_ecr_image_security.py:151
Method
test_performance_with_many_files
Test that pattern optimization improves performance with many files.
src/aws-healthomics-mcp-server/tests/test_file_association_engine.py:778
Method
test_period_calculation_edge_cases
Test period calculation with edge cases.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_metrics_error_handling.py:576
Method
test_period_max_limit
Test that period_in_hours is capped at 24.
src/cloudwatch-applicationsignals-mcp-server/tests/test_sli_report_client.py:39
Method
test_period_without_actual_amount
A period with no actual amount returns actual_amount null.
src/billing-cost-management-mcp-server/tests/tools/test_budget_performance_history.py:123
Method
test_period_without_dates_has_no_note
A period missing its dates is returned as is, not turned into an error.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:1420
Method
test_periodic_only_shows_one
Show one representative entry when only periodic re-emits exist.
src/cloudwatch-applicationsignals-mcp-server/tests/test_cw_logs.py:282
Method
test_periods_matching_request_return_empty
Labels within the request need no note.
src/billing-cost-management-mcp-server/tests/utilities/test_time_utils.py:235
Method
test_permission_denied
PermissionError raised when file is not readable. **Validates: Requirements Local File Content Resolution**
src/aws-healthomics-mcp-server/tests/test_content_resolver.py:975
Method
test_permission_denied_aborts_review
A permission denied error aborts with the grant that resolves it.
src/redshift-mcp-server/tests/test_review_executor.py:402
Method
test_permission_denied_scenarios
Test handling of permission denied scenarios.
src/amazon-translate-mcp-server/tests/test_aws_client.py:1044
Method
test_permission_denied_scenarios
Test various permission denied scenarios.
src/aws-dataprocessing-mcp-server/tests/handlers/glue/test_glue_commons_handler.py:1666
Method
test_permission_none
Test that no permission check always passes.
src/ecs-mcp-server/tests/unit/utils/test_security_extended.py:58
Method
test_permission_sensitive_data_allowed
Test that sensitive data permission is allowed when configured.
src/ecs-mcp-server/tests/unit/utils/test_security_extended.py:40
Method
test_permission_sensitive_data_denied
Test that sensitive data permission is denied when not configured.
src/ecs-mcp-server/tests/unit/utils/test_security_extended.py:45
Method
test_permission_statements
Test detection of permission-related statements.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:135
Method
test_permission_write_allowed
Test that write permission is allowed when configured.
src/ecs-mcp-server/tests/unit/utils/test_security_extended.py:22
Method
test_permission_write_denied
Test that write permission is denied when not configured.
src/ecs-mcp-server/tests/unit/utils/test_security_extended.py:27
Method
test_persist_and_load_roundtrip
(self, tmp_path)
src/aws-transform-mcp-server/tests/test_config_store.py:239
Function
test_pg13_pg14_legacy_backup_functions_are_read_only_writes
Pre-PG15 backup entry points stay covered by the PG13-PG18 audit claim.
src/postgres-mcp-server/tests/test_sql_guard.py:502
Method
test_pg_catalog
Test parsing pg_catalog.pg_class.
src/postgres-mcp-server/tests/test_server_internal_functions.py:2152
Method
test_pg_catalog
Test that pg_catalog.pg_class is valid.
src/postgres-mcp-server/tests/test_server_internal_functions.py:2310
Method
test_phantom_parameter_excluded_from_both_repository_and_usage_examples
Test that phantom parameters are excluded from both repository signatures and usage examples.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_jinja2_generator.py:629
Method
test_ping
Server responds to ping.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_integ_mcp_protocol.py:860
Method
test_ping
(self, iam_client)
src/valkey-mcp-server/tests/integration/test_iam_live.py:77
Method
test_ping
Basic connectivity test over TLS.
src/valkey-mcp-server/tests/integration/test_tls_live.py:97
Method
test_pinned_arn_wins_for_its_target
A --secret_arn "id=arn" pin is used for that instance_identifier.
src/db2-mcp-server/tests/test_server.py:1247
Function
test_pinned_fetch_connects_to_pinned_ip_with_host_and_sni
The fetch dials the pinned IP literal, keeping Host + SNI = validated host.
src/openapi-mcp-server/tests/test_ssrf_protection.py:823
Function
test_pinned_fetch_http_opt_in_uses_no_sni
An opted-in http:// fetch dials the pinned IP with no TLS SNI extension.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1104
Function
test_pinned_fetch_http_requires_opt_in
An http:// pinned URL is refused unless allow_http is set.
src/openapi-mcp-server/tests/test_ssrf_protection.py:872
Function
test_pinned_fetch_no_resolved_ips
A ValidatedURL with no IPs surfaces a clear SSRFFetchError.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1010
Function
test_pinned_fetch_raises_last_error_when_all_ips_fail
When every pinned IP errors transiently, the last error is raised.
src/openapi-mcp-server/tests/test_ssrf_protection.py:988
Function
test_pinned_fetch_refuses_redirect_to_metadata
A 302 toward the metadata IP is rejected, not followed (redirect bypass).
src/openapi-mcp-server/tests/test_ssrf_protection.py:840
Function
test_pinned_fetch_rejects_disallowed_scheme
A non-http(s) scheme on the validated URL is rejected.
src/openapi-mcp-server/tests/test_ssrf_protection.py:945
Function
test_pinned_fetch_rejects_oversized_body_content_length
A body advertising an oversized Content-Length is rejected up front.
src/openapi-mcp-server/tests/test_ssrf_protection.py:863
Function
test_pinned_fetch_rejects_oversized_body_streaming
A body exceeding the size cap is rejected while streaming.
src/openapi-mcp-server/tests/test_ssrf_protection.py:854
Function
test_pinned_fetch_tries_next_ip_on_transient_error
A transient error on the first pinned IP falls through to the next.
src/openapi-mcp-server/tests/test_ssrf_protection.py:952
Method
test_pipe_lines_inside_code_fence_not_truncated
Pipe-leading lines inside a fenced code block are never truncated.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1285
Method
test_pk_array_length_mismatch
Array partition_key with different-length array pk_template — error.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_gsi_validator.py:685
Method
test_pk_template_fstring_expression_rejected
A pk_template with an arbitrary f-string brace expression is rejected.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_identifier_validator.py:463
Method
test_pk_type_mismatch_array_vs_string
Array partition_key with string pk_template — type mismatch error.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_gsi_validator.py:703
Method
test_pk_type_mismatch_string_vs_array
String partition_key with array pk_template — type mismatch error.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_gsi_validator.py:712
Function
test_placeholder_count_must_match_bound_parameters
The policy rejects the same positional parameter-count mismatches as psycopg.
src/aurora-dsql-mcp-server/tests/test_sql_guard.py:112
Method
test_placeholder_end_date_is_active
A 2099-12-31 endDate classifies ACTIVE once started, so its balance counts as usable.
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:326
Method
test_placeholder_is_not_a_metric
A service explanation is returned as the reason, never as savings_percentage.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2780
Function
test_placeholder_normalization_matches_psycopg_raw_query_scanning
Placeholders are converted across the raw text exactly as psycopg does.
src/aurora-dsql-mcp-server/tests/test_sql_guard.py:72
Function
test_placeholder_normalization_matches_reported_driver_differential
Markers inside strings and comments contribute to psycopg numbering.
src/aurora-dsql-mcp-server/tests/test_sql_guard.py:84
Function
test_placeholder_normalization_preserves_psycopg_unmatched_percent
Terminal percent and percent before a line feed remain unchanged.
src/aurora-dsql-mcp-server/tests/test_sql_guard.py:99
Method
test_plain_decimal_keeps_every_digit_and_never_exponent
Exponent strings become exact plain decimals; digits are never rounded.
src/billing-cost-management-mcp-server/tests/tools/test_billing_conductor_operations.py:1310
Method
test_plain_default
Plain TCP mode resolves to 50000 when no port is given.
src/db2-mcp-server/tests/test_server.py:528
Method
test_plain_fields_wrapped
(self)
src/aws-transform-mcp-server/tests/test_hitl_schemas.py:551
Method
test_plain_into_dumpfile_is_detected
Bare INTO DUMPFILE without comments was already caught and still is.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:205
Method
test_plain_into_outfile_is_detected
Bare INTO OUTFILE without comments was already caught and still is.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:200
Method
test_plain_load_data_infile_is_detected_in_readonly
Bare LOAD DATA INFILE is reported as a mutation in readonly mode.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:210
Method
test_plain_multi_value_cell_is_unaffected
Without a callout every block boundary is a value boundary.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1676
Method
test_plain_name
Plain log group name should be returned as-is.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_index_recommender.py:285
Method
test_plain_select_allowed
A plain SELECT query should pass validation.
src/billing-cost-management-mcp-server/tests/tools/test_storage_lens_tools.py:1306
Method
test_plain_string_treated_as_single_id
(self)
src/aws-healthomics-mcp-server/tests/test_sequence_store_tools.py:979
Method
test_plain_string_treated_as_single_id
(self)
src/aws-healthomics-mcp-server/tests/test_sequence_store_tools.py:1190
Method
test_plain_tcp
Plain TCP mode omits SSL options.
src/db2-mcp-server/tests/test_ibm_db_connection.py:76
Method
test_plain_tcp_without_certificate_allowed
ssl_encryption='off' does not require a certificate.
src/db2-mcp-server/tests/test_ibm_db_connection.py:96
Method
test_plain_token_rejected_in_multi_region_mode
A native single-region token is rejected when a regions list is given.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_automation_tools.py:2466
Method
test_plain_write_operations_still_durable
Baseline: plain INSERT/UPDATE still commit after the fix. Guards against a regression where switching to ``conn.in_transaction`` migh
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:646
Method
test_plan_api_error_returns_failure
(self, _, mock_paginate, handler, ctx)
src/aws-transform-mcp-server/tests/test_get_resource.py:512
Method
test_plan_api_error_returns_failure
(self, _, mock_fes, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:958
Method
test_plan_empty_page_with_token_is_not_not_found
An empty page that carries a nextToken keeps paginating instead of NOT_FOUND.
src/aws-transform-mcp-server/tests/test_list_resources.py:940
Method
test_plan_last_page_has_no_token
(self, _, mock_fes, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:923
Method
test_plan_no_steps_returns_not_found
A planless job returns empty steps (not an error) and maps to NOT_FOUND.
src/aws-transform-mcp-server/tests/test_get_resource.py:495
Method
test_plan_no_steps_returns_not_found
A planless job returns empty steps (not an error) and maps to NOT_FOUND.
src/aws-transform-mcp-server/tests/test_list_resources.py:890
Method
test_plan_non_dict_response_returns_not_found
(self, _, mock_fes, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:907
Method
test_plan_requires_job_id
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_get_resource.py:461
Method
test_plan_requires_job_id
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:854
Method
test_plan_requires_workspace_id
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_get_resource.py:452
Method
test_plan_requires_workspace_id
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:845
Method
test_plan_returns_steps
(self, _, mock_fes, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:867
Method
test_plan_success
(self, _, mock_paginate, handler, ctx)
src/aws-transform-mcp-server/tests/test_get_resource.py:474
← previous
next →
27,901–28,000 of 35,417, ranked by callers