MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

Methodtest_main_rejects_negative_int_args
A negative --max_rows/--query_timeout_s/--login_timeout_s is rejected at parse time. Both are documented as "0 = no limit/none" with '> 0' do
src/db2-mcp-server/tests/test_server.py:902
Methodtest_main_rejects_negative_timeout
Test that main rejects negative timeout.
src/aurora-dsql-mcp-server/tests/test_main.py:206
Methodtest_main_rejects_non_https_knowledge_server
Test that main rejects non-HTTPS knowledge server URLs.
src/aurora-dsql-mcp-server/tests/test_main.py:111
Functiontest_main_rejects_secret_arn_with_empty_arn
key=' (key=arn syntax with an empty ARN) → exit 2.
src/postgres-mcp-server/tests/test_server.py:1356
Functiontest_main_rejects_secret_arn_with_empty_key
=arn' (key=arn syntax with an empty key) → exit 2.
src/postgres-mcp-server/tests/test_server.py:1333
Methodtest_main_rejects_two_bare_default_arns
At most one bare --secret_arn may be given, so the default is unambiguous.
src/db2-mcp-server/tests/test_server.py:1293
Functiontest_main_rejects_two_default_secret_arns
Two bare --secret_arn (no '=' separator) → exit 2.
src/postgres-mcp-server/tests/test_server.py:1283
Methodtest_main_rejects_zero_timeout
Test that main rejects zero timeout.
src/aurora-dsql-mcp-server/tests/test_main.py:183
Methodtest_main_route_table
Test processing main route table.
src/aws-network-mcp-server/tests/utils/test_vcp_details.py:33
Methodtest_main_routes_to_multi_tenant
Enabled multi-tenant routes to _run_multi_tenant, not TransportSelector.start.
src/aws-healthomics-mcp-server/tests/test_server_multitenant_wiring.py:93
Functiontest_main_runs_mcp
main() invokes mcp.run().
src/security-agent-mcp-server/tests/test_server.py:636
Functiontest_main_secret_arn_bare_default
A bare --secret_arn (no '=') sets configured_default_secret_arn.
src/oracle-mcp-server/tests/test_server.py:2390
Functiontest_main_secret_arn_bare_default
A bare --secret_arn (no '=') sets configured_default_secret_arn.
src/mssql-mcp-server/tests/test_server_extended.py:904
Functiontest_main_secret_arn_duplicate_key_exits
Duplicate --secret_arn keys exit with code 2.
src/oracle-mcp-server/tests/test_server.py:2427
Functiontest_main_secret_arn_duplicate_key_exits
Duplicate --secret_arn keys exit with code 2.
src/mssql-mcp-server/tests/test_server_extended.py:964
Functiontest_main_secret_arn_empty_arn_in_key_pair_exits
--secret_arn with a valid key but empty ARN (key=) exits with code 2.
src/mssql-mcp-server/tests/test_server_extended.py:947
Functiontest_main_secret_arn_empty_value_exits
An empty bare --secret_arn value exits with code 2.
src/oracle-mcp-server/tests/test_server.py:2528
Functiontest_main_secret_arn_empty_value_exits
An empty bare --secret_arn value exits with code 2.
src/mssql-mcp-server/tests/test_server_extended.py:1044
Functiontest_main_secret_arn_invalid_key_arn_exits
--secret_arn with empty key in key=arn syntax exits with code 2.
src/oracle-mcp-server/tests/test_server.py:2412
Functiontest_main_secret_arn_invalid_key_arn_exits
--secret_arn with empty key in key=arn syntax exits with code 2.
src/mssql-mcp-server/tests/test_server_extended.py:930
Functiontest_main_secret_arn_mixed_per_target_and_default
Mixing per-target and bare --secret_arn values works correctly.
src/oracle-mcp-server/tests/test_server.py:2469
Functiontest_main_secret_arn_mixed_per_target_and_default
Mixing per-target and bare --secret_arn values works correctly.
src/mssql-mcp-server/tests/test_server_extended.py:1014
Functiontest_main_secret_arn_per_target_parsing
--secret_arn with key=arn syntax populates configured_secret_arns.
src/oracle-mcp-server/tests/test_server.py:2365
Functiontest_main_secret_arn_per_target_parsing
--secret_arn with key=arn syntax populates configured_secret_arns.
src/mssql-mcp-server/tests/test_server_extended.py:875
Functiontest_main_secret_arn_two_bare_defaults_exits
Two bare --secret_arn values (no '=') exits with code 2.
src/oracle-mcp-server/tests/test_server.py:2448
Functiontest_main_secret_arn_two_bare_defaults_exits
Two bare --secret_arn values (no '=') exits with code 2.
src/mssql-mcp-server/tests/test_server_extended.py:989
Functiontest_main_secret_arn_whitespace_only_key_exits
A per-target value whose key is whitespace-only exits with code 2.
src/oracle-mcp-server/tests/test_server.py:2594
Functiontest_main_secret_arn_whitespace_only_key_exits
A per-target value whose key is whitespace-only exits with code 2.
src/mssql-mcp-server/tests/test_server_extended.py:1149
Functiontest_main_secret_arn_whitespace_stripped_bare_default
Whitespace around a bare default --secret_arn is stripped.
src/oracle-mcp-server/tests/test_server.py:2572
Functiontest_main_secret_arn_whitespace_stripped_bare_default
Whitespace around a bare default --secret_arn is stripped.
src/mssql-mcp-server/tests/test_server_extended.py:1123
Functiontest_main_secret_arn_whitespace_stripped_per_target
Whitespace around key and ARN in per-target --secret_arn is stripped.
src/oracle-mcp-server/tests/test_server.py:2550
Functiontest_main_secret_arn_whitespace_stripped_per_target
Whitespace around key and ARN in per-target --secret_arn is stripped.
src/mssql-mcp-server/tests/test_server_extended.py:1097
Methodtest_main_server_error
Test that main handles server startup errors.
src/prometheus-mcp-server/tests/test_main.py:211
Functiontest_main_sets_log_dir
Test main sets log_dir if --log-dir is provided.
src/s3-tables-mcp-server/tests/test_server.py:896
Functiontest_main_sets_server_config
main() parses args and configures server_config.
src/oracle-mcp-server/tests/test_server.py:2056
Functiontest_main_skips_empty_bare_secret_arn
A bare --secret_arn that is blank/whitespace is ignored, not treated as a default. The empty value is skipped (``continue``) so it neither popula
src/postgres-mcp-server/tests/test_server.py:1379
Functiontest_main_skips_secret_probe_when_arg_omitted
When --secret_arn is omitted, no Secrets Manager call is made at startup. The cluster's managed secret will be discovered lazily on the first
src/postgres-mcp-server/tests/test_server.py:1202
Functiontest_main_ssl_encryption_defaults_to_require
With no --ssl_encryption, the default mode is require.
src/oracle-mcp-server/tests/test_server.py:2873
Functiontest_main_ssl_encryption_invalid_mode_exits
An unrecognized --ssl_encryption value exits with code 2 (no silent plaintext).
src/oracle-mcp-server/tests/test_server.py:2885
Functiontest_main_ssl_encryption_sets_mode
--ssl_encryption sets the single operator-configured TLS mode.
src/oracle-mcp-server/tests/test_server.py:2861
Methodtest_main_starts_when_validation_passes
A clean validation lets startup proceed to mcp.run().
src/postgres-mcp-server/tests/test_server_error_handling.py:907
Methodtest_main_starts_with_invalid_cluster
Test that main starts even when connection validation fails.
src/aurora-dsql-mcp-server/tests/test_main.py:323
Methodtest_main_starts_with_partial_config
Test that main starts with partial configuration (missing user and region).
src/aurora-dsql-mcp-server/tests/test_main.py:296
Methodtest_main_starts_without_cluster_config
Test that main starts successfully without cluster configuration.
src/aurora-dsql-mcp-server/tests/test_main.py:272
Methodtest_main_startup_connect_validates
With --db_endpoint, main() creates and validates a connection at startup.
src/db2-mcp-server/tests/test_server.py:956
Functiontest_main_startup_connection_validation
main() validates connection at startup using validate_sync().
src/oracle-mcp-server/tests/test_server.py:2084
Functiontest_main_startup_connection_validation_returns_empty
If SELECT 1 returns no rows, main() exits with status 1.
src/mssql-mcp-server/tests/test_server_extended.py:828
Methodtest_main_startup_validate_failure_exits
A failed startup validation exits with a non-zero status.
src/db2-mcp-server/tests/test_server.py:999
Functiontest_main_startup_validation_failure_exits
validate_sync() failure during startup triggers sys.exit(1).
src/oracle-mcp-server/tests/test_coverage.py:282
Functiontest_main_stdio
Test the main function with stdio transport.
src/aws-location-mcp-server/tests/test_server.py:1059
Methodtest_main_stdio
Test main function with stdio transport.
src/lambda-tool-mcp-server/tests/test_server.py:430
Methodtest_main_stdio
Test main function with stdio transport.
src/amazon-mq-mcp-server/tests/test_server.py:333
Methodtest_main_stdio_transport
Test main function with stdio transport.
src/stepfunctions-tool-mcp-server/tests/test_main.py:18
Methodtest_main_still_accepts_a_single_bare_arn
The pre-existing single-instance form keeps working unchanged.
src/db2-mcp-server/tests/test_server.py:1305
Methodtest_main_stores_the_raw_database_choice
main() stores args.database unresolved, so None means 'operator did not choose'.
src/db2-mcp-server/tests/test_server.py:680
Functiontest_main_success
Test main function normal execution.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server.py:1944
Methodtest_main_success
Test successful main execution.
src/healthlake-mcp-server/tests/test_main.py:14
Methodtest_main_success
Test that main correctly initializes and runs the server.
src/prometheus-mcp-server/tests/test_main.py:92
Methodtest_main_success
Test the main function with successful execution.
src/aws-serverless-mcp-server/tests/test_server.py:82
Functiontest_main_success_with_http_transport
Test main function executes successfully with HTTP transport (else branch).
src/aws-api-mcp-server/tests/test_server.py:880
Functiontest_main_success_with_read_only_mode
Test main function executes successfully with read-only mode enabled.
src/aws-api-mcp-server/tests/test_server.py:851
Methodtest_main_table_range_query_scenario
Test realistic main table range query scenario.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_range_query_validator.py:506
Functiontest_main_tenant_defaults_service_name_to_tenant
A tenant connection with no --service_name uses the tenant DB name as the service.
src/oracle-mcp-server/tests/test_server.py:2152
Methodtest_main_uses_default_knowledge_parameters
Test that main uses default knowledge server and timeout when not specified.
src/aurora-dsql-mcp-server/tests/test_main.py:257
Functiontest_main_uses_log_level_env_var
The README configures LOG_LEVEL=ERROR; main() must apply it without --log-level.
src/openapi-mcp-server/tests/test_log_level_env.py:66
Functiontest_main_verifies_secret_before_mcp_run
Happy path: startup validation succeeds and mcp.run is invoked. No --db_type is supplied (lazy-connect mode), so the only work done between a
src/postgres-mcp-server/tests/test_server.py:1162
Functiontest_main_warns_on_reduced_tls_posture
main() logs a reduced-posture warning for sslmodes below the verify-full default. Covers both message branches: 'require' (certificate not verifi
src/postgres-mcp-server/tests/test_server.py:842
Functiontest_main_warns_on_unrecognized_log_level_env_var
An unrecognized LOG_LEVEL falls back to INFO and is reported, not silently dropped.
src/openapi-mcp-server/tests/test_log_level_env.py:90
Methodtest_main_wiring
main() must load config, create server, register handlers, and run.
src/aws-transform-mcp-server/tests/test_server.py:133
Methodtest_main_with_all_access
Test main function with both write and sensitive data access enabled.
src/sagemaker-ai-mcp-server/tests/test_main.py:171
Methodtest_main_with_allow_resource_creation
Test main function with --allow-resource-creation flag.
src/amazon-sns-sqs-mcp-server/tests/test_server.py:113
Functiontest_main_with_allow_write
Test main function with --allow-write flag.
src/aws-appsync-mcp-server/tests/test_server.py:23
Methodtest_main_with_aws_resource_write_enabled
Test main function with AWS resource write enabled.
src/finch-mcp-server/tests/test_cli_flags.py:218
Methodtest_main_with_connection_string_arg
Test main configures the connection string from the CLI arg.
src/documentdb-mcp-server/tests/test_main.py:49
Methodtest_main_with_connection_string_env
Test main reads the connection string from the environment variable.
src/documentdb-mcp-server/tests/test_main.py:64
Methodtest_main_with_custom_knowledge_parameters
Test that main accepts custom knowledge server and timeout.
src/aurora-dsql-mcp-server/tests/test_main.py:231
Methodtest_main_with_custom_log_file
Test main function with custom log file.
src/finch-mcp-server/tests/test_cli_flags.py:230
Methodtest_main_with_default_logging
Test main function with default logging configuration.
src/finch-mcp-server/tests/test_cli_flags.py:260
Methodtest_main_with_default_settings
Test main function with default settings.
src/finch-mcp-server/tests/test_cli_flags.py:206
Methodtest_main_with_different_args
Test the main function with different command-line arguments.
src/aws-serverless-mcp-server/tests/test_server.py:206
Methodtest_main_with_exception
Test main function when an exception occurs.
src/s3-tables-mcp-server/tests/test_main.py:44
Methodtest_main_with_file_logging_disabled
Test main function with file logging disabled.
src/finch-mcp-server/tests/test_cli_flags.py:251
Functiontest_main_with_get_all_counts_error
Test the main function when get_all_counts raises an exception.
src/openapi-mcp-server/tests/test_main_extended.py:164
Functiontest_main_with_help_flag
Test main function with --help flag.
src/aws-appsync-mcp-server/tests/test_server.py:102
Functiontest_main_with_invalid_parameters
Test main function with invalid command line parameters. This test verifies that the main function correctly handles invalid command line argumen
src/postgres-mcp-server/tests/test_server.py:794
Functiontest_main_with_invalid_psycopg_parameters
Test main function with invalid psycopg command line parameters.
src/postgres-mcp-server/tests/test_server.py:1088
Methodtest_main_with_log_file_and_directory_creation
Test main function with log file argument and directory creation.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:3250
Functiontest_main_with_no_tools_or_resources
Test the main function when no tools or resources are registered.
src/openapi-mcp-server/tests/test_main_extended.py:117
Methodtest_main_with_optional_arguments
(self, mocker)
src/aurora-dsql-mcp-server/tests/test_main.py:63
Methodtest_main_with_profile_argument
(self, mocker)
src/aurora-dsql-mcp-server/tests/test_profile_option.py:38
Functiontest_main_with_psycopg_parameters
Test main function with valid psycopg command line parameters.
src/postgres-mcp-server/tests/test_server.py:962
Methodtest_main_with_required_arguments
(self, mocker)
src/aurora-dsql-mcp-server/tests/test_main.py:37
Methodtest_main_with_sensitive_data_access
Test main function with sensitive data access enabled.
src/sagemaker-ai-mcp-server/tests/test_main.py:119
Functiontest_main_with_sse
Test the main function with SSE transport.
src/well-architected-security-mcp-server/tests/test_server.py:553
Functiontest_main_with_sse
Test the main function with SSE transport.
src/well-architected-security-mcp-server/tests/test_server_coverage.py:92
Functiontest_main_with_sse_transport
Test the main function with SSE transport.
src/openapi-mcp-server/tests/test_main_extended.py:72
Functiontest_main_with_startup_connection_validates
Providing instance_identifier+db_endpoint runs a SELECT 1 validation.
src/mssql-mcp-server/tests/test_server_extended.py:777
Functiontest_main_with_stdio_transport
Test the main function with stdio transport.
src/openapi-mcp-server/tests/test_main_extended.py:26
Methodtest_main_with_usage_data_path_argument
Test main function with --usage-data-path argument.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_codegen.py:833
Functiontest_main_with_valid_parameters
Test main function with valid command line parameters. This test verifies that the main function correctly parses valid command line arguments
src/postgres-mcp-server/tests/test_server.py:741
← previousnext →25,101–25,200 of 35,417, ranked by callers