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_connect_jump_host_serverless_success
Test successful jump host connection.
src/elasticache-mcp-server/tests/tools/serverless/test_connect.py:189
Method
test_connect_no_credentials
Raises RuntimeError when SDK cannot generate WebSocket headers.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:314
Method
test_connect_offloads_to_thread
connect_to_database runs internal_create_connection via asyncio.to_thread. internal_create_connection does synchronous boto3 calls plus a ful
src/db2-mcp-server/tests/test_server.py:407
Function
test_connect_omits_login_timeout_when_zero
login_timeout_s=0 means no connect-time timeout, matching query_timeout_s=0.
src/db2-mcp-server/tests/test_ibm_db_connection.py:1064
Function
test_connect_passes_login_timeout_option
A configured login_timeout_s is passed via SQL_ATTR_LOGIN_TIMEOUT at connect. query_timeout_s only bounds query execution; without a connect-time
src/db2-mcp-server/tests/test_ibm_db_connection.py:1050
Method
test_connect_passes_region
Connect passes region to get_browser_client.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:103
Function
test_connect_passes_the_built_dsn_to_the_driver
The DSN handed to ibm_db.connect must be exactly what _build_conn_string produced. This is the assertion the suite was missing. Nothing inspected
src/db2-mcp-server/tests/test_ibm_db_connection.py:903
Method
test_connect_reconnect_disconnects_first
Connecting with an existing session_id disconnects the old session first.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:459
Function
test_connect_refuses_when_autocommit_option_omitted
Omitting the autocommit option entirely must be caught by the read-back guard. A real driver defaults to autocommit ON, so a regression that drop
src/db2-mcp-server/tests/test_ibm_db_connection.py:1026
Function
test_connect_rejects_when_autocommit_not_disabled
If the driver silently fails to disable autocommit, the connection is refused. Autocommit-off is the second layer of the read-only guarantee -- t
src/db2-mcp-server/tests/test_ibm_db_connection.py:875
Function
test_connect_requests_autocommit_off
The connect options must explicitly request SQL_AUTOCOMMIT_OFF. This is the assertion the suite was missing. Autocommit-off is the primary layer
src/db2-mcp-server/tests/test_ibm_db_connection.py:1006
Method
test_connect_reuses_playwright
Subsequent connects reuse the same Playwright instance.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:123
Method
test_connect_starts_playwright
First connect starts Playwright, signs request via SDK, and connects via CDP.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:75
Method
test_connect_success
connect_to_database returns the llm_response from the factory.
src/db2-mcp-server/tests/test_server.py:377
Function
test_connect_to_database_closes_replaced_connection
Replaced connection is closed when secret_arn changes.
src/oracle-mcp-server/tests/test_server.py:1315
Function
test_connect_to_database_closes_replaced_connection
When internal_create_connection returns a replaced connection, it is closed.
src/mssql-mcp-server/tests/test_server_extended.py:454
Method
test_connect_to_database_exception_handling
Test connect_to_database handles exceptions properly.
src/postgres-mcp-server/tests/test_server_error_handling.py:110
Method
test_connect_to_database_initializes_pool_for_psycopg
Test connect_to_database eagerly initializes pool for PsycopgPoolConnection.
src/postgres-mcp-server/tests/test_server_error_handling.py:163
Function
test_connect_to_database_internal_raises
Any exception from internal_create_connection is returned as failure JSON.
src/mssql-mcp-server/tests/test_server_extended.py:433
Method
test_connect_to_database_is_registered
connect_to_database should be a registered tool.
src/mysql-mcp-server/tests/test_server.py:46
Function
test_connect_to_database_pool_init_fails
initialize_pool failure triggers close() and remove().
src/mssql-mcp-server/tests/test_server_extended.py:403
Function
test_connect_to_database_pool_init_failure
Pool initialization failure removes connection from map and returns error.
src/oracle-mcp-server/tests/test_server.py:1292
Method
test_connect_to_database_pool_init_failure
Test connect_to_database returns error and removes connection from map when pool init fails.
src/postgres-mcp-server/tests/test_server_error_handling.py:201
Function
test_connect_to_database_refuses_without_configured_target
With no operator-configured target, the tool refuses to connect. Security: a server started with only credentials (e.g. a bare --secret_arn defau
src/oracle-mcp-server/tests/test_server.py:1206
Method
test_connect_to_database_rejects_superuser_and_removes_connection
A superuser connection is rejected (enforce) and removed from the map. Wiring test for the least-privilege guardrail: connect_to_database mus
src/postgres-mcp-server/tests/test_server_error_handling.py:256
Function
test_connect_to_database_replaced_close_failure_is_non_fatal
If closing the replaced connection raises, the tool still succeeds.
src/oracle-mcp-server/tests/test_server.py:1335
Function
test_connect_to_database_replaced_close_failure_is_non_fatal
If closing the replaced connection raises, the tool still succeeds.
src/mssql-mcp-server/tests/test_server_extended.py:480
Function
test_connect_to_database_success
Successful connection returns the LLM response dict; the tool takes no arguments.
src/oracle-mcp-server/tests/test_server.py:1132
Function
test_connect_to_database_success
Successful connect invokes initialize_pool and returns the llm_response.
src/mssql-mcp-server/tests/test_server_extended.py:377
Method
test_connect_to_database_success
Test connect_to_database success path.
src/postgres-mcp-server/tests/test_server_error_handling.py:132
Function
test_connect_to_database_tool_schema_does_not_expose_secret_arn
The LLM-facing connect_to_database tool must never expose secret_arn.
src/oracle-mcp-server/tests/test_server.py:52
Function
test_connect_to_database_tool_schema_does_not_expose_secret_arn
The LLM-facing connect_to_database tool must never expose secret_arn.
src/mssql-mcp-server/tests/test_server_extended.py:57
Function
test_connect_to_database_tool_schema_does_not_expose_ssl_encryption
The LLM-facing connect_to_database tool must not expose ssl_encryption. TLS mode is operator-only (--ssl_encryption), so an adversarial model can
src/oracle-mcp-server/tests/test_server.py:1226
Function
test_connect_to_database_tool_takes_no_target_parameters
The tool exposes no target parameters — the model cannot choose or redirect it.
src/oracle-mcp-server/tests/test_server.py:1184
Function
test_connect_to_database_uses_configured_target
The tool connects only to the operator-configured target (no caller input).
src/oracle-mcp-server/tests/test_server.py:1162
Function
test_connect_to_database_validation_failure_returns_failed
connect_to_database returns Failed status when validation fails at connect time.
src/db2-mcp-server/tests/test_server.py:1216
Method
test_connect_tool_has_no_secret_arn_parameter
`secret_arn` must not appear in the tool schema at all. With it exposed, an LLM-supplied ARN won over the operator's default and the
src/db2-mcp-server/tests/test_server.py:1233
Method
test_connection_and_server_errors_are_retried
Connection failures and server-side errors are transient.
src/billing-cost-management-mcp-server/tests/utilities/test_error_contract.py:63
Method
test_connection_and_tool_execution
Test connection establishment and tool execution. Verifies that connection instances are properly set and tools can be executed.
src/amazon-mq-mcp-server/tests/rabbitmq/test_module.py:156
Method
test_connection_botocore_errors_stay_retryable
Real connection failures are still retry_same_request.
src/billing-cost-management-mcp-server/tests/utilities/test_aws_service_base.py:612
Function
test_connection_closed_on_pool_replacement
Connection from old pool is closed (not returned) when pool was replaced.
src/mssql-mcp-server/tests/test_pool_exhaustion_and_expiry.py:79
Method
test_connection_error_falls_through
A transport failure passes through without being classified.
src/billing-cost-management-mcp-server/tests/tools/test_business_support_operations.py:1382
Method
test_connection_error_propagates
RequestError from get_client should propagate via @tool_errors.
src/valkey-mcp-server/tests/test_search_add_documents.py:156
Method
test_connection_failure
Should return error response on failure.
src/mysql-mcp-server/tests/test_server.py:152
Function
test_connection_health
check_connection_health returns True for a live connection.
src/mssql-mcp-server/tests/e2e/e2e_integration_test.py:144
Function
test_connection_method_enum
The DB2 password connection method is defined.
src/db2-mcp-server/tests/test_server.py:1024
Function
test_connection_method_uses_the_shared_rule
The live executor path produces the shared rule's output, not its own.
src/postgres-mcp-server/tests/test_named_params.py:120
Method
test_connection_pool_concurrent_acquisition
Test that the connection pool correctly handles concurrent connection acquisition.
src/postgres-mcp-server/tests/test_psycopg_connector.py:189
Method
test_connection_pool_max_size_enforcement
Test that the connection pool correctly enforces the max_size limit.
src/postgres-mcp-server/tests/test_psycopg_connector.py:252
Method
test_connection_pool_timeout_with_concurrency
Test that the connection pool correctly handles timeouts with concurrent connections.
src/postgres-mcp-server/tests/test_psycopg_connector.py:321
Function
test_connection_returned_when_pool_not_replaced
Connection is returned to pool when the pool has not been replaced.
src/mssql-mcp-server/tests/test_pool_exhaustion_and_expiry.py:105
Function
test_connection_reuse
Test that the connection is reused rather than recreated.
src/elasticache-mcp-server/tests/test_connection.py:75
Function
test_connection_reuse
Test that connections are reused when possible.
src/aurora-dsql-mcp-server/tests/test_connection_reuse.py:32
Function
test_connection_reuse_with_broken_connection
Test handling of broken connections during reuse attempts.
src/aurora-dsql-mcp-server/tests/test_connection_reuse.py:57
Method
test_connectivity_error_propagates_under_warn
Under warn, a connectivity/auth failure must NOT be swallowed. 'warn' relaxes the privilege guardrail, not the requirement that the c
src/postgres-mcp-server/tests/test_privilege_guardrail.py:255
Method
test_connectivity_failure_message_has_no_override_hint
A connectivity fail-closed message must NOT suggest --privilege_check. Relaxing the policy can't make an unreachable DB reachable, so the
src/postgres-mcp-server/tests/test_privilege_guardrail.py:204
Method
test_connector_missing_fields_raises
(self)
src/aws-transform-mcp-server/tests/test_download_artifact.py:82
Method
test_connector_requires_connector_id
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_get_resource.py:179
Method
test_connector_requires_workspace_id
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_get_resource.py:170
Method
test_connector_scope
(self)
src/aws-transform-mcp-server/tests/test_download_artifact.py:72
Method
test_connector_success
(self, _, mock_fes, handler, ctx)
src/aws-transform-mcp-server/tests/test_get_resource.py:194
Method
test_connector_upload_skips_complete
Connector upload skips CompleteArtifactUpload and returns different shape.
src/aws-transform-mcp-server/tests/test_artifact.py:373
Method
test_connectors_requires_workspace_id
(self, _, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:206
Method
test_connectors_success
(self, _, mock_paginate, handler, ctx)
src/aws-transform-mcp-server/tests/test_list_resources.py:219
Method
test_conninfo_enforces_verify_full
Every connection uses sslmode=verify-full and never the insecure default.
src/postgres-mcp-server/tests/test_psycopg_connector.py:1146
Method
test_consecutive_and_trailing_breaks_produce_no_empty_segments
Doubled, leading and trailing <br /> never yield empty '; ' segments.
src/aws-documentation-mcp-server/tests/test_table_utils.py:660
Method
test_consecutive_inline_tags_stay_separate
Two adjacent inline tags do not run together.
src/aws-documentation-mcp-server/tests/test_table_utils.py:1733
Method
test_consent_approved
Test request_consent when user approves.
src/aws-for-sap-management-mcp-server/tests/test_applications.py:490
Method
test_consent_approved
Test request_consent when user approves.
src/aws-for-sap-management-mcp-server/tests/test_scheduling.py:520
Method
test_consent_no_elicitation_support
Test request_consent when client doesn't support elicitation.
src/aws-for-sap-management-mcp-server/tests/test_applications.py:532
Method
test_consent_no_elicitation_support
Test request_consent when client doesn't support elicitation.
src/aws-for-sap-management-mcp-server/tests/test_scheduling.py:561
Method
test_consent_other_mcp_error
Test request_consent re-raises non-METHOD_NOT_FOUND MCPError.
src/aws-for-sap-management-mcp-server/tests/test_applications.py:547
Method
test_consent_other_mcp_error
Test request_consent re-raises non-METHOD_NOT_FOUND MCPError.
src/aws-for-sap-management-mcp-server/tests/test_scheduling.py:576
Method
test_consent_rejected
Test request_consent when user rejects.
src/aws-for-sap-management-mcp-server/tests/test_applications.py:504
Method
test_consent_rejected
Test request_consent when user rejects.
src/aws-for-sap-management-mcp-server/tests/test_scheduling.py:533
Method
test_consent_unchecked
Test request_consent when user accepts but doesn't check acknowledge.
src/aws-for-sap-management-mcp-server/tests/test_applications.py:518
Method
test_consent_unchecked
Test request_consent when user accepts but doesn't check acknowledge.
src/aws-for-sap-management-mcp-server/tests/test_scheduling.py:547
Method
test_consistent_read_behavior
Test consistent_read handling: included for reads (default false), omitted for writes.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_access_pattern_mapper.py:244
Method
test_consistent_read_gsi_error_explains_restriction
Test that GSI error message explains the restriction clearly.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_validator.py:812
Method
test_consistent_read_gsi_error_includes_pattern_id
Test that GSI restriction error messages include pattern_id.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_validator.py:736
Method
test_consistent_read_gsi_error_includes_pattern_name
Test that GSI restriction error messages include pattern_name.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_validator.py:773
Method
test_consistent_read_type_error_includes_pattern_id
Test that type validation error messages include pattern_id.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_validator.py:694
Method
test_consistent_read_type_error_includes_pattern_name
Test that type validation error messages include pattern_name.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_validator.py:714
Method
test_console_messages
Retrieve console messages without crashing.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_integ_browser_session.py:504
Method
test_console_messages
Console messages returns error elements from page.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_interaction.py:1180
Method
test_console_messages_empty
Console messages with no errors returns guidance.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_interaction.py:1196
Method
test_console_messages_error
Console messages error returns error message.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_interaction.py:1362
Method
test_constant_used_in_functions
Test that ECS_TOOL_GUIDANCE constant is used in the right places.
src/ecs-mcp-server/tests/unit/modules/test_aws_knowledge_proxy.py:682
Method
test_constants_and_immutability
Test that class constants are properly defined and immutable.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_usage_data_validator.py:314
Method
test_constants_are_immutable_types
Test that constants use immutable types.
src/ecs-mcp-server/tests/unit/modules/test_aws_knowledge_proxy.py:715
Method
test_constants_defined
Test that required constants are defined.
src/s3-tables-mcp-server/tests/test_init.py:64
Method
test_construct_cfn_tag_mapping_node
Test construct_cfn_tag with mapping node.
src/sagemaker-ai-mcp-server/tests/test_hyperpod_stack_handler.py:936
Method
test_construct_cfn_tag_scalar_node
Test construct_cfn_tag with scalar node.
src/sagemaker-ai-mcp-server/tests/test_hyperpod_stack_handler.py:1079
Method
test_construct_cfn_tag_sequence_node
Test construct_cfn_tag with sequence node.
src/sagemaker-ai-mcp-server/tests/test_hyperpod_stack_handler.py:950
Method
test_construct_cfn_tag_unknown_node
Test construct_cfn_tag with unknown node type.
src/sagemaker-ai-mcp-server/tests/test_hyperpod_stack_handler.py:964
Method
test_constructor_accepts_mcp_client_info
SecurityAgentClient accepts mcp_client_name and version at construction.
src/security-agent-mcp-server/tests/test_aws_client.py:552
Method
test_constructor_accepts_override
ca_bundle_path should be stored on the instance.
src/mysql-mcp-server/tests/test_ca_bundle.py:47
Method
test_constructor_default_is_none
Without an override, ca_bundle_path is None so the bundled PEM is used.
src/mysql-mcp-server/tests/test_ca_bundle.py:65
Method
test_container_exists_no_output
Test _container_exists when no container output.
src/dynamodb-mcp-server/tests/test_model_validation_utils.py:351
Method
test_container_image_exists_false
Test ContainerImage with exists=False.
src/aws-healthomics-mcp-server/tests/test_ecr_models.py:255
← previous
next →
14,001–14,100 of 35,417, ranked by callers