MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions32,024 in github.com/awslabs/mcp

Methodtest_load_config_from_env_empty
Test loading config when no environment variables are set.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:137
Methodtest_load_config_from_env_empty_strings
Test handling of empty string environment variables.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:254
Methodtest_load_config_from_env_file_settings
Test loading file settings from environment.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:208
Methodtest_load_config_from_env_invalid_values
Test handling of invalid environment variable values.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:237
Methodtest_load_config_from_env_logging_settings
Test loading logging settings from environment.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:168
Methodtest_load_config_from_env_monitoring_settings
Test loading monitoring settings from environment.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:197
Methodtest_load_config_from_env_performance_settings
Test loading performance settings from environment.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:178
Methodtest_load_config_from_env_vars
Test loading config from environment variables.
src/amazon-translate-mcp-server/tests/test_config.py:92
Methodtest_load_config_from_file_json
Test loading configuration from JSON file.
src/amazon-translate-mcp-server/tests/test_config_comprehensive.py:441
Methodtest_load_config_invalid_values
Test loading config with invalid environment values.
src/amazon-translate-mcp-server/tests/test_config.py:132
Functiontest_load_config_precedence
Test that arguments take precedence over environment variables.
src/openapi-mcp-server/tests/api/test_config.py:189
Methodtest_load_cookie_without_session_cookie
Cookie config missing session_cookie field must return False.
src/aws-transform-mcp-server/tests/test_config_store.py:487
Methodtest_load_corrupt_json
Corrupt JSON in config file must return False.
src/aws-transform-mcp-server/tests/test_config_store.py:456
Methodtest_load_data_wins_over_load_alone
LOAD DATA must be reported in full; bare LOAD isn't in the set.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:298
Methodtest_load_data_with_block_comment_is_detected
Reporter's payload: LOAD/**/DATA INFILE '/etc/passwd' INTO TABLE t.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:165
Methodtest_load_expired_bearer_no_refresh_fields
(self, tmp_path)
src/aws-transform-mcp-server/tests/test_config_store.py:376
Methodtest_load_expired_bearer_refresh_fails
If bearer token is expired and refresh raises, must return False.
src/aws-transform-mcp-server/tests/test_config_store.py:537
Methodtest_load_expired_bearer_triggers_refresh
(self, tmp_path)
src/aws-transform-mcp-server/tests/test_config_store.py:325
Methodtest_load_expired_client_secret
(self, tmp_path)
src/aws-transform-mcp-server/tests/test_config_store.py:399
Methodtest_load_file_function_call_still_detected
``load_file(...)`` is a single identifier; comment trick doesn't apply. Included because the reporter explicitly notes this pattern was not
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:79
Methodtest_load_from_real_kb_directory
Test Load from real kb directory.
src/cloudwatch-applicationsignals-mcp-server/tests/test_canary_knowledge_base_loader.py:70
Methodtest_load_index_into_cache_is_detected
``LOAD INDEX INTO CACHE ...`` preloads indexes into a key cache.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1640
Methodtest_load_invalid_schema_raises_error
Test loading an invalid schema raises ValueError.
src/dynamodb-mcp-server/tests/repo_generation_tool/unit/test_schema_loader.py:32
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:472
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:260
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:289
Methodtest_load_persisted_missing_file
(self, tmp_path)
src/aws-transform-mcp-server/tests/test_config_store.py:314
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:425
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_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_not_held_during_get_statement_result
get_statement_result runs outside the per-key lock.
src/redshift-mcp-server/tests/test_redshift.py:2311
Methodtest_lock_per_key_identity
Test that lock() returns the same Lock for the same key and distinct Locks for distinct keys.
src/redshift-mcp-server/tests/test_redshift.py:1106
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
← previousnext →22,601–22,700 of 32,024, ranked by callers