MCPcopy Create free account

hub / github.com/awslabs/mcp / functions

Functions35,417 in github.com/awslabs/mcp

Methodtest_read_local_file_rejects_directory
_read_local_file raises ValueError when path is a directory, not a regular file. **Validates: Requirements Local File Content Resolution**
src/aws-healthomics-mcp-server/tests/test_content_resolver.py:1387
Methodtest_read_local_file_rejects_directory_binary_mode
_read_local_file raises ValueError for directory in binary mode too. **Validates: Requirements Local File Content Resolution**
src/aws-healthomics-mcp-server/tests/test_content_resolver.py:1403
Methodtest_read_only
(self)
src/aws-transform-mcp-server/tests/test_tool_utils.py:58
Functiontest_read_only_allowed
Legitimate reads pass in read-only mode.
src/postgres-mcp-server/tests/test_sql_guard.py:71
Functiontest_read_only_connection_opens_a_read_only_transaction_first
The backstop the guard depends on must actually be issued, and issued first. The guard permits row-locking SELECTs precisely because this stateme
src/postgres-mcp-server/tests/test_run_query_policy_wiring.py:235
Methodtest_read_only_enforcement_is_passed_through_unchanged
One flag decides the guard and the wrapper, so it must not be re-derived here. The mapping from ACCESS_MODE onto this flag happens once, in t
src/redshift-mcp-server/tests/test_redshift.py:1657
Methodtest_read_only_is_recognized
`read-only` selects read-only mode explicitly.
src/redshift-mcp-server/tests/test_settings.py:123
Methodtest_read_only_lock_status_probes_are_allowed
``IS_FREE_LOCK`` / ``IS_USED_LOCK`` report status only — not blocked.
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1613
Methodtest_read_only_mode_advertises_read_only
Read-only mode keeps the read-only hints and title.
src/redshift-mcp-server/tests/test_server.py:289
Functiontest_read_only_operations_has_method_custom_operation
Test the has method of ReadOnlyOperations with custom operations.
src/aws-api-mcp-server/tests/metadata/test_read_only_operations_list.py:194
Functiontest_read_only_operations_has_method_error
Test the has method of ReadOnlyOperations when the service reference API call throws an error.
src/aws-api-mcp-server/tests/metadata/test_read_only_operations_list.py:157
Functiontest_read_only_operations_has_method_missing_service
Test the has method of ReadOnlyOperations when the provided service is missing.
src/aws-api-mcp-server/tests/metadata/test_read_only_operations_list.py:94
Functiontest_read_only_operations_has_method_operation_from_metadata
Test the has method of ReadOnlyOperations with operations defined in api metadata.
src/aws-api-mcp-server/tests/metadata/test_read_only_operations_list.py:202
Functiontest_read_only_operations_has_method_second_call_for_service_queries_local_cache
Test the has method of ReadOnlyOperations when the provided service is available.
src/aws-api-mcp-server/tests/metadata/test_read_only_operations_list.py:124
Functiontest_read_only_operations_initialization
Test ReadOnlyOperations initialization.
src/aws-api-mcp-server/tests/metadata/test_read_only_operations_list.py:75
Functiontest_read_only_operations_overrides
Test the has method of ReadOnlyOperations with overrides.
src/aws-api-mcp-server/tests/metadata/test_read_only_operations_list.py:213
Methodtest_read_only_picks_a_read_only_endpoint
Shape taken from a real describe-db-proxy-endpoints response.
src/postgres-mcp-server/tests/test_cp_api_connection.py:2379
Functiontest_read_only_policy_rejects_writes_and_multiple_statements
The parser guard fails closed for non-read SQL.
src/aurora-dsql-mcp-server/tests/test_sql_guard.py:146
Methodtest_read_only_request_needs_a_healthy_reader
A read-only request must not be satisfied by a writer-only cluster. Otherwise reads would be served by the primary, which is exactly what
src/postgres-mcp-server/tests/test_cp_api_connection.py:2288
Methodtest_read_only_tools_are_annotated_read_only
Read-only tools carry ``read_only_hint=True`` for MCP clients.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:1474
Methodtest_read_only_tools_execution_paths
Test execution paths for read-only tools. Ensures read-only tools can be executed without errors.
src/amazon-mq-mcp-server/tests/rabbitmq/test_module.py:177
Methodtest_read_only_tools_registration
Test registration of read-only tools specifically. Verifies that read-only tools are properly registered via private method.
src/amazon-mq-mcp-server/tests/rabbitmq/test_module.py:73
Methodtest_read_only_tools_registration_count
Test the count of registered read-only tools. Verifies that multiple read-only tools are registered (count > 0).
src/amazon-mq-mcp-server/tests/rabbitmq/test_module.py:131
Methodtest_read_operations_allowed_without_permission
Test that read operations are allowed without write permissions.
src/aws-dataprocessing-mcp-server/tests/handlers/emr/test_emr_ec2_steps_handler.py:122
Methodtest_read_operations_allowed_without_permission
Test that read operations are allowed without write permissions.
src/aws-dataprocessing-mcp-server/tests/handlers/emr/test_emr_ec2_instance_handler.py:166
Methodtest_read_query_with_keyword_only_as_data_is_allowed
End-to-end: a read query that merely mentions the word passes both gates. Combines the readonly gate and the injection gate the way s
src/mysql-mcp-server/tests/test_mutable_sql_detector.py:1214
Methodtest_read_resource_404_maps_to_not_found
A 404 from the FHIR REST API must map to ``not_found``.
src/healthlake-mcp-server/tests/test_server_dataplane_errors.py:44
Methodtest_read_resource_handler_invalid_uri
Test read_resource handler with invalid URI.
src/healthlake-mcp-server/tests/test_server_mcp_handlers.py:96
Methodtest_read_resource_handler_valid_uri
Test read_resource handler with valid URI.
src/healthlake-mcp-server/tests/test_server_mcp_handlers.py:73
Methodtest_read_resource_rejects_invalid_resource_id_chars
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:592
Methodtest_read_resource_rejects_slash_in_resource_type
Security regression test.
src/healthlake-mcp-server/tests/test_pagination_hardening.py:606
Methodtest_read_resource_success
Test successful resource read.
src/healthlake-mcp-server/tests/test_fhir_client_comprehensive.py:161
Methodtest_read_resource_success
Test successful resource reading.
src/healthlake-mcp-server/tests/test_fhir_operations.py:116
Methodtest_read_sections_empty_section_titles
Test read_sections with empty section_titles parameter.
src/aws-documentation-mcp-server/tests/test_server_aws.py:293
Methodtest_read_sections_end_to_end_workflow
Test complete end-to-end workflow and verify only h2 sections extracted.
src/aws-documentation-mcp-server/tests/test_server_aws.py:439
Methodtest_read_sections_error_names_the_redirect
A section-less redirected page fails with the redirect named in the message.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1474
Methodtest_read_sections_extract_content_error
Test read_sections when extract_content_from_html returns error.
src/aws-documentation-mcp-server/tests/test_server_aws.py:415
Methodtest_read_sections_fetches_html_page_for_md_url
read_sections reads the .html page at the .md URL's path.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1438
Methodtest_read_sections_flags_redirect_when_heading_matches
A heading that happens to match on the wrong page does not hide the redirect.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1589
Methodtest_read_sections_hint_names_the_served_page
read_sections carries the same suggestion and the same URL.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1943
Methodtest_read_sections_http_error
Test read_sections with HTTP error.
src/aws-documentation-mcp-server/tests/test_server_aws.py:215
Methodtest_read_sections_invalid_domain
Test read_sections with invalid domain.
src/aws-documentation-mcp-server/tests/test_server_aws.py:273
Methodtest_read_sections_invalid_extension
Test read_sections with invalid file extension.
src/aws-documentation-mcp-server/tests/test_server_aws.py:283
Functiontest_read_sections_live_all_sections_fail
Test that when all sections fail to match, ValueError is raised with helpful message.
src/aws-documentation-mcp-server/tests/test_aws_read_sections_live.py:168
Functiontest_read_sections_live_basic
Test basic section extraction from stable AWS documentation URL.
src/aws-documentation-mcp-server/tests/test_aws_read_sections_live.py:40
Functiontest_read_sections_live_case_insensitive
Test case-insensitive section matching against real documentation.
src/aws-documentation-mcp-server/tests/test_aws_read_sections_live.py:119
Functiontest_read_sections_live_heading_levels
Titles search lists at h1, h3 and h4, and a title shared by an h2 and an h3, resolve.
src/aws-documentation-mcp-server/tests/test_aws_read_sections_live.py:225
Functiontest_read_sections_live_missing_sections
Test graceful handling when some requested sections don't exist.
src/aws-documentation-mcp-server/tests/test_aws_read_sections_live.py:91
Functiontest_read_sections_live_multiple_sections
Test extracting multiple sections from a comprehensive AWS documentation page.
src/aws-documentation-mcp-server/tests/test_aws_read_sections_live.py:63
Functiontest_read_sections_live_whitespace_normalization
Whitespace normalization with real documentation.
src/aws-documentation-mcp-server/tests/test_aws_read_sections_live.py:145
Methodtest_read_sections_markdown_content
Test read_sections extracts sections from a negotiated Markdown response.
src/aws-documentation-mcp-server/tests/test_server_aws.py:374
Methodtest_read_sections_missing_section
The page was readable but held none of the requested sections.
src/aws-documentation-mcp-server/tests/test_tool_errors.py:212
Methodtest_read_sections_no_sections_found
Test read_sections when no requested sections exist.
src/aws-documentation-mcp-server/tests/test_server_aws.py:229
Methodtest_read_sections_non_404_error
Test read_sections with non-404 HTTP error.
src/aws-documentation-mcp-server/tests/test_server_aws.py:398
Methodtest_read_sections_non_html_content
A non-HTML response without level-2 headings has no sections to extract.
src/aws-documentation-mcp-server/tests/test_tool_errors.py:200
Methodtest_read_sections_non_html_names_the_redirect
A non-HTML page with no sections does not hide that the page moved.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1780
Methodtest_read_sections_offsite_redirect_blocked
read_sections: an IMDS redirect is refused and the body never leaks.
src/aws-documentation-mcp-server/tests/test_server_utils.py:589
Methodtest_read_sections_partial_success
Test read_sections with partial success (some sections found, others missing).
src/aws-documentation-mcp-server/tests/test_server_aws.py:251
Methodtest_read_sections_prefers_markdown
read_sections negotiates the same way read_documentation does.
src/aws-documentation-mcp-server/tests/test_server_utils.py:2140
Methodtest_read_sections_readable_page_still_suggests_read_documentation
A page with prose but no matching section keeps the read_documentation pointer.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1281
Methodtest_read_sections_rejects_empty_section_titles
An empty section_titles list cannot be served.
src/aws-documentation-mcp-server/tests/test_tool_errors.py:118
Methodtest_read_sections_special_characters_url_encoding
Test that section titles with special characters are properly URL-encoded.
src/aws-documentation-mcp-server/tests/test_server_aws.py:303
Methodtest_read_sections_status_error_names_the_redirect
read_sections reports the redirect on a failing status too.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1710
Methodtest_read_sections_success
Test successful section extraction from AWS documentation.
src/aws-documentation-mcp-server/tests/test_server_aws.py:145
Functiontest_read_sections_truncates_large_table
Test that read_sections truncates the Bedrock quotas table.
src/aws-documentation-mcp-server/tests/test_aws_search_table_live.py:108
Methodtest_read_sections_unexpected_error_is_surfaced
A failure other than an unreadable page is logged and re-raised unchanged.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1312
Methodtest_read_sections_unreadable_page_does_not_suggest_read_documentation
A page with no prose must not be sent to read_documentation, which also fails.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1267
Methodtest_read_sections_unreadable_section_names_the_redirect
A section that matches but converts to nothing still reports the redirect.
src/aws-documentation-mcp-server/tests/test_server_utils.py:1649
Methodtest_read_sections_whitespace_normalization
Test whitespace normalization fix for BUG-001.
src/aws-documentation-mcp-server/tests/test_server_aws.py:353
Methodtest_read_sections_with_domain_modification
Test section extraction with domain modification.
src/aws-documentation-mcp-server/tests/test_server_aws.py:191
Methodtest_read_shapes_are_allowed
CTE, SHOW, TABLE, and parenthesized SELECT all pass the guard.
src/redshift-mcp-server/tests/test_sql_guard.py:83
Methodtest_read_statements_do_not_need_confirmation
A plain read is classified as a read.
src/redshift-mcp-server/tests/test_sql_guard.py:624
Methodtest_read_timeout_renders_timeout_guidance
A ReadTimeoutError renders the timeout troubleshooting block.
src/cloudwatch-applicationsignals-mcp-server/tests/test_dynamic_instrumentation_tools.py:3167
Methodtest_read_via_write
GETDEL is in the write allowlist and also returns a value.
src/valkey-mcp-server/tests/integration/test_command_runners_live.py:197
Methodtest_read_write_asks_about_a_statement_only_read_only_mode_denies
Guarded with the read-only list, a GRANT in read-write mode was refused. And the refusal named the wrong mode: `not allowed in read-only mode
src/redshift-mcp-server/tests/test_server.py:122
Methodtest_read_write_asks_before_ending_or_cancelling_a_session
Read as a SELECT, either ran unasked and could end another caller's work.
src/redshift-mcp-server/tests/test_server.py:113
Methodtest_read_write_asks_the_client
Read-write mode returns a request to elicit, against the ConfirmWrite schema.
src/redshift-mcp-server/tests/test_server.py:133
Methodtest_read_write_is_recognized
`read-write` selects read-write mode, case- and whitespace-insensitively.
src/redshift-mcp-server/tests/test_settings.py:117
Methodtest_read_write_mode_advertises_destructive
Read-write mode drops the read-only claim and flags the tool as destructive.
src/redshift-mcp-server/tests/test_server.py:299
Methodtest_read_write_rejects_multi_statement
Read-write still enforces single-statement: a stacked submission is rejected.
src/redshift-mcp-server/tests/test_redshift.py:142
Methodtest_read_write_uses_the_default_endpoint_without_an_api_call
The default endpoint is READ_WRITE, so no enumeration is needed.
src/postgres-mcp-server/tests/test_cp_api_connection.py:2372
Methodtest_readable_date_that_decides_wins
An unreadable date gives UNKNOWN only when the readable one does not decide.
src/billing-cost-management-mcp-server/tests/tools/test_credits_operations.py:489
Methodtest_readable_filter_is_not_flagged
A filter whose every node has a member is returned without the flag.
src/billing-cost-management-mcp-server/tests/tools/test_budget_tools.py:1106
Methodtest_reading_a_session_setting_is_still_allowed
Only changing one is the problem; `current_setting` answers a question.
src/redshift-mcp-server/tests/test_sql_guard.py:388
Methodtest_readme_custom_template_replaces_cdk_init
Test that custom README template replaces the default cdk init README.
src/dynamodb-mcp-server/tests/cdk_generator/integration/test_cdk_generation.py:118
Methodtest_readonly_allows_read_tools
Test that read tools work in read-only mode.
src/healthlake-mcp-server/tests/test_readonly_mode.py:156
Methodtest_readonly_auth_catalog_false_positive_boundary
r"""`\w*auth\w*` is deliberately broad, so pin what it must NOT catch. The pattern is anchored to the system qualifiers (syscat/sysibm/sysibm
src/db2-mcp-server/tests/test_mutable_sql_detector.py:371
Methodtest_readonly_blocked
(self)
src/valkey-mcp-server/tests/test_search_add_documents.py:132
Methodtest_readonly_blocks_auth_catalog
Read-only mode blocks authorization catalog views.
src/db2-mcp-server/tests/test_mutable_sql_detector.py:326
Methodtest_readonly_blocks_auth_catalog_variants
The block is by object-name shape, so it is not escaped by quoting or spacing.
src/db2-mcp-server/tests/test_mutable_sql_detector.py:357
Methodtest_readonly_blocks_auth_catalog_via_run_query
run_query forwards the read-only flag into the injection check. READONLY_SUSPICIOUS_PATTERNS (the authorization-catalog block) only applies w
src/db2-mcp-server/tests/test_server.py:172
Functiontest_readonly_blocks_insert
Readonly connection passes keyword detection and can execute SELECTs.
src/mssql-mcp-server/tests/e2e/e2e_integration_test.py:151
Methodtest_readonly_blocks_write_tools
Test that write tools are blocked in read-only mode.
src/healthlake-mcp-server/tests/test_readonly_mode.py:145
Functiontest_readonly_defaults_true
readonly_query is True when readonly=True.
src/mssql-mcp-server/tests/test_abstract_db_connection.py:36
Methodtest_readonly_dml_shape_still_rolls_back
A 0-column statement in read-only mode rolls back rather than raising. Read-only mode blocks mutating SQL upstream in run_query, but the driv
src/db2-mcp-server/tests/test_ibm_db_connection.py:373
Methodtest_readonly_error_message_format
Test that read-only error messages are properly formatted.
src/healthlake-mcp-server/tests/test_readonly_mode.py:263
Functiontest_readonly_false
Verify readonly=False is stored correctly.
src/oracle-mcp-server/tests/test_abstract_db_connection.py:42
Functiontest_readonly_false
readonly_query is False when readonly=False.
src/mssql-mcp-server/tests/test_abstract_db_connection.py:42
Methodtest_readonly_false
readonly_query should return False when initialized with readonly=False.
src/mysql-mcp-server/tests/test_abstract_db_connection.py:54
Methodtest_readonly_handler_initialization
Test ToolHandler initialization in read-only mode.
src/healthlake-mcp-server/tests/test_readonly_mode.py:127
← previousnext →28,801–28,900 of 35,417, ranked by callers