MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

Methodtest_client_error_propagates
Should propagate ClientError from AWS.
src/mysql-mcp-server/tests/test_cp_api_simple_functions.py:162
Methodtest_client_error_propagates
Test that ClientError in _discover_services_by_group is re-raised.
src/cloudwatch-applicationsignals-mcp-server/tests/test_group_tools.py:1676
Methodtest_client_error_raises
A Secrets Manager ClientError is wrapped in a ValueError.
src/db2-mcp-server/tests/test_ibm_db_connection.py:501
Methodtest_client_error_raises_http_error
(self)
src/aws-transform-mcp-server/tests/test_transform_api_client.py:388
Methodtest_client_error_raises_wrapped
A ClientError is raised as McpError, with the message inside the data boundary.
src/db2-mcp-server/tests/test_server.py:245
Methodtest_client_error_reraises
ClientError from create_db_cluster is logged and re-raised.
src/mysql-mcp-server/tests/test_cp_api_simple_functions.py:257
Methodtest_client_error_returns_structured
ClientError returns structured error JSON.
src/security-agent-mcp-server/tests/test_server.py:1382
Methodtest_client_error_returns_structured
ClientError returns structured error JSON.
src/security-agent-mcp-server/tests/test_server.py:1430
Methodtest_client_error_validation
Test handling of ValidationException.
src/cloudwatch-applicationsignals-mcp-server/tests/test_group_tools.py:1477
Methodtest_client_exception
Test client initialization failure is handled gracefully. Verifies that when the MCP client fails to initialize, the function raises
src/aws-iac-mcp-server/tests/client/test_aws_knowledge_client.py:59
Methodtest_client_factory_methods
Test client factory methods for different AWS services.
src/amazon-translate-mcp-server/tests/test_aws_client.py:876
Methodtest_client_initialization
Test client initialization.
src/healthlake-mcp-server/tests/test_fhir_operations.py:13
Methodtest_client_initialization_with_custom_config
Test AWS client initialization with custom configuration.
src/amazon-translate-mcp-server/tests/test_aws_client.py:805
Methodtest_client_initialization_with_no_credentials
Test client initialization when no credentials are available.
src/healthlake-mcp-server/tests/test_fhir_client_comprehensive.py:1033
Methodtest_client_initialization_with_region
Test that client is initialized with the correct region.
src/s3-tables-mcp-server/tests/test_s3_operations.py:135
Methodtest_client_manager_cleanup
Test client manager cleanup functionality.
src/amazon-translate-mcp-server/tests/test_aws_client.py:599
Methodtest_client_passes_config_to_securityagent
_client() passes the botocore config to boto3 securityagent client.
src/security-agent-mcp-server/tests/test_aws_client.py:590
Methodtest_client_service_unavailable_error
Test client creation with service unavailable error.
src/amazon-translate-mcp-server/tests/test_aws_client.py:318
Functiontest_client_side_filter_error
Test that a malformed client-side filter raises an error.
src/aws-api-mcp-server/tests/parser/test_parser.py:572
Methodtest_client_that_cannot_prompt_is_refused
A client without elicitation support is refused rather than run unconfirmed.
src/redshift-mcp-server/tests/test_server.py:259
Methodtest_client_with_mocked_module
Test client creation with module-level mocking for better coverage.
src/ecs-mcp-server/tests/unit/test_aws_utils.py:124
Methodtest_clone_is_detected
``CLONE INSTANCE ...`` — copies the entire instance data directory.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1023
Methodtest_close
Test closing the client.
src/amazon-keyspaces-mcp-server/tests/test_client.py:566
Methodtest_close
(self)
src/valkey-mcp-server/tests/test_embeddings.py:308
Methodtest_close
Test closing the connection resets the cached client.
src/documentdb-mcp-server/tests/test_connection_tools.py:134
Methodtest_close
close() should be callable.
src/mysql-mcp-server/tests/test_abstract_db_connection.py:66
Methodtest_close
Test closing the client manager.
src/amazon-translate-mcp-server/tests/test_aws_client.py:473
Methodtest_close
Test that close method completes without error.
src/postgres-mcp-server/tests/test_rds_api_connection.py:236
Methodtest_close
close() invokes ibm_db.close and clears the handle.
src/db2-mcp-server/tests/test_ibm_db_connection.py:477
Functiontest_close_all
close_all closes every connection and empties the map.
src/oracle-mcp-server/tests/test_db_connection_map.py:99
Functiontest_close_all
close_all() empties the map.
src/mssql-mcp-server/tests/test_db_connection_map.py:69
Methodtest_close_all
close_all() should close all connections and clear the map.
src/mysql-mcp-server/tests/test_db_connection_map.py:355
Functiontest_close_all_async
close_all_async closes all connections and clears the map.
src/mssql-mcp-server/tests/test_pool_exhaustion_and_expiry.py:183
Methodtest_close_all_async_awaits_coroutine_closes
close_all_async() closes connections on the current event loop.
src/postgres-mcp-server/tests/test_db_connection_map.py:543
Methodtest_close_all_async_bounds_a_wedged_close
A close that never returns is abandoned after the timeout and left mapped.
src/postgres-mcp-server/tests/test_db_connection_map.py:614
Functiontest_close_all_async_clears_and_closes
close_all_async() awaits each connection's close() and empties the map.
src/mssql-mcp-server/tests/test_db_connection_map.py:146
Functiontest_close_all_async_close_outside_loop
close_all() drives awaitable closes to completion when no loop is running.
src/oracle-mcp-server/tests/test_db_connection_map.py:152
Methodtest_close_all_async_closes_concurrently
close_all_async() waits on every close together, not one after another.
src/postgres-mcp-server/tests/test_db_connection_map.py:586
Functiontest_close_all_async_no_running_loop
close_all drives async close() via asyncio.run when no loop is running.
src/db2-mcp-server/tests/test_db_connection_map.py:235
Functiontest_close_all_async_swallows_close_errors
close_all_async() logs and continues when a connection's close() raises.
src/mssql-mcp-server/tests/test_db_connection_map.py:157
Methodtest_close_all_async_warns_and_continues_after_failed_close
A failed async close warns and still drains later cached connections.
src/postgres-mcp-server/tests/test_db_connection_map.py:555
Methodtest_close_all_awaits_coroutine_close_when_no_running_loop
close_all() drives an async close() to completion via asyncio.run. Called from sync context (no running event loop), a coroutine retu
src/postgres-mcp-server/tests/test_db_connection_map.py:462
Methodtest_close_all_cancels_coroutine_when_inside_running_loop
Inside a running loop, asyncio.run raises RuntimeError. close_all() must catch it and close() the coroutine (cancelling it) rather th
src/postgres-mcp-server/tests/test_db_connection_map.py:485
Methodtest_close_all_clears_map
Test close_all() clears the connection map.
src/postgres-mcp-server/tests/test_db_connection_map.py:395
Methodtest_close_all_closes_all_connections
Test close_all() calls close() on all connections.
src/postgres-mcp-server/tests/test_db_connection_map.py:373
Methodtest_close_all_continues_after_exception
Test close_all() continues closing other connections after one fails.
src/postgres-mcp-server/tests/test_db_connection_map.py:434
Functiontest_close_all_empty_map_is_noop
close_all() returns early without error when the map is empty.
src/mssql-mcp-server/tests/test_db_connection_map.py:113
Methodtest_close_all_handles_close_exception
Test close_all() handles exceptions during close() gracefully.
src/postgres-mcp-server/tests/test_db_connection_map.py:408
Methodtest_close_all_handles_exception
close_all() should handle exceptions from close() gracefully.
src/mysql-mcp-server/tests/test_db_connection_map.py:369
Functiontest_close_all_inside_running_loop
close_all() schedules closes on the active loop when called from within one.
src/mssql-mcp-server/tests/test_db_connection_map.py:128
Functiontest_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:162
Methodtest_close_all_logs_runtime_error_from_awaited_close
A RuntimeError raised by close() is logged, not treated as a nested loop.
src/postgres-mcp-server/tests/test_db_connection_map.py:519
Methodtest_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:672
Functiontest_close_all_running_loop_logs_scheduling_warning
close_all logs a warning at scheduling time, before the map is cleared. On the running-loop path, close tasks are scheduled but not awaited, and
src/db2-mcp-server/tests/test_db_connection_map.py:272
Functiontest_close_all_running_loop_tolerates_task_error
A failing async close on the running loop is logged and the map still clears.
src/db2-mcp-server/tests/test_db_connection_map.py:263
Functiontest_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
Functiontest_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:143
Functiontest_close_all_sync
close_all closes synchronous connections and clears the map.
src/db2-mcp-server/tests/test_db_connection_map.py:226
Methodtest_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
Functiontest_close_all_tolerates_errors
A failing close does not prevent the map from clearing.
src/db2-mcp-server/tests/test_db_connection_map.py:244
Methodtest_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:650
Functiontest_close_all_with_running_loop
close_all schedules async closes on the running loop and clears the map.
src/db2-mcp-server/tests/test_db_connection_map.py:252
Methodtest_close_calls_client_close
(self)
src/valkey-mcp-server/tests/test_connection.py:306
Functiontest_close_connection
Test that close_connection properly closes and clears the client.
src/elasticache-mcp-server/tests/test_connection.py:90
Methodtest_close_connection_existing
Test close_connection with existing connection.
src/memcached-mcp-server/tests/test_connection.py:105
Functiontest_close_connection_no_client
Test close_connection when no client exists.
src/elasticache-mcp-server/tests/test_connection.py:105
Methodtest_close_connection_no_connection
Test close_connection with no existing connection.
src/memcached-mcp-server/tests/test_connection.py:119
Methodtest_close_does_nothing
RDS Data API close should be a no-op.
src/mysql-mcp-server/tests/test_rds_api_connection.py:188
Functiontest_close_empties_pool
close() sets the pool to None.
src/mssql-mcp-server/tests/test_pymssql_pool_connection.py:116
Methodtest_close_last_page_error
Cannot close the last remaining page.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:373
Methodtest_close_last_tab_error
Cannot close the last remaining tab.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:207
Functiontest_close_logs_warning_on_failure
A failing ibm_db.close is logged, not silently swallowed.
src/db2-mcp-server/tests/test_ibm_db_connection.py:761
Methodtest_close_noop_when_no_client
(self)
src/valkey-mcp-server/tests/test_connection.py:303
Methodtest_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
Methodtest_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
Methodtest_close_page_error
Close page error returns error_with_snapshot result.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:362
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_close_pool
Should close the pool and set it to None.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:503
Methodtest_close_pool
Test closing the connection pool.
src/postgres-mcp-server/tests/test_psycopg_connector.py:507
Methodtest_close_pool_when_none
Test closing when pool is None.
src/postgres-mcp-server/tests/test_psycopg_connector.py:532
Functiontest_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
Functiontest_close_survives_inner_errors
close() swallows exceptions thrown while closing individual connections.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:501
Methodtest_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
Methodtest_close_tab_missing_index
Close tab without tab_index returns error.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_management.py:264
Methodtest_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
Methodtest_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
Methodtest_close_when_no_client
Test that close is a no-op when no client is open.
src/documentdb-mcp-server/tests/test_connection_tools.py:147
Methodtest_close_when_no_pool
Should not raise when pool is already None.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:529
Functiontest_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
Methodtest_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
Methodtest_closing_drains_the_session
Nothing is left to run on it, so it should not idle for the whole keepalive.
src/redshift-mcp-server/tests/test_redshift.py:1974
Methodtest_closing_on_its_own
A transaction can be ended without a last statement.
src/redshift-mcp-server/tests/test_redshift.py:1956
Methodtest_closing_with_a_last_statement
One batch runs the statement and ends the transaction, which is one round trip.
src/redshift-mcp-server/tests/test_redshift.py:2002
Methodtest_cloud_wan_tools_available
Test that Cloud WAN tools are available.
src/aws-network-mcp-server/tests/test_server.py:109
Functiontest_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
Functiontest_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
Methodtest_cloudformation_transformer
(self)
src/ecs-mcp-server/tests/unit/api/test_ecs_troubleshooting.py:59
Methodtest_cloudtrail_integration_disabled
Test CloudTrail integration when disabled.
src/aws-iac-mcp-server/tests/tools/test_cloudformation_deployment_troubleshooter.py:231
← previousnext →13,401–13,500 of 35,417, ranked by callers