MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_proxy_prompt_disable_raises_not_implemented
Test that disable() on proxy prompts raises NotImplementedError.
tests/server/providers/proxy/test_proxy_server.py:1005
Methodtest_proxy_prompt_enable_raises_not_implemented
Test that enable() on proxy prompts raises NotImplementedError.
tests/server/providers/proxy/test_proxy_server.py:997
Methodtest_proxy_prompt_preserves_image_content
Test that ProxyPrompt preserves ImageContent without lossy conversion.
tests/server/providers/proxy/test_proxy_server.py:917
Methodtest_proxy_prompt_span_attributes_fall_back_to_name
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:1181
Methodtest_proxy_recovers_after_stdio_crash
A proxy server wrapping a stdio backend recovers after the backend crashes.
tests/client/test_stdio.py:552
Methodtest_proxy_refuses_a_remote_that_duplicates_an_app
A remote mounting one app twice sends back two tools claiming one identity, and the proxy must refuse on the same terms a local compos
tests/server/providers/test_prefab_roundtrip.py:481
Methodtest_proxy_register_client_uses_patterns
Test that registered clients use the configured patterns.
tests/server/auth/test_oauth_proxy_redirect_validation.py:359
Methodtest_proxy_resource_disable_raises_not_implemented
Test that disable() on proxy resources raises NotImplementedError.
tests/server/providers/proxy/test_proxy_server.py:989
Methodtest_proxy_resource_enable_raises_not_implemented
Test that enable() on proxy resources raises NotImplementedError.
tests/server/providers/proxy/test_proxy_server.py:981
Methodtest_proxy_resource_span_attributes_fall_back_to_uri
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:1153
Methodtest_proxy_returns_all_resource_contents
Test that proxy correctly returns all resource contents, not just the first one.
tests/server/providers/proxy/test_proxy_server.py:565
Methodtest_proxy_server
(self)
tests/test_upgrade_from_v3.py:125
Methodtest_proxy_server_with_prompts
Test mounting a proxy server with prompts.
tests/server/mount/test_proxy.py:89
Methodtest_proxy_server_with_resources
Test mounting a proxy server with resources.
tests/server/mount/test_proxy.py:67
Methodtest_proxy_template_returns_all_resource_contents
Test that proxy template correctly returns all resource contents.
tests/server/providers/proxy/test_proxy_server.py:678
Methodtest_proxy_template_span_attributes_fall_back_to_uri_template
( self, proxy_server )
tests/server/providers/proxy/test_proxy_server.py:1166
Methodtest_proxy_tool_disable_raises_not_implemented
Test that disable() on proxy tools raises NotImplementedError.
tests/server/providers/proxy/test_proxy_server.py:973
Methodtest_proxy_tool_enable_raises_not_implemented
Test that enable() on proxy tools raises NotImplementedError.
tests/server/providers/proxy/test_proxy_server.py:965
Methodtest_proxy_tool_preserves_execution_metadata
(self)
tests/tasks/server/test_task_mount.py:383
Methodtest_proxy_tool_span_attributes_fall_back_to_name
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:1140
Methodtest_proxy_unregistered_client_returns_none
Test that unregistered clients return None.
tests/server/auth/test_oauth_proxy_redirect_validation.py:393
Functiontest_proxy_with_async_client_factory
FastMCPProxy should accept an async client_factory.
tests/server/providers/proxy/test_proxy_server.py:242
Methodtest_prune_nested_additional_properties
Test pruning additionalProperties: false at all levels when explicitly enabled.
tests/utilities/test_json_schema.py:568
Methodtest_prune_params
Test pruning parameters with compress_schema.
tests/utilities/test_json_schema.py:483
Methodtest_prune_titles
Test pruning title fields.
tests/utilities/test_json_schema.py:546
Methodtest_prune_titles_does_not_recurse_into_default_values
A user default that happens to be a dict shaped like schema metadata must not be corrupted — `default` holds literal values, not sub-schemas.
tests/utilities/test_json_schema.py:738
Methodtest_prune_titles_on_bare_metadata_node
Pydantic emits `{"title": "X"}` for Any-typed fields with no sibling `type`/`properties`. Gemini 2.5 Flash rejects these with MALFORME
tests/utilities/test_json_schema.py:655
Methodtest_prune_titles_on_draft07_and_legacy_keywords
Sub-schemas under draft-07 and 2019-09+ keywords that previous drafts still use must be treated as schemas, not opaque payload — `depe
tests/utilities/test_json_schema.py:676
Methodtest_prune_titles_preserves_user_extension_payloads
User extensions (json_schema_extra, x-* vendor keys) carry opaque payloads that may look metadata-shaped. They must not be touched.
tests/utilities/test_json_schema.py:716
Methodtest_pruning_additional_properties
Test pruning additionalProperties when explicitly enabled.
tests/utilities/test_json_schema.py:497
Functiontest_public_export_removes_private_influence_before_sorting
(ranking_module)
tests/test_issue_ranking.py:46
Methodtest_public_ipv4_allowed
Public IPv4 addresses should be allowed.
tests/server/auth/test_ssrf_protection.py:61
Functiontest_public_kind_is_a_category_not_formatted_confidence
(ranking_module)
tests/test_issue_ranking.py:131
Methodtest_public_pkce_app_uses_none_token_auth
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:77
Functiontest_public_routes_do_not_report_a_missing_credential
()
tests/cli/deploy/test_horizon_client.py:225
Functiontest_public_scoring_is_independent_of_author_reputation
(ranking_module)
tests/test_issue_ranking.py:79
Methodtest_pydantic_model_function
Test registering a function that takes a Pydantic model.
tests/tools/tool/test_tool.py:185
Methodtest_pydantic_model_return_creates_structured_content_without_schema
Test that Pydantic model returns automatically create structured content even without output schema.
tests/tools/tool/test_content.py:294
Methodtest_pydantic_model_serialized_to_json
Pydantic model is JSON-serialized.
tests/resources/test_resources.py:151
Methodtest_pydantic_model_strict_validation
With strict validation, Pydantic models should enforce exact types.
tests/server/test_input_validation.py:206
Methodtest_pydantic_model_with_coercion
Pydantic models should benefit from coercion without strict validation.
tests/server/test_input_validation.py:181
Methodtest_pydantic_model_with_dict_no_strict
Pydantic models should accept dict arguments without strict validation.
tests/server/test_input_validation.py:141
Methodtest_pydantic_typeadapter_compatibility
Test that modified function works with Pydantic TypeAdapter (regression test for #2562).
tests/utilities/test_types.py:625
Methodtest_python_file
(self)
tests/cli/test_generate_cli.py:396
Methodtest_python_file_existing
(self, tmp_path: Path)
tests/cli/test_client_commands.py:244
Methodtest_python_keyword_property_names
Properties named after Python keywords should not crash.
tests/utilities/json_schema_type/test_json_schema_type.py:259
Methodtest_python_option
Test --python option for all install commands.
tests/cli/test_install.py:413
Methodtest_qualified_match
(self, tmp_path: Path)
tests/cli/test_discovery.py:625
Methodtest_qualified_name
(self)
tests/cli/test_discovery.py:67
Methodtest_qualified_name
(self)
tests/cli/test_generate_cli.py:393
Methodtest_qualified_not_found
(self, tmp_path: Path)
tests/cli/test_discovery.py:657
Functiontest_query_array_serialization
( style: str | None, explode: bool | None, expected: list[tuple[str, str]], )
tests/server/providers/openapi/test_query_array_defaults.py:29
Methodtest_query_header_collision_handling
Test that query and header parameters with same name are handled correctly.
tests/server/providers/openapi/test_parameter_collisions.py:174
Methodtest_query_param_default_used_when_omitted
(self)
tests/server/providers/proxy/test_proxy_server.py:765
Methodtest_query_param_does_not_clobber_path_param
If path and query have the same normalized name, path wins.
tests/resources/test_resource_template.py:964
Methodtest_query_param_forwarded
(self)
tests/server/providers/proxy/test_proxy_server.py:752
Methodtest_query_param_with_blank_and_present_values
Mix of blank and non-blank query values are both surfaced.
tests/resources/test_resource_template.py:983
Methodtest_query_param_with_blank_value_is_preserved
Regression for #4056: blank query values (e.g. ?format=) should not be silently dropped. parse_qs without keep_blank_values=True elide
tests/resources/test_resource_template.py:973
Methodtest_query_parameters
Test query parameter handling.
tests/server/providers/openapi/test_comprehensive.py:603
Methodtest_query_parameters_in_tools
Test that query parameters are properly included in tool parameters.
tests/server/providers/openapi/test_openapi_features.py:154
Methodtest_query_params_must_be_optional
Test that query parameters must have default values.
tests/resources/test_resource_template_query_params.py:143
Methodtest_query_string_reaches_the_app
(self)
tests/utilities/test_asgi_transport.py:78
Methodtest_query_values_encode_reserved_characters
RFC 6570 query expansion permits only unreserved value characters.
tests/resources/test_resource_template.py:1316
Methodtest_question_mark_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1180
Methodtest_quoted_args
(self)
tests/cli/test_client_commands.py:327
Methodtest_quoted_form
(self, argument: str, expected: str)
tests/cli/test_install_cli_arguments.py:223
Functiontest_raised_generic_error_is_masked_without_ctx_param
A non-FastMCP exception is masked even when the tool takes no `ctx`. Error masking is the server's `_mask_error_details` policy, which the task
tests/tasks/server/test_extension.py:202
Functiontest_raised_tool_error_completes_with_is_error
A tool that RAISES is a completed task with an is_error result, not failed. SEP-2663 reserves `failed` for protocol faults; a raised tool error i
tests/tasks/server/test_extension.py:184
Functiontest_raised_tool_error_completes_with_is_error
A task whose tool raises completes with an is_error result (SEP-2663). `failed` is reserved for protocol faults; a raised tool error is the same
tests/tasks/server/test_task_protocol.py:45
Methodtest_raises_by_default
(self)
tests/utilities/test_async_utils.py:71
Methodtest_raises_if_directory_missing
(self, tmp_path: Path)
tests/server/providers/test_skills_provider.py:258
Methodtest_raises_if_exists_without_overwrite
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:319
Methodtest_raises_if_main_file_missing
(self, tmp_path: Path)
tests/server/providers/test_skills_provider.py:262
Methodtest_raises_section_excluded
(self)
tests/utilities/test_docstring_parsing.py:61
Methodtest_raises_when_no_proxy_is_configured
No proxy in the environment → refuse rather than fetch unprotected.
tests/server/auth/test_ssrf_protection.py:641
Methodtest_raising_server_does_not_break_chain
If the server raises, verifiers are still tried.
tests/server/auth/test_multi_auth.py:290
Methodtest_raising_verifier_does_not_break_chain
If a verifier raises, the chain continues to the next source.
tests/server/auth/test_multi_auth.py:279
Functiontest_ramp_doubles_from_floor_up_to_advertised_ceiling
Even with an advertised interval, the poll ramps fast then caps at it.
tests/tasks/client/test_poll_interval.py:46
Methodtest_rate_limiting_allows_normal_usage
Test that normal usage patterns are allowed through rate limiting.
tests/server/middleware/test_rate_limiting.py:439
Methodtest_rate_limiting_blocks_rapid_requests
Test that rate limiting blocks rapid successive requests.
tests/server/middleware/test_rate_limiting.py:454
Methodtest_rate_limiting_recovery_over_time
Test that rate limiting allows requests again after time passes.
tests/server/middleware/test_rate_limiting.py:604
Methodtest_rate_limiting_with_concurrent_requests
Test rate limiting behavior with concurrent requests.
tests/server/middleware/test_rate_limiting.py:478
Methodtest_rate_limiting_with_different_operations
Test that rate limiting applies to all types of operations.
tests/server/middleware/test_rate_limiting.py:532
Methodtest_raw_call_override_still_works
(self)
tests/server/middleware/test_message_visibility.py:205
Methodtest_raw_call_tool_result_is_preserved
(self)
tests/tools/tool/test_results.py:127
Methodtest_raw_call_tool_result_preserves_protocol_fields
(self)
tests/tools/tool/test_results.py:140
Functiontest_raw_create_task_result_is_exposed
The raw claimed CreateTaskResult is reachable via the session/handle path.
tests/tasks/client/test_transparent_tasks.py:103
Methodtest_read_binary
Test reading binary data from a FunctionResource.
tests/resources/test_function_resources.py:50
Methodtest_read_binary_file
Test reading a file as binary.
tests/resources/test_file_resources.py:71
Methodtest_read_binary_file
(self)
tests/apps/test_file_upload.py:78
Methodtest_read_cache_invalid_json
Reading invalid JSON returns None.
tests/utilities/test_version_check.py:61
Methodtest_read_cache_no_file
Reading non-existent cache returns None.
tests/utilities/test_version_check.py:36
Methodtest_read_cache_valid
Reading valid cache returns version and timestamp.
tests/utilities/test_version_check.py:46
Methodtest_read_excluded_resource
(self)
tests/server/providers/test_local_provider_resources.py:738
Methodtest_read_included_resource
(self)
tests/server/providers/test_local_provider_resources.py:730
Methodtest_read_json_resource
(self, proxy_server: FastMCPProxy)
tests/server/providers/proxy/test_proxy_server.py:556
Methodtest_read_latin1_with_encoding
FileResource should read non-UTF-8 files when correct encoding is specified.
tests/resources/test_file_resources.py:169
Methodtest_read_main_file
(self, single_skill_dir: Path)
tests/server/providers/test_skills_provider.py:312
Methodtest_read_main_file_with_literal_percent_in_name
A custom main_file_name containing a literal '%' must round-trip through the same encode/decode path as supporting files (#4545).
tests/server/providers/test_skills_provider.py:322
Methodtest_read_main_skill_file
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:592
← previousnext →10,701–10,800 of 13,374, ranked by callers