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
Function
test_close_all_inside_running_loop_schedules_tasks
close_all() schedules close tasks on the active loop; done-callback handles results.
src/oracle-mcp-server/tests/test_db_connection_map.py:151
Method
test_close_all_mixed_sync_and_async_close
A map with both sync and async close() connections is fully drained.
src/postgres-mcp-server/tests/test_db_connection_map.py:539
Function
test_close_all_swallows_close_errors
close_all() clears the map even when a connection's close() raises.
src/mssql-mcp-server/tests/test_db_connection_map.py:119
Function
test_close_all_swallows_sync_close_errors
close_all() logs and continues when a connection's close() raises synchronously.
src/oracle-mcp-server/tests/test_db_connection_map.py:132
Method
test_close_all_sync_runs_even_when_mcp_run_raises
The finally: close_all_sync() must run even when mcp.run() blows up.
src/mysql-mcp-server/tests/test_server_main.py:171
Method
test_close_all_warns_when_coroutine_await_fails
A coroutine close() that raises is caught and logged, not propagated.
src/postgres-mcp-server/tests/test_db_connection_map.py:517
Method
test_close_calls_client_close
(self)
src/valkey-mcp-server/tests/test_connection.py:198
Function
test_close_connection
Test that close_connection properly closes and clears the client.
src/elasticache-mcp-server/tests/test_connection.py:90
Method
test_close_connection
Test closing a connection.
src/documentdb-mcp-server/tests/test_connection_tools.py:81
Method
test_close_connection_existing
Test close_connection with existing connection.
src/memcached-mcp-server/tests/test_connection.py:105
Function
test_close_connection_no_client
Test close_connection when no client exists.
src/elasticache-mcp-server/tests/test_connection.py:105
Method
test_close_connection_no_connection
Test close_connection with no existing connection.
src/memcached-mcp-server/tests/test_connection.py:119
Method
test_close_connection_not_found
Test closing a non-existent connection.
src/documentdb-mcp-server/tests/test_connection_tools.py:96
Method
test_close_does_nothing
RDS Data API close should be a no-op.
src/mysql-mcp-server/tests/test_rds_api_connection.py:188
Function
test_close_empties_pool
close() sets the pool to None.
src/mssql-mcp-server/tests/test_pymssql_pool_connection.py:116
Method
test_close_idle_connections
Test closing idle connections.
src/documentdb-mcp-server/tests/test_connection_tools.py:102
Method
test_close_last_page_error
Cannot close the last remaining page.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:373
Method
test_close_last_tab_error
Cannot close the last remaining tab.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:207
Method
test_close_noop_when_no_client
(self)
src/valkey-mcp-server/tests/test_connection.py:195
Method
test_close_page
Open a new tab, select it, and close it with browser_close.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_integ_browser_session.py:1091
Method
test_close_page
Close page closes the active page, updates tracking, and returns snapshot.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:340
Method
test_close_page_error
Close page error returns error_with_snapshot result.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:362
Method
test_close_page_no_remaining_context
Close page when get_context raises returns error.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:390
Method
test_close_page_post_close_context_raises
Close page returns plain message when post-close get_context raises ValueError.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:498
Method
test_close_page_post_close_empty_pages
Close page when post-close context has empty pages returns plain message.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:531
Method
test_close_pool
Should close the pool and set it to None.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:503
Method
test_close_pool
Test closing the connection pool.
src/postgres-mcp-server/tests/test_psycopg_connector.py:505
Method
test_close_pool_when_none
Test closing when pool is None.
src/postgres-mcp-server/tests/test_psycopg_connector.py:530
Function
test_close_sets_pool_to_none
Verify close() sets pool to None and awaits pool.close().
src/oracle-mcp-server/tests/test_oracledb_pool_connection.py:212
Function
test_close_survives_inner_errors
close() swallows exceptions thrown while closing individual connections.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:501
Method
test_close_tab
Close tab removes it, updates active page, and returns snapshot.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:187
Method
test_close_tab_missing_index
Close tab without tab_index returns error.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:264
Method
test_close_tab_no_remaining_pages
Close tab when no pages remain returns plain message without snapshot.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:452
Method
test_close_tab_out_of_range
Close tab with out-of-range index returns error.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:277
Method
test_close_when_no_pool
Should not raise when pool is already None.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:529
Function
test_close_when_pool_none_is_noop
close() on an un-initialized pool is a no-op.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:523
Method
test_closes_pool_on_each_connection
close_all_sync calls .pool.close() on every cached connection and clears the map.
src/mysql-mcp-server/tests/test_db_connection_map.py:640
Method
test_cloud_wan_tools_available
Test that Cloud WAN tools are available.
src/aws-network-mcp-server/tests/test_server.py:109
Function
test_cloudformation_pre_deploy_validation_includes_required_fields
Test that result includes all required instruction fields.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_pre_deploy_validation.py:33
Function
test_cloudformation_pre_deploy_validation_returns_valid_json
Test that cloudformation_pre_deploy_validation returns valid JSON.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_pre_deploy_validation.py:23
Method
test_cloudformation_transformer
(self)
src/ecs-mcp-server/tests/unit/api/test_ecs_troubleshooting.py:59
Method
test_cloudtrail_integration_disabled
Test CloudTrail integration when disabled.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_deployment_troubleshooter.py:231
Method
test_cloudtrail_integration_enabled
Test CloudTrail integration when enabled.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_deployment_troubleshooter.py:179
Function
test_cloudtrail_tools_initialization
Test CloudTrail tools can be initialized.
src/cloudtrail-mcp-server/tests/test_server.py:37
Method
test_cloudtrail_url_format
Test CloudTrail URL has correct format.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_deployment_troubleshooter.py:156
Function
test_cloudwatch_handler_initialization
()
src/eks-mcp-server/tests/test_server.py:357
Function
test_cloudwatch_handler_initialization_with_sensitive_data_access
()
src/eks-mcp-server/tests/test_server.py:379
Method
test_cloudwatch_logs_disabled
Should not enable CloudWatch logs when disabled.
src/mysql-mcp-server/tests/test_cp_api_connection.py:158
Method
test_cloudwatch_logs_disabled
Test cluster creation with CloudWatch logs disabled.
src/postgres-mcp-server/tests/test_cp_api_connection.py:476
Method
test_cloudwatch_logs_enabled
Should enable CloudWatch logs with audit, error, general, slowquery.
src/mysql-mcp-server/tests/test_cp_api_connection.py:137
Method
test_cluster_config
(self)
src/valkey-mcp-server/tests/test_connection.py:56
Method
test_cluster_creation_fails
Test handling of cluster creation failure.
src/postgres-mcp-server/tests/test_cp_api_connection.py:516
Method
test_cluster_describe_error
Test error handling when describing clusters fails.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_fetch_task_failures.py:649
Method
test_cluster_invalid_port_falls_back_to_default
Unparseable cluster Port falls back to DEFAULT_POSTGRES_PORT.
src/postgres-mcp-server/tests/test_server_internal_functions.py:535
Method
test_cluster_metadata_secret_used_when_no_override
Without any configured override, the cluster's MasterUserSecret drives auth.
src/postgres-mcp-server/tests/test_server_internal_functions.py:715
Method
test_cluster_not_found
Test when cluster is not found.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_fetch_task_failures.py:433
Method
test_cluster_not_found_raises
Should raise ValueError when cluster is not found.
src/mysql-mcp-server/tests/test_cp_api_simple_functions.py:59
Method
test_cluster_not_found_raises
A nonexistent cluster raises early with a clear message.
src/redshift-mcp-server/tests/test_review_executor.py:231
Method
test_cluster_only
Test execution with only cluster name provided.
src/ecs-mcp-server/tests/unit/troubleshooting_tools/test_get_ecs_troubleshooting_guidance.py:548
Method
test_cluster_status_populated
Test that cluster_status is extracted from Resilience.ClusterStatus.
src/aws-for-sap-management-mcp-server/tests/test_health.py:1888
Method
test_cluster_tls_uses_correct_advanced_config
(self, tmp_path)
src/valkey-mcp-server/tests/test_connection.py:116
Method
test_cluster_waiter_timeout
Test handling of cluster waiter timeout.
src/postgres-mcp-server/tests/test_cp_api_connection.py:540
Method
test_cn_host_allowed
docs.amazonaws.cn is on the CN allowlist.
src/aws-documentation-mcp-server/tests/test_server_aws_cn.py:356
Method
test_co_real_access_denied_error_reload_identity_decorator
Test real compute_optimizer access denied error with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1259
Method
test_co_real_enrollment_error_reload_identity_decorator
Test real compute_optimizer enrollment error with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1207
Method
test_co_real_exception_flow_calls_handle_error_reload_identity_decorator
Test real compute_optimizer exception flow calls handle_error with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1293
Method
test_co_real_get_auto_scaling_group_recommendations_reload_identity_decorator
Test real compute_optimizer get_auto_scaling_group_recommendations with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1044
Method
test_co_real_get_ebs_volume_recommendations_reload_identity_decorator
Test real compute_optimizer get_ebs_volume_recommendations dispatch.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1075
Method
test_co_real_get_ec2_recommendations_reload_identity_decorator
Test real compute_optimizer get_ec2_instance_recommendations with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1011
Method
test_co_real_get_idle_recommendations_reload_identity_decorator
Test real compute_optimizer get_idle_recommendations dispatch.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1159
Method
test_co_real_get_lambda_function_recommendations_reload_identity_decorator
Test real compute_optimizer get_lambda_function_recommendations dispatch.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1105
Method
test_co_real_get_rds_recommendations_reload_identity_decorator
Test real compute_optimizer get_rds_recommendations dispatch.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1135
Method
test_co_real_invalid_operation_error_reload_identity_decorator
Test real compute_optimizer invalid operation error with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1183
Method
test_co_real_resource_not_enrolled_error_reload_identity_decorator
Test real compute_optimizer with active enrollment status.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1231
Method
test_co_real_value_error_handling_reload_identity_decorator
Test real compute_optimizer ValueError handling with identity decorator.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1325
Method
test_co_region_parameter_passed_to_client
Test that the region parameter is passed to create_aws_client.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:1352
Method
test_code_capture_preserves_explicit_empty_argument_list
Code capture preserves explicit empty argument list.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1439
Method
test_code_deploy_multi_entry_point
Comma-separated entry point is split into a list.
src/amazon-bedrock-agentcore-mcp-server/tests/runtime/test_unit_lifecycle.py:95
Method
test_code_deploy_no_optional
Code deploy update without runtime/entry_point omits them.
src/amazon-bedrock-agentcore-mcp-server/tests/runtime/test_unit_lifecycle.py:342
Method
test_code_deploy_no_optional_fields
Code deploy without runtime or entry_point omits those keys.
src/amazon-bedrock-agentcore-mcp-server/tests/runtime/test_unit_lifecycle.py:117
Method
test_code_interpreter_primitive
Works for code-interpreter primitive.
src/amazon-bedrock-agentcore-mcp-server/tests/test_user_agent.py:61
Method
test_code_review_id_round_trip
get_code_review_id returns what set_code_review_id stored.
src/security-agent-mcp-server/tests/test_state.py:167
Method
test_code_tag_keeps_surrounding_spaces
The words either side of an inline tag stay separate words.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1727
Function
test_codeartifact_login_allowed_in_unrestricted_mode
Test that codeartifact login is allowed when FILE_ACCESS_MODE is UNRESTRICTED.
src/aws-api-mcp-server/tests/parser/test_parser_customizations.py:496
Method
test_codeartifact_login_rejected_in_workdir_mode
Test that codeartifact login is rejected in WORKDIR mode since it writes to home directory.
src/aws-api-mcp-server/tests/parser/test_parser_file_access.py:181
Method
test_codebuild_failure_returns_manual_instructions
Test CodeBuild failure returns manual push instructions.
src/aws-healthomics-mcp-server/tests/test_clone_container.py:629
Method
test_coerce_case_insensitive_type
Test coercing with case insensitive type.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:146
Method
test_coerce_data_name_fallback
Test coercing with data name fallback.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:168
Method
test_coerce_data_service_string
Test coercing data service string.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:99
Function
test_coerce_for_column_real_branch
REAL columns float-coerce; unfloatable values fall back to None, non-REAL passes through.
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:2099
Method
test_coerce_missing_service
Test coercing without service raises error.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:185
Method
test_coerce_non_service_type
Test coercing non-service type raises error.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:179
Method
test_coerce_service_dict
Test coercing service dictionary.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:110
Method
test_coerce_shorthand_service_string
Test coercing shorthand service string.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:88
Method
test_coerce_target_type_field
Test coercing with target_type field.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:157
Method
test_coerce_with_aws_account_id
Test coercing with AWS account ID.
src/cloudwatch-applicationsignals-mcp-server/tests/test_service_audit_utils.py:126
Method
test_coercer_direct
(self, raw, expected)
src/aws-transform-mcp-server/tests/test_hitl.py:427
Method
test_coercer_via_pydantic_validator
Ensure the Annotated type actually wires BeforeValidator into Pydantic.
src/aws-transform-mcp-server/tests/test_hitl.py:441
Method
test_cognito_auth_init_exception_handling
Test exception handling during CognitoAuthProvider initialization.
src/openapi-mcp-server/tests/auth/test_cognito_auth_coverage_boost.py:12
Method
test_cognito_auth_not_configured
Test handling of Cognito auth not configured.
src/openapi-mcp-server/tests/test_server_auth_errors.py:89
← previous
next →
12,101–12,200 of 32,024, ranked by callers