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_readonly_mode
Test that readonly mode prevents cluster creation.
src/elasticache-mcp-server/tests/tools/cc/test_create_additional.py:38
Method
test_readonly_mode
(self)
src/valkey-mcp-server/tests/test_command_runners.py:154
Method
test_readonly_mode
(self)
src/valkey-mcp-server/tests/test_command_runners.py:218
Method
test_readonly_mode_logging
Test logging message for read-only mode.
src/healthlake-mcp-server/tests/test_readonly_mode.py:58
Function
test_readonly_mode_updates_tool_descriptions
In readonly mode, main() appends a bypass-prevention notice to tool descriptions.
src/mssql-mcp-server/tests/test_server.py:189
Method
test_readonly_property_is_property
readonly_query should be a property, not a plain attribute.
src/mysql-mcp-server/tests/test_abstract_db_connection.py:83
Method
test_readonly_query_allows_safe_queries
Test that readonly_query allows safe SELECT queries.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:971
Method
test_readonly_query_blocks_injection_risks
Test that readonly_query blocks SQL injection patterns.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:913
Method
test_readonly_query_blocks_mutating_keywords
Test that readonly_query blocks SQL with mutating keywords.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:893
Method
test_readonly_query_blocks_transaction_bypass_server_level
Test that readonly_query blocks transaction bypass attempts at server level.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:941
Method
test_readonly_query_case_insensitive_detection
Test that security checks work regardless of case.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1011
Function
test_readonly_query_commit_on_success
(mocker)
src/aurora-dsql-mcp-server/tests/test_server.py:289
Method
test_readonly_query_complex_bypass_attempt
Test detection of complex transaction bypass attempts.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1002
Function
test_readonly_query_error_on_write_sql
(mocker)
src/aurora-dsql-mcp-server/tests/test_server.py:354
Function
test_readonly_query_internal_error_on_failed_begin
(mocker)
src/aurora-dsql-mcp-server/tests/test_server.py:336
Function
test_readonly_query_passes_parameter_binding_context_to_guard
A supplied params list enables psycopg placeholder parsing.
src/aurora-dsql-mcp-server/tests/test_sql_guard_wiring.py:95
Method
test_readonly_query_permission_statements
Test detection of permission-related statements.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1060
Method
test_readonly_query_postgresql_specific_patterns
Test detection of PostgreSQL-specific security issues.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1043
Function
test_readonly_query_rejects_session_mutation_at_tool_level
readonly_query must reject session-mutating SQL before touching the DB.
src/aurora-dsql-mcp-server/tests/test_server.py:614
Function
test_readonly_query_reset_failure_does_not_mask_result
A failing session-state scrub is logged but must not fail a good query.
src/aurora-dsql-mcp-server/tests/test_server.py:536
Function
test_readonly_query_resets_session_state_on_success
readonly_query must scrub session/GUC state after a successful query. A SET / set_config() with session scope survives COMMIT and would other
src/aurora-dsql-mcp-server/tests/test_server.py:501
Function
test_readonly_query_rollback_error_logging
Test that rollback errors are logged but don't prevent exception propagation.
src/aurora-dsql-mcp-server/tests/test_server.py:451
Function
test_readonly_query_rollback_on_failure
(mocker)
src/aurora-dsql-mcp-server/tests/test_server.py:313
Method
test_readonly_query_security_checks_order
Test that security checks are performed in the correct order.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:992
Function
test_readonly_query_stops_raw_placeholder_count_mismatch_before_connection
Quoted and commented markers count as psycopg placeholders.
src/aurora-dsql-mcp-server/tests/test_sql_guard_wiring.py:116
Function
test_readonly_query_stops_unicode_escape_before_connection
The escaped function must not reach the read-only transaction.
src/aurora-dsql-mcp-server/tests/test_sql_guard_wiring.py:29
Method
test_readonly_query_system_statements
Test detection of system-level statements.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1074
Function
test_readonly_query_throws_exception_on_empty_input
()
src/aurora-dsql-mcp-server/tests/test_server.py:74
Function
test_readonly_query_transaction_bypass_attempt
Test that transaction bypass attempts are rejected.
src/aurora-dsql-mcp-server/tests/test_error_paths.py:10
Function
test_readonly_query_uses_unbound_percent_semantics
Without params, modulo syntax cannot be mistaken for a placeholder.
src/aurora-dsql-mcp-server/tests/test_sql_guard_wiring.py:79
Method
test_readonly_query_with_comments
Test that security checks work with SQL comments.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:1025
Function
test_readonly_query_without_cluster_config
Test that readonly_query returns helpful error when cluster not configured.
src/aurora-dsql-mcp-server/tests/test_graceful_startup.py:36
Function
test_readonly_query_write_error
Test ReadOnlySqlTransaction error handling.
src/aurora-dsql-mcp-server/tests/test_error_paths.py:36
Method
test_readonly_rejects_mutating
A mutating statement is rejected in read-only mode.
src/db2-mcp-server/tests/test_server.py:138
Method
test_readonly_rejects_stacked_query
A stacked query is rejected -- by the injection gate, not the transaction gate. Kept as its own case (this is what the transaction-bypass tes
src/db2-mcp-server/tests/test_server.py:160
Method
test_readonly_rejects_transaction_bypass
Bare transaction control in read-only mode is rejected as a bypass attempt. The SQL deliberately contains NO ';'. The previous version of thi
src/db2-mcp-server/tests/test_server.py:145
Method
test_readonly_rollback
A read-only query fetches rows and rolls back.
src/db2-mcp-server/tests/test_ibm_db_connection.py:331
Method
test_readonly_tool_filtering
Test that only read-only tools are available in read-only mode.
src/healthlake-mcp-server/tests/test_readonly_mode.py:241
Function
test_readonly_true
Verify readonly=True is stored correctly.
src/oracle-mcp-server/tests/test_abstract_db_connection.py:36
Method
test_readonly_true
readonly_query should return True when initialized with readonly=True.
src/mysql-mcp-server/tests/test_abstract_db_connection.py:49
Method
test_readonly_violation_detection
Test detection of read-only mode violations.
src/healthlake-mcp-server/tests/test_readonly_mode.py:269
Method
test_ready
Returns ready when all configured.
src/security-agent-mcp-server/tests/test_server.py:63
Method
test_ready_dispatch_includes_active_not_confirmed_strip
A Ready verdict dispatches to the ready renderer (ACTIVE strip path).
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:3680
Method
test_ready_has_events_returns_ready
When ACTIVE is empty but READY has events, a Ready verdict results.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:3787
Method
test_ready_wins_when_active_empty_and_ready_has_events
Ready wins when active empty and ready has events.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_status_assessment.py:77
Function
test_real_block_comment_after_string_still_stripped
A real block comment after a string literal is still stripped.
src/oracle-mcp-server/tests/test_server.py:451
Function
test_real_comment_after_double_quoted_identifier
A real comment after a double-quoted identifier is still stripped.
src/oracle-mcp-server/tests/test_server.py:491
Function
test_real_comment_after_string_still_stripped
A real line comment after a string literal is still stripped.
src/oracle-mcp-server/tests/test_server.py:444
Method
test_real_cwl_bundle_success
Test actual CWL bundle linting without mocks.
src/aws-healthomics-mcp-server/tests/test_workflow_linting.py:1357
Method
test_real_cwl_nested_imports
Test CWL with nested tool imports.
src/aws-healthomics-mcp-server/tests/test_workflow_linting.py:1435
Method
test_real_cwl_validation_warnings
Test CWL workflows that generate validation warnings.
src/aws-healthomics-mcp-server/tests/test_workflow_linting.py:1497
Method
test_real_inactive_status_passed_through
An Inactive status returned by the API is passed through with its timestamps.
src/billing-cost-management-mcp-server/tests/tools/test_cost_optimization_hub_helpers.py:2490
Method
test_real_mutation_after_dollar_quote_still_caught
Blanking a dollar-quoted body must not hide a real statement after it. A statement that LEADS with a dollar-quoted string then performs a rea
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:709
Method
test_real_mutation_outside_literal_still_caught
Blanking literals must not hide a real statement around them.
src/aurora-dsql-mcp-server/tests/test_readonly_enforcement.py:555
Method
test_real_mutation_with_conditional_comment_still_flagged
A query with both a conditional comment and a real mutation is flagged. Whether the guard or the keyword scan reports first, callers see a
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:144
Function
test_real_select_into_still_detected
A real SELECT INTO #temp is still detected.
src/mssql-mcp-server/tests/test_injection_false_positives.py:169
Method
test_real_wdl_nested_imports
Test WDL with complex nested directory imports.
src/aws-healthomics-mcp-server/tests/test_workflow_linting.py:1398
Method
test_real_wdl_validation_warnings
Test WDL workflows that generate validation warnings.
src/aws-healthomics-mcp-server/tests/test_workflow_linting.py:1475
Method
test_real_world_example_with_metadata
Test with real-world example data that includes metadata.
src/aws-documentation-mcp-server/tests/test_metadata_handling.py:255
Function
test_real_world_tooling_queries_not_over_blocked
Introspection that agents, ORMs, and psql actually issue must pass.
src/postgres-mcp-server/tests/test_sql_guard_read_only_corpus.py:827
Method
test_reaping_is_scoped_to_the_target_being_opened
One cluster's idle transactions are not another's to reap. Dropping the target comparison reaped every idle transaction in the process whenev
src/redshift-mcp-server/tests/test_redshift.py:4247
Method
test_reassembles_metadata_and_payload_chunks
(self)
src/aws-transform-mcp-server/tests/test_transform_api_client_streaming.py:38
Function
test_rec_details_description_documents_commitment_metrics
The schema the agent sees names break-even as RI-only and ROI as the SP metric.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:1570
Function
test_rec_details_description_documents_lookup_warning
The served description says missing details lead with a warning.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:2424
Function
test_rec_details_description_names_dynamodb_payment_option
The schema tells the agent why a DynamoDB rec's two payment options differ.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:1580
Function
test_rec_details_description_states_commitment_scope
The served description says which rows are kept and what the summaries cover.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:2129
Function
test_rec_details_routing
One COH recommendation routes to get_recommendation, enrichment to rec-details.
src/billing-cost-management-mcp-server/tests/test_server_instructions.py:215
Method
test_receiver_role_documented_as_not_a_superset
The surprising parts of receiver_role are all stated.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:1334
Method
test_receiver_role_enum_matches_the_api
The parameter offers exactly the roles the API accepts, and no others.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:1292
Method
test_receiver_role_invalid_value_rejected_by_schema
A role outside the enum fails before the handler runs.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:1299
Method
test_receiver_role_lifts_one_month_cap
A 92-day range is accepted with a receiver role and sent whole.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:280
Method
test_receiver_role_sent_as_filter
receiver_role reaches boto3 as Filter.ReceiverRole.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:260
Method
test_receiver_role_span_over_five_years_rejected_locally
A span past five years is refused before any AWS call, naming the bound.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:344
Method
test_receiver_role_start_before_the_estimate_era_reaches_the_api
No local floor is imposed on how far back a receiver_role range may start. A range starting well before the feature's first data is accepted
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:319
Method
test_receiver_role_still_requires_a_time_filter
A role lifts the span cap but does not remove the filter requirement. The message must name the role's own bound, not the one-month rule it
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:513
Method
test_receiver_role_survives_a_continuation
A continuation keeps the role, or page two answers a different query.
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:531
Method
test_receiver_role_with_invoice_id_is_rejected
A role makes the service read the request as an account query. Verified live with a real invoice id: the role alone is rejected ("Bil
src/billing-cost-management-mcp-server/tests/tools/test_invoicing_tools.py:494
Method
test_recent_communications
Test RecentCommunications model.
src/aws-support-mcp-server/tests/test_models.py:141
Method
test_rechunk_depth_cap
Re-chunking should stop at MAX_RECHUNK_DEPTH even if limits keep being hit.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_cwl_insights_batch.py:408
Method
test_rechunk_on_output_limit
When results hit 10k records, the chunk should split the time range.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_cwl_insights_batch.py:295
Method
test_rechunk_on_timeout
When a chunk times out, it should split the time range.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_cwl_insights_batch.py:339
Method
test_rechunk_with_partial_results
Rechunk at max depth with partial results should count as successful.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_cwl_insights_batch.py:903
Method
test_recognized_disable_values_use_single_tenant
Any recognized disable value (any case, padded) yields single-tenant mode.
src/aws-healthomics-mcp-server/tests/test_config_multitenant_parsing.py:132
Method
test_recognized_enable_values_enable_multi_tenant
Any recognized enable value (any case, padded) enables multi-tenant mode.
src/aws-healthomics-mcp-server/tests/test_config_multitenant_parsing.py:123
Method
test_recommend
Test getting content recommendations.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1095
Method
test_recommend_asks_about_the_html_page
Recommendations are indexed by .html page, so a followed .md link maps to one.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1219
Method
test_recommend_encodes_the_path
A path with query-significant characters cannot add parameters to the API call.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1226
Method
test_recommend_http_error
Test getting content recommendations with HTTP error.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1146
Method
test_recommend_instance_cpu_heavy
Test recommendation for CPU-heavy workload.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:52
Method
test_recommend_instance_custom_headroom
Test recommendation with custom headroom.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:75
Method
test_recommend_instance_fallback_to_largest
Test fallback to largest instance for extreme requirements.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:84
Method
test_recommend_instance_memory_heavy
Test recommendation for memory-heavy workload.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:40
Method
test_recommend_instance_small_workload
Test recommendation for small workload.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:29
Method
test_recommend_instance_zero_usage
Test recommendation with zero usage.
src/aws-healthomics-mcp-server/tests/test_instance_recommender.py:64
Method
test_recommend_json_error
Test getting content recommendations with JSON decode error.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1181
Method
test_recommend_rejects_unsupported_domain
A URL outside the documentation domains is rejected before any request.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1247
Method
test_recommend_status_error
Test getting content recommendations with status code error.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1162
Function
test_recommendation_details_server_initialization
Test that the recommendation_details_server is properly initialized.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:1558
Method
test_recommendation_result_creation
Test creation of RecommendationResult.
src/aws-documentation-mcp-server/tests/test_models.py:100
Method
test_recommendation_result_without_context
Test creation of RecommendationResult without context.
src/aws-documentation-mcp-server/tests/test_models.py:111
← previous
next →
28,901–29,000 of 35,417, ranked by callers