MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

Methodtest_load_json_file_empty_file
Test handling of empty JSON file.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_file_utils.py:163
Methodtest_load_json_file_file_not_found
Test FileNotFoundError when file doesn't exist.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_file_utils.py:23
Methodtest_load_json_file_invalid_json
Test ValueError for invalid JSON.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_file_utils.py:28
Methodtest_load_json_file_permission_error
Test ValueError for permission errors.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_file_utils.py:36
Methodtest_load_json_file_success
Test successful JSON file loading.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_file_utils.py:14
Methodtest_load_json_file_with_encoding
Test JSON loading with UTF-8 encoding.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_file_utils.py:154
Methodtest_load_links_only
Test load_links_only initializes cache with document titles.
src/amazon-bedrock-agentcore-mcp-server/tests/test_cache.py:36
Methodtest_load_links_only_handles_http_error
Test load_links_only handles HTTP errors gracefully without crashing.
src/amazon-bedrock-agentcore-mcp-server/tests/test_cache.py:182
Methodtest_load_links_only_handles_network_error
Test load_links_only handles generic network errors gracefully.
src/amazon-bedrock-agentcore-mcp-server/tests/test_cache.py:203
Methodtest_load_links_only_partial_failure
Test load_links_only continues with remaining sources after one fails.
src/amazon-bedrock-agentcore-mcp-server/tests/test_cache.py:219
Methodtest_load_metadata_corrupted_file
Test loading corrupted metadata file - covers lines 55-65.
src/ccapi-mcp-server/tests/test_schema_manager.py:145
Functiontest_load_metrics_guidance
Test loading metrics guidance from file.
src/eks-mcp-server/tests/test_cloudwatch_metrics_guidance_handler.py:118
Functiontest_load_metrics_guidance_error
Test error handling when loading metrics guidance.
src/eks-mcp-server/tests/test_cloudwatch_metrics_guidance_handler.py:128
Methodtest_load_missing_required_fields
Config file missing required fields (fes_endpoint, origin, auth_mode) must return False.
src/aws-transform-mcp-server/tests/test_config_store.py:484
Functiontest_load_next_steps_prompt
Test _load_next_steps_prompt with and without variable substitution.
src/dynamodb-mcp-server/tests/test_dynamodb_server.py:1991
Methodtest_load_nonexistent_file_raises_error
Test loading non-existent file raises appropriate error.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_loader.py:48
Methodtest_load_nonexistent_language_raises_error
Test loading non-existent language raises FileNotFoundError.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_language_config.py:77
Methodtest_load_only_once
Test Load only once.
src/cloudwatch-applicationsignals-mcp-server/tests/test_canary_knowledge_base_loader.py:90
Functiontest_load_openapi_spec_bare_url_is_validated_and_blocks_private
The primary-spec path (bare url) is now validated: a private IP is blocked.
src/openapi-mcp-server/tests/test_ssrf_protection.py:935
Functiontest_load_openapi_spec_does_not_retry_ssrf_failures
An SSRFFetchError from the fetch is raised immediately, not retried away.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1085
Methodtest_load_openapi_spec_file_not_found
Test loading OpenAPI spec from non-existent file.
src/openapi-mcp-server/tests/test_openapi_coverage_89.py:15
Functiontest_load_openapi_spec_file_refuses_http_ref_without_request
The file-path sink also refuses external $refs and makes no request.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1259
Functiontest_load_openapi_spec_file_refuses_relative_ref
A multi-file split (relative $ref) is refused rather than silently fetched.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1269
Functiontest_load_openapi_spec_file_reraises_memory_error
A MemoryError during the file-path prescan propagates, not masked as unparseable.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1291
Functiontest_load_openapi_spec_file_reraises_memory_error_from_prance
A MemoryError from prance on the file path propagates, not masked by fallback.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1303
Functiontest_load_openapi_spec_file_resolves_internal_refs
Positive control: a file spec using only internal refs still loads.
src/openapi-mcp-server/tests/test_ssrf_protection.py:1277
Methodtest_load_openapi_spec_invalid_json_and_yaml_without_pyyaml
Test loading invalid JSON when pyyaml is not available.
src/openapi-mcp-server/tests/test_openapi_coverage_89.py:81
Methodtest_load_openapi_spec_invalid_yaml
Test loading invalid YAML file.
src/openapi-mcp-server/tests/test_openapi_coverage_89.py:53
Methodtest_load_openapi_spec_prance_exception_fallback
Test prance exception handling and fallback to basic parsing.
src/openapi-mcp-server/tests/test_openapi_coverage_89.py:103
Functiontest_load_openapi_spec_rebinding_never_hits_metadata_ip
Rebinding PoC: validation resolves once to a public IP; the fetch is pinned to it. Simulates an authoritative DNS that would answer 93.184.216.34
src/openapi-mcp-server/tests/test_ssrf_protection.py:890
Methodtest_load_openapi_spec_yaml_without_pyyaml
Test loading YAML file when pyyaml is not available.
src/openapi-mcp-server/tests/test_openapi_coverage_89.py:20
Methodtest_load_persisted_cookie
Cookie config loads and validates session via VerifySession.
src/aws-transform-mcp-server/tests/test_config_store.py:272
Methodtest_load_persisted_cookie_stale_session
A persisted cookie that fails VerifySession must return False.
src/aws-transform-mcp-server/tests/test_config_store.py:301
Methodtest_load_persisted_missing_file
(self, tmp_path)
src/aws-transform-mcp-server/tests/test_config_store.py:326
Functiontest_load_prompt_templates_caching
Test that templates are cached after first load.
src/well-architected-security-mcp-server/tests/test_prompt_utils.py:166
Functiontest_load_prompt_templates_empty_file
Test loading templates from an empty file.
src/well-architected-security-mcp-server/tests/test_prompt_utils.py:115
Functiontest_load_prompt_templates_file_not_found
Test loading templates when file doesn't exist.
src/well-architected-security-mcp-server/tests/test_prompt_utils.py:52
Functiontest_load_prompt_templates_invalid_format
Test loading templates from a file with invalid format.
src/well-architected-security-mcp-server/tests/test_prompt_utils.py:127
Functiontest_load_prompt_templates_missing_code_block
Test loading templates with missing code blocks.
src/well-architected-security-mcp-server/tests/test_prompt_utils.py:144
Functiontest_load_prompt_templates_valid_file
Test loading templates from a valid markdown file.
src/well-architected-security-mcp-server/tests/test_prompt_utils.py:59
Functiontest_load_prompt_templates_with_exception
Test handling of exceptions during template loading.
src/well-architected-security-mcp-server/tests/test_prompt_utils.py:324
Functiontest_load_prompt_templates_with_missing_file
Test loading prompt templates when file doesn't exist.
src/well-architected-security-mcp-server/tests/test_prompt_utils_coverage.py:29
Functiontest_load_prompt_templates_with_valid_file
Test loading prompt templates with a valid markdown file.
src/well-architected-security-mcp-server/tests/test_prompt_utils_coverage.py:38
Methodtest_load_python_config
Test loading Python config using the load method.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_language_config.py:69
Methodtest_load_usage_data_file_not_found
Test loading non-existent usage data file.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_usage_data_loader.py:91
Methodtest_load_usage_data_invalid_json
Test loading invalid JSON file.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_usage_data_loader.py:101
Methodtest_load_usage_data_permission_error
Test loading file with permission error.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_usage_data_loader.py:111
Methodtest_load_usage_data_unexpected_error
Test _load_usage_data handles unexpected exceptions (except Exception branch).
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_usage_data_loader.py:370
Methodtest_load_valid_bearer_not_expired
A persisted bearer token that has not expired loads successfully.
src/aws-transform-mcp-server/tests/test_config_store.py:437
Methodtest_load_valid_schema_success
Test loading a valid schema succeeds.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_loader.py:13
Methodtest_load_with_invalid_path
Test that invalid path traversal is blocked.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_language_config.py:88
Functiontest_load_with_missing_subdirectory
Test that load handles missing subdirectories gracefully.
src/cloudwatch-applicationsignals-mcp-server/tests/test_canary_knowledge_base_loader.py:213
Methodtest_load_xml_with_block_comment_is_detected
LOAD XML is a sibling form of LOAD DATA and must also be caught.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:171
Methodtest_load_yaml_template
Test _load_yaml_template method.
src/eks-mcp-server/tests/test_k8s_handler.py:1126
Methodtest_load_yaml_template_removes_checkov_annotations
Test _load_yaml_template method removes checkov skip annotations from deployment template.
src/eks-mcp-server/tests/test_k8s_handler.py:139
Methodtest_local_directory
Bundle resolves a local directory path to a file dictionary. Validates: Requirement Lint Workflow Bundle with File Path or S3 URI
src/aws-healthomics-mcp-server/tests/test_workflow_linting_resolution.py:185
Methodtest_local_file_path
Lint resolves a local file path to its content before linting. Validates: Requirement Lint Workflow Definition with File Path or S3 URI
src/aws-healthomics-mcp-server/tests/test_workflow_linting_resolution.py:61
Methodtest_local_file_path
Package resolves a local file path for main_file_content. Validates: Requirement Package Workflow with File Path or S3 URI
src/aws-healthomics-mcp-server/tests/test_helper_tools_resolution.py:47
Methodtest_local_file_size_limit
Local file exceeding size limit raises ValueError. **Validates: Requirements Content Resolution Security**
src/aws-healthomics-mcp-server/tests/test_content_resolver_security.py:199
Functiontest_local_file_uri
Test aws command with URI input file parameter.
src/aws-api-mcp-server/tests/parser/test_parser_customizations.py:442
Functiontest_local_file_uri_validation_failure
Test aws command with URI input file parameter outside the working directory.
src/aws-api-mcp-server/tests/parser/test_parser_customizations.py:483
Methodtest_local_file_write_end_to_end
Local output_path writes SVG to disk and returns a JSON summary. Validates: Requirements Output Path Local Detection, Response Structure with
src/aws-healthomics-mcp-server/tests/test_run_timeline_output.py:1533
Functiontest_local_module_finding
Test the local module finding functionality.
src/aws-pricing-mcp-server/tests/test_terraform_analyzer.py:355
Methodtest_local_output_path_with_additional_files
Local output_path includes all files in the summary and ZIP.
src/aws-healthomics-mcp-server/tests/test_package_workflow_output.py:243
Methodtest_local_output_path_writes_zip
Local output_path writes ZIP to disk and returns JSON summary.
src/aws-healthomics-mcp-server/tests/test_package_workflow_output.py:217
Methodtest_local_path_does_not_call_s3
Local output_path does not invoke write_zip_to_s3.
src/aws-healthomics-mcp-server/tests/test_package_workflow_output.py:357
Methodtest_local_size_checked_before_read
Local file size is checked via os.path.getsize before open(). **Validates: Requirements Content Resolution Security**
src/aws-healthomics-mcp-server/tests/test_content_resolver_security.py:306
Methodtest_local_success_response_has_exact_keys_and_status
Local path success response has exactly status, output_path, run_id, task_count keys. Validates: Requirements Response Structure with Output
src/aws-healthomics-mcp-server/tests/test_run_timeline_output.py:1086
Methodtest_localhost_blocked
Test localhost endpoints are blocked.
src/aws-appsync-mcp-server/tests/test_create_datasource.py:47
Methodtest_localhost_rejected
Localhost/loopback addresses must be rejected (common attack vector).
src/mysql-mcp-server/tests/test_endpoint_validation.py:596
Methodtest_location_advice_only_when_location_is_filtered
The location/regionCode note appears only when a location filter was sent.
src/billing-cost-management-mcp-server/tests/tools/test_aws_pricing_tools.py:1829
Methodtest_location_filter_documents_the_location_values
Local Zone codes, empty global usage, no AZs, and names that match nothing.
src/billing-cost-management-mcp-server/tests/tools/test_aws_bcm_pricing_calculator_tools.py:2522
Methodtest_location_from_response_bare_code_fields
A bare Language/FilePath dict (no wrapper) parses to a CodeLocation.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:3257
Functiontest_locations
Locations.
src/cloudwatch-applicationsignals-mcp-server/tests/test_rum_tools.py:555
Methodtest_lock_tables_write_is_detected
``LOCK TABLES t WRITE`` — write lock acquisition. The longer phrase ``LOCK TABLES`` should win the regex race over bare ``LOCK`` beca
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:542
Functiontest_locking_clause_reliance_is_narrow
A locking clause must not become a way to smuggle anything else past the guard.
src/postgres-mcp-server/tests/test_sql_guard_read_only_corpus.py:970
Functiontest_locking_clauses_pass_the_guard_and_rely_on_the_transaction
Row-locking SELECTs pass the guard; the read-only transaction refuses them.
src/postgres-mcp-server/tests/test_sql_guard_read_only_corpus.py:965
Methodtest_log_anomaly_histogram_conversion
Test LogAnomaly histogram timestamp conversion.
src/cloudwatch-mcp-server/tests/test_common_and_server.py:187
Methodtest_log_anomaly_log_samples_limit
Test LogAnomaly model limits log samples to 1 - covers line 139 in models.py.
src/cloudwatch-mcp-server/tests/test_common_and_server.py:137
Methodtest_log_backup_invocation_detail_exception
Test log backup when list_command_invocations raises (lines 757-762).
src/aws-for-sap-management-mcp-server/tests/test_health.py:4210
Methodtest_log_backup_no_command_history
Test log backup status when no SSM command history exists.
src/aws-for-sap-management-mcp-server/tests/test_health.py:1375
Methodtest_log_backup_paginator_exception
Test log backup when paginator raises exception (lines 715-716).
src/aws-for-sap-management-mcp-server/tests/test_health.py:4261
Methodtest_log_backup_with_command_history
Test log backup status includes SSM command invocation results.
src/aws-for-sap-management-mcp-server/tests/test_health.py:1293
Methodtest_log_critical
Test that log_with_request_id logs at CRITICAL level.
src/sagemaker-ai-mcp-server/tests/test_logging_helper.py:76
Methodtest_log_debug
Test that log_with_request_id logs at DEBUG level.
src/sagemaker-ai-mcp-server/tests/test_logging_helper.py:46
Methodtest_log_error
Test that log_with_request_id logs at ERROR level.
src/sagemaker-ai-mcp-server/tests/test_logging_helper.py:69
Functiontest_log_event
Test LogEvent model.
src/aws-healthomics-mcp-server/tests/test_models.py:297
Functiontest_log_event_validation
Test LogEvent validation.
src/aws-healthomics-mcp-server/tests/test_models.py:484
Methodtest_log_file_and_disable_logging_both_set
Test behavior when both log file and disable file logging are set.
src/finch-mcp-server/tests/test_cli_flags.py:717
Methodtest_log_file_environment_variable_precedence
Test behavior when both CLI flag and environment variable are set.
src/finch-mcp-server/tests/test_cli_flags.py:178
Methodtest_log_file_flag
Test --log-file flag parsing.
src/finch-mcp-server/tests/test_cli_flags.py:79
Methodtest_log_file_sets_environment_variable
Test that --log-file flag sets FINCH_MCP_LOG_FILE environment variable.
src/finch-mcp-server/tests/test_cli_flags.py:156
Functiontest_log_file_setup
Legacy compatibility test for log file setup functionality.
src/ecs-mcp-server/tests/unit/test_main.py:453
Functiontest_log_file_setup_exception
Legacy compatibility test for log file setup error handling.
src/ecs-mcp-server/tests/unit/test_main.py:495
Methodtest_log_file_with_empty_string
Test --log-file with empty string.
src/finch-mcp-server/tests/test_cli_flags.py:314
Methodtest_log_file_with_special_characters
Test --log-file with special characters in path.
src/finch-mcp-server/tests/test_cli_flags.py:322
Methodtest_log_file_with_unicode_path
Test --log-file with unicode characters in path.
src/finch-mcp-server/tests/test_cli_flags.py:583
Methodtest_log_file_with_very_long_path
Test --log-file with very long path.
src/finch-mcp-server/tests/test_cli_flags.py:593
Methodtest_log_group_preview_truncation
Warning messages should truncate log group lists > 3.
src/cloudwatch-mcp-server/tests/cloudwatch_logs/test_cwl_insights_batch.py:940
Methodtest_log_info
Test that log_with_request_id logs at INFO level.
src/sagemaker-ai-mcp-server/tests/test_logging_helper.py:53
← previousnext →24,801–24,900 of 35,417, ranked by callers