MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

Methodtest_main_credentials_failure
Test that main exits when credentials validation fails.
src/prometheus-mcp-server/tests/test_main.py:180
Methodtest_main_debug_enables_diagnostics
Test main function with debug flag enables diagnostics.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:3289
Methodtest_main_debug_settings_path_with_debug_attr
Test main sets debug directly on mcp when settings are unavailable.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:3521
Methodtest_main_debug_settings_path_with_settings_attr
Test main sets debug on mcp.settings when available.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:3507
Methodtest_main_default
Test main function with default arguments.
src/eks-mcp-server/tests/test_main.py:26
Methodtest_main_default
Test main function with default arguments. This test verifies that: 1. The main function runs without errors 2. The mcp.run m
src/amazon-neptune-mcp-server/tests/test_main.py:25
Methodtest_main_default
Test that main correctly runs the server with default settings.
src/amazon-neptune-mcp-server/tests/test_server.py:274
Methodtest_main_default
Test main function with default arguments. This test verifies that: 1. The main function runs without errors 2. The mcp.run m
src/amazon-keyspaces-mcp-server/tests/test_main.py:22
Methodtest_main_default
Test main function with default arguments.
src/timestream-for-influxdb-mcp-server/tests/test_main.py:26
Methodtest_main_default
Test main function with default arguments.
src/cloudwatch-mcp-server/tests/test_main.py:25
Methodtest_main_default
Test main function with default arguments (no connection string, read-only).
src/documentdb-mcp-server/tests/test_main.py:27
Methodtest_main_default
Test main function with default arguments.
src/lambda-tool-mcp-server/tests/test_server.py:445
Methodtest_main_default
Test the main function with default arguments.
src/bedrock-kb-retrieval-mcp-server/tests/test_server.py:147
Methodtest_main_default
Test main function with default arguments.
src/s3-tables-mcp-server/tests/test_main.py:24
Methodtest_main_default
Test main function with default arguments.
src/amazon-qbusiness-anonymous-mcp-server/tests/test_main.py:26
Methodtest_main_default
Test main function with default arguments.
src/amazon-kendra-index-mcp-server/tests/test_main.py:25
Methodtest_main_default
Test main function with default arguments.
src/redshift-mcp-server/tests/test_main.py:26
Methodtest_main_default
Test main function with default arguments.
src/amazon-qindex-mcp-server/tests/test_main.py:22
Methodtest_main_default
Test main function with default arguments.
src/memcached-mcp-server/tests/test_main.py:25
Methodtest_main_default
Test main function with default arguments.
src/sagemaker-ai-mcp-server/tests/test_main.py:36
Methodtest_main_default
Test main function with default arguments.
src/elasticache-mcp-server/tests/test_main.py:22
Methodtest_main_default
Test main function with default arguments.
src/cloudtrail-mcp-server/tests/test_main.py:26
Methodtest_main_default
Test main function with default arguments.
src/aws-iot-sitewise-mcp-server/tests/test_main.py:25
Methodtest_main_default
Test main function with default arguments.
src/aws-healthomics-mcp-server/tests/test_main.py:22
Functiontest_main_defaults_to_info_without_env_var
Without LOG_LEVEL or --log-level the level stays INFO.
src/openapi-mcp-server/tests/test_log_level_env.py:80
Functiontest_main_dotless_endpoint_without_secret_exits
A dotless/IP endpoint with no secret can't derive an instance id and exits cleanly.
src/db2-mcp-server/tests/test_server.py:1152
Methodtest_main_endpoint_requires_region_exits
--db_endpoint without --region exits with a non-zero status.
src/db2-mcp-server/tests/test_server.py:991
Functiontest_main_entry
Test main entrypoint logic is callable and triggers app.run.
src/s3-tables-mcp-server/tests/test_server.py:907
Functiontest_main_entry_point
Test the __name__ == '__main__' entry point.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server_audit_functions.py:163
Functiontest_main_entry_point
Test the if __name__ == '__main__' entry point.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server.py:1962
Functiontest_main_exception
Test main function with general exception.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server.py:1951
Methodtest_main_exception_handling
Test main function exception handling.
src/healthlake-mcp-server/tests/test_main.py:46
Methodtest_main_execution
Test main function is callable.
src/prometheus-mcp-server/tests/test_coverage_gaps.py:112
Functiontest_main_exits_cleanly_on_botocore_error
A BotoCoreError (e.g. NoCredentialsError) at startup exits(1) cleanly, not a traceback.
src/oracle-mcp-server/tests/test_server.py:2213
Functiontest_main_exits_cleanly_when_rds_instance_missing_endpoint
RDS --instance_identifier without --db_endpoint exits(1) cleanly, no traceback.
src/oracle-mcp-server/tests/test_server.py:2188
Methodtest_main_exits_on_privilege_violation
A ConnectionValidationError (over-privileged role) aborts startup with exit 1.
src/postgres-mcp-server/tests/test_server_error_handling.py:926
Methodtest_main_exits_on_unexpected_validation_error
A non-ConnectionValidationError during validation also aborts startup with exit 1.
src/postgres-mcp-server/tests/test_server_error_handling.py:948
Methodtest_main_exits_when_both_role_sources_configured
main() exits with code 1 and never serves when both role sources are set. parse_config performs the single-resolver-source selection and reje
src/aws-healthomics-mcp-server/tests/test_server_multitenant_wiring.py:334
Methodtest_main_exits_when_jwt_role_arn_missing
main() exits with code 1 and never serves when JWT role ARN is missing.
src/aws-healthomics-mcp-server/tests/test_server_multitenant_wiring.py:371
Methodtest_main_exits_when_no_mechanisms_enabled
main() exits with code 1 and never serves when no mechanism is enabled.
src/aws-healthomics-mcp-server/tests/test_server_multitenant_wiring.py:315
Functiontest_main_exits_when_secret_arn_unreadable
Server fails to start with a clear error when --secret_arn can't be read. Simulates an operator who gives the correct CLI shape but whose AWS
src/postgres-mcp-server/tests/test_server.py:1117
Methodtest_main_failure
Test the main function with a failure during execution.
src/aws-serverless-mcp-server/tests/test_server.py:176
Functiontest_main_function
Test main function argument parsing.
src/iam-mcp-server/tests/test_server.py:1022
Functiontest_main_function
Test main() entry point.
src/dynamodb-mcp-server/tests/test_dynamodb_server.py:2214
Functiontest_main_function
Test main function execution.
src/billing-cost-management-mcp-server/tests/test_server.py:128
Functiontest_main_function
Test the main function.
src/openapi-mcp-server/tests/test_main.py:24
Methodtest_main_function
Test the main function initializes cache and runs the server.
src/amazon-bedrock-agentcore-mcp-server/tests/test_main.py:25
Methodtest_main_function
Test that main() calls mcp.run() (line 177).
src/aws-for-sap-management-mcp-server/tests/test_server.py:78
Methodtest_main_function
Test main function calls run with run_server.
src/aws-iot-sitewise-mcp-server/tests/test_server.py:151
Methodtest_main_function_calls_mcp_run
Test the main function calls mcp.run().
src/aws-network-mcp-server/tests/test_server.py:66
Functiontest_main_function_coverage
Test main function for coverage.
src/healthimaging-mcp-server/tests/test_server.py:1514
Functiontest_main_function_exists
Test that main function exists and is callable.
src/billing-cost-management-mcp-server/tests/test_server.py:68
Methodtest_main_function_exists
Test that main function exists and is callable.
src/healthimaging-mcp-server/tests/test_main.py:34
Methodtest_main_function_exists
Test that main function exists and can be imported.
src/healthimaging-mcp-server/tests/test_server.py:407
Methodtest_main_function_exists_and_callable
Test that main function exists and is callable.
src/aws-network-mcp-server/tests/test_server.py:190
Methodtest_main_function_logs_startup
Test the main function logs startup message.
src/aws-network-mcp-server/tests/test_server.py:73
Methodtest_main_function_scenarios
Test main function success and error scenarios.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_codegen.py:400
Functiontest_main_general_exception
Test general exception handling in main function.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server.py:647
Methodtest_main_guard_not_executed_when_imported
Test that sync_main is not called when imported as module.
src/healthlake-mcp-server/tests/test_main.py:78
Methodtest_main_guarded_by_dunder_main
``main()`` runs only under ``__main__``, so import does not serve. The import performed at module load did not start a server (this test modu
src/aws-healthomics-mcp-server/integration/harness_tests/test_entrypoint.py:171
Methodtest_main_handles_only_deliberate_startup_refusal
Direct and nested refusals exit cleanly; a mixed group retains every error.
src/postgres-mcp-server/tests/test_server_error_handling.py:1321
Methodtest_main_handles_proxy_exception
Test that main() handles proxy initialization failure gracefully.
src/aws-iac-mcp-server/tests/test_server.py:352
Methodtest_main_handles_run_failure
Test main logs and cleans up when mcp.run raises.
src/documentdb-mcp-server/tests/test_main.py:73
Methodtest_main_handles_url_parsing_exception
Test that main handles exceptions during URL parsing.
src/aurora-dsql-mcp-server/tests/test_main.py:158
Functiontest_main_http_transport_allowed_hosts_reach_fastmcp_guard
Test AWS_API_MCP_ALLOWED_HOSTS is honoured by FastMCP's own Host header guard (#4507). FastMCP 3.x only accepts loopback Host headers unless ``al
src/aws-api-mcp-server/tests/test_server.py:915
Methodtest_main_imports_server_main
Test that main module imports main from server.
src/healthimaging-mcp-server/tests/test_main.py:27
Functiontest_main_invalid_connection_method_exits
Invalid --connection_method at startup exits with code 1.
src/oracle-mcp-server/tests/test_server.py:2655
Functiontest_main_invalid_connection_method_exits
Invalid --connection_method at startup exits with code 1.
src/mssql-mcp-server/tests/test_server_extended.py:1067
Methodtest_main_invalid_connection_string_exits
Test main fails fast with a clean exit (not a traceback) on a bad connection string.
src/documentdb-mcp-server/tests/test_main.py:89
Functiontest_main_keyboard_interrupt
Test KeyboardInterrupt handling in main function.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server.py:639
Methodtest_main_leaves_database_none_when_not_passed
Without --database, configured_database stays None (not eagerly 'DB2DB'). argparse used to default this to 'DB2DB', which would make _resolve
src/db2-mcp-server/tests/test_server.py:688
Functiontest_main_logs_and_exits_without_starting_transport
main() logs the config error, exits non-zero, and never starts a transport. Validates: Requirements Transport selection, Network bind configurati
src/aws-healthomics-mcp-server/tests/test_transport.py:176
Methodtest_main_logs_custom_file_path
Test main function logs custom file path correctly.
src/finch-mcp-server/tests/test_server.py:872
Methodtest_main_logs_default_logging
Test main function logs default logging mode correctly.
src/finch-mcp-server/tests/test_server.py:891
Methodtest_main_logs_stderr_only
Test main function logs stderr-only mode correctly.
src/finch-mcp-server/tests/test_server.py:882
Functiontest_main_missing_aws_region
Test main function raises ValueError when AWS_REGION environment variable is not set.
src/aws-api-mcp-server/tests/test_server.py:838
Functiontest_main_missing_connection_method_with_endpoint_exits
--db_endpoint without --connection_method exits with code 1.
src/oracle-mcp-server/tests/test_server.py:2613
Functiontest_main_missing_region_with_endpoint_exits
--db_endpoint without --region exits with code 1.
src/oracle-mcp-server/tests/test_server.py:2634
Methodtest_main_module_execution
Test that main module can be executed.
src/healthimaging-mcp-server/tests/test_server.py:413
Methodtest_main_module_execution_logic
Test entry point logic for different execution contexts.
src/ecs-mcp-server/tests/unit/test_main.py:339
Methodtest_main_module_exists
Test that main module can be imported.
src/healthimaging-mcp-server/tests/test_main.py:21
Methodtest_main_module_import
Test that main module imports correctly.
src/healthimaging-mcp-server/tests/test_server.py:422
Methodtest_main_module_name_check
Test __name__ == '__main__' check coverage.
src/healthlake-mcp-server/tests/test_main_edge_cases.py:19
Methodtest_main_mq_client_getter
Test that main wires a working MQ client getter into RabbitMQModule.
src/amazon-mq-mcp-server/tests/test_server.py:345
Functiontest_main_no_confirmation_flag
Test main function with --no-confirmation flag.
src/iam-mcp-server/tests/test_server.py:2488
Functiontest_main_no_reduced_tls_warning_on_default
The verify-full default must NOT emit the reduced-posture warning.
src/postgres-mcp-server/tests/test_server.py:888
Functiontest_main_normal_execution
Test normal execution of main function.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server.py:633
Functiontest_main_parses_per_target_and_default_secret_arn
Multiple --secret_arn flags populate the per-target map plus the default.
src/postgres-mcp-server/tests/test_server.py:1240
Methodtest_main_parses_pinned_and_default_arns
--secret_arn is repeatable and accepts both the pinned and bare forms.
src/db2-mcp-server/tests/test_server.py:1269
Functiontest_main_pins_resolved_startup_endpoint
main() pins the endpoint resolved at startup (e.g. an auto-resolved ODB endpoint).
src/oracle-mcp-server/tests/test_server.py:2116
Methodtest_main_propagates_unrelated_validation_errors
A validation error outside startup is never mistaken for a deliberate refusal.
src/postgres-mcp-server/tests/test_server_error_handling.py:1390
Functiontest_main_read_operations_index_load_failure
Test main refuses to start when the read operations index fails to load. The read operations index is required to enforce the security policy, so
src/aws-api-mcp-server/tests/test_server.py:52
Functiontest_main_readonly_appends_notice_to_tool_descriptions
In readonly mode, main() appends a notice to run_query/get_table_schema.
src/oracle-mcp-server/tests/test_coverage.py:333
Methodtest_main_readonly_default
main() defaults to read-only and starts the server.
src/db2-mcp-server/tests/test_server.py:879
Functiontest_main_readonly_default_no_startup_connection
main() with minimal args enters readonly mode and runs mcp.run() without connecting.
src/mssql-mcp-server/tests/test_server_extended.py:741
Methodtest_main_readonly_notice_not_duplicated_on_repeat_call
Calling main() twice in read-only mode must not append the notice twice. tool.description mutates the shared, module-global mcp tool objects;
src/db2-mcp-server/tests/test_server.py:940
Functiontest_main_registers_all_tools
Test that main function registers all expected tools.
src/aws-appsync-mcp-server/tests/test_server.py:59
Functiontest_main_rejects_both_service_name_and_sid
Supplying both --service_name and --sid exits at startup (sole enforcement point).
src/oracle-mcp-server/tests/test_server.py:2897
Functiontest_main_rejects_duplicate_per_target_key
Two --secret_arn entries with the same key → exit 2.
src/postgres-mcp-server/tests/test_server.py:1308
Methodtest_main_rejects_malformed_knowledge_server_url
Test that main rejects malformed knowledge server URLs.
src/aurora-dsql-mcp-server/tests/test_main.py:134
← previousnext →25,001–25,100 of 35,417, ranked by callers