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
Method
test_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
Function
test_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
Function
test_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
Function
test_main_rejects_two_default_secret_arns
Two bare --secret_arn (no '=' separator) → exit 2.
src/postgres-mcp-server/tests/test_server.py:1283
Method
test_main_rejects_zero_timeout
Test that main rejects zero timeout.
src/aurora-dsql-mcp-server/tests/test_main.py:183
Method
test_main_route_table
Test processing main route table.
src/aws-network-mcp-server/tests/utils/test_vcp_details.py:33
Method
test_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
Function
test_main_runs_mcp
main() invokes mcp.run().
src/security-agent-mcp-server/tests/test_server.py:636
Function
test_main_secret_arn_bare_default
A bare --secret_arn (no '=') sets configured_default_secret_arn.
src/oracle-mcp-server/tests/test_server.py:1573
Function
test_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
Function
test_main_secret_arn_duplicate_key_exits
Duplicate --secret_arn keys exit with code 2.
src/oracle-mcp-server/tests/test_server.py:1610
Function
test_main_secret_arn_duplicate_key_exits
Duplicate --secret_arn keys exit with code 2.
src/mssql-mcp-server/tests/test_server_extended.py:964
Function
test_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
Function
test_main_secret_arn_empty_value_exits
An empty bare --secret_arn value exits with code 2.
src/oracle-mcp-server/tests/test_server.py:1706
Function
test_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
Function
test_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:1595
Function
test_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
Function
test_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:1652
Function
test_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
Function
test_main_secret_arn_per_target_parsing
--secret_arn with key=arn syntax populates configured_secret_arns.
src/oracle-mcp-server/tests/test_server.py:1548
Function
test_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
Function
test_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:1631
Function
test_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
Function
test_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:1772
Function
test_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
Function
test_main_secret_arn_whitespace_stripped_bare_default
Whitespace around a bare default --secret_arn is stripped.
src/oracle-mcp-server/tests/test_server.py:1750
Function
test_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
Function
test_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:1728
Function
test_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
Method
test_main_server_error
Test that main handles server startup errors.
src/prometheus-mcp-server/tests/test_main.py:211
Function
test_main_sets_log_dir
Test main sets log_dir if --log-dir is provided.
src/s3-tables-mcp-server/tests/test_server.py:896
Function
test_main_sets_server_config
main() parses args and configures server_config.
src/oracle-mcp-server/tests/test_server.py:1370
Function
test_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
Function
test_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
Method
test_main_starts_when_validation_passes
A clean validation lets startup proceed to mcp.run().
src/postgres-mcp-server/tests/test_server_error_handling.py:890
Method
test_main_starts_with_invalid_cluster
Test that main starts even when connection validation fails.
src/aurora-dsql-mcp-server/tests/test_main.py:323
Method
test_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
Method
test_main_starts_without_cluster_config
Test that main starts successfully without cluster configuration.
src/aurora-dsql-mcp-server/tests/test_main.py:272
Function
test_main_startup_connection_validation
main() validates connection at startup using validate_sync().
src/oracle-mcp-server/tests/test_server.py:1398
Function
test_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
Function
test_main_startup_validation_failure_exits
validate_sync() failure during startup triggers sys.exit(1).
src/oracle-mcp-server/tests/test_coverage.py:282
Function
test_main_stdio
Test the main function with stdio transport.
src/aws-location-mcp-server/tests/test_server.py:1059
Method
test_main_stdio
Test main function with stdio transport.
src/lambda-tool-mcp-server/tests/test_server.py:430
Method
test_main_stdio
Test main function with stdio transport.
src/amazon-mq-mcp-server/tests/test_server.py:333
Method
test_main_stdio_transport
Test main function with stdio transport.
src/stepfunctions-tool-mcp-server/tests/test_main.py:18
Function
test_main_success
Test main function normal execution.
src/cloudwatch-applicationsignals-mcp-server/tests/test_server.py:1944
Method
test_main_success
Test successful main execution.
src/healthlake-mcp-server/tests/test_main.py:14
Method
test_main_success
Test that main correctly initializes and runs the server.
src/prometheus-mcp-server/tests/test_main.py:92
Method
test_main_success
Test the main function with successful execution.
src/aws-serverless-mcp-server/tests/test_server.py:82
Function
test_main_success_with_http_transport
Test main function executes successfully with HTTP transport (else branch).
src/aws-api-mcp-server/tests/test_server.py:879
Function
test_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:850
Method
test_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
Method
test_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
Function
test_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
Function
test_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
Method
test_main_wiring
main() must load config, create server, register handlers, and run.
src/aws-transform-mcp-server/tests/test_server.py:131
Method
test_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
Method
test_main_with_allow_resource_creation
Test main function with --allow-resource-creation flag.
src/amazon-sns-sqs-mcp-server/tests/test_server.py:113
Function
test_main_with_allow_write
Test main function with --allow-write flag.
src/aws-appsync-mcp-server/tests/test_server.py:23
Method
test_main_with_aws_resource_write_enabled
Test main function with AWS resource write enabled.
src/finch-mcp-server/tests/test_cli_flags.py:218
Method
test_main_with_custom_knowledge_parameters
Test that main accepts custom knowledge server and timeout.
src/aurora-dsql-mcp-server/tests/test_main.py:231
Method
test_main_with_custom_log_file
Test main function with custom log file.
src/finch-mcp-server/tests/test_cli_flags.py:230
Method
test_main_with_default_logging
Test main function with default logging configuration.
src/finch-mcp-server/tests/test_cli_flags.py:260
Method
test_main_with_default_settings
Test main function with default settings.
src/finch-mcp-server/tests/test_cli_flags.py:206
Method
test_main_with_different_args
Test the main function with different command-line arguments.
src/aws-serverless-mcp-server/tests/test_server.py:206
Method
test_main_with_exception
Test main function when an exception occurs.
src/s3-tables-mcp-server/tests/test_main.py:44
Method
test_main_with_file_logging_disabled
Test main function with file logging disabled.
src/finch-mcp-server/tests/test_cli_flags.py:251
Function
test_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
Function
test_main_with_help_flag
Test main function with --help flag.
src/aws-appsync-mcp-server/tests/test_server.py:102
Function
test_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
Function
test_main_with_invalid_psycopg_parameters
Test main function with invalid psycopg command line parameters.
src/postgres-mcp-server/tests/test_server.py:1088
Method
test_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
Function
test_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
Method
test_main_with_optional_arguments
(self, mocker)
src/aurora-dsql-mcp-server/tests/test_main.py:63
Method
test_main_with_profile_argument
(self, mocker)
src/aurora-dsql-mcp-server/tests/test_profile_option.py:38
Function
test_main_with_psycopg_parameters
Test main function with valid psycopg command line parameters.
src/postgres-mcp-server/tests/test_server.py:962
Method
test_main_with_required_arguments
(self, mocker)
src/aurora-dsql-mcp-server/tests/test_main.py:37
Method
test_main_with_sensitive_data_access
Test main function with sensitive data access enabled.
src/sagemaker-ai-mcp-server/tests/test_main.py:119
Function
test_main_with_sse
Test the main function with SSE transport.
src/well-architected-security-mcp-server/tests/test_server.py:553
Function
test_main_with_sse
Test the main function with SSE transport.
src/well-architected-security-mcp-server/tests/test_server_coverage.py:92
Function
test_main_with_sse_transport
Test the main function with SSE transport.
src/openapi-mcp-server/tests/test_main_extended.py:72
Function
test_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
Function
test_main_with_stdio_transport
Test the main function with stdio transport.
src/openapi-mcp-server/tests/test_main_extended.py:26
Method
test_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
Function
test_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
Method
test_main_with_workspace_id_in_url
Test that main correctly handles URLs with workspace IDs.
src/prometheus-mcp-server/tests/test_main.py:131
Method
test_main_with_write_access
Test main function with write access enabled.
src/sagemaker-ai-mcp-server/tests/test_main.py:74
Method
test_main_with_write_permission
Test main function with --allow-write argument.
src/s3-tables-mcp-server/tests/test_main.py:34
Method
test_main_without_allow_resource_creation
Test main function without --allow-resource-creation flag.
src/amazon-sns-sqs-mcp-server/tests/test_server.py:140
Function
test_main_without_allow_write
Test main function without --allow-write flag.
src/aws-appsync-mcp-server/tests/test_server.py:41
Method
test_main_without_debug_flag
Test main function without debug flag.
src/aws-support-mcp-server/tests/test_aws_support_mcp_server.py:3272
Method
test_main_without_profile_argument
(self, mocker)
src/aurora-dsql-mcp-server/tests/test_profile_option.py:74
Method
test_main_without_sse
Test main function without SSE.
src/amazon-sns-sqs-mcp-server/tests/test_server.py:91
Method
test_mainframe_assessment_summary_passthrough
(self)
src/aws-transform-mcp-server/tests/test_hitl_schemas.py:261
Function
test_make_request
Test making a request.
src/openapi-mcp-server/tests/utils/test_http_client.py:53
Method
test_make_request_api_error
Test API error response raises RuntimeError.
src/cloudwatch-mcp-server/tests/cloudwatch_metrics/test_promql_client.py:70
Method
test_make_request_api_error
Test API error response.
src/prometheus-mcp-server/tests/test_coverage_gaps.py:35
Method
test_make_request_api_error
Test that make_request raises RuntimeError when the API returns an error status.
src/prometheus-mcp-server/tests/test_prometheus_client.py:86
Method
test_make_request_api_url_construction
Test that make_request correctly constructs the API URL.
src/prometheus-mcp-server/tests/test_prometheus_client.py:80
Method
test_make_request_dangerous_endpoint
Test that make_request raises ValueError when endpoint contains dangerous characters.
src/prometheus-mcp-server/tests/test_prometheus_client.py:52
← previous
next →
22,901–23,000 of 32,024, ranked by callers