Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Method
test_pruning_additional_properties
Test pruning additionalProperties when explicitly enabled.
tests/utilities/test_json_schema.py:586
Method
test_public_client_fetch_token_sends_client_id_in_body
( self, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_upstream_client.py:63
Function
test_public_client_keeps_standard_authentication
(token_client: TestClient)
tests/server/auth/test_private_key_jwt_auth.py:165
Method
test_public_client_refresh_token_sends_client_id_in_body
( self, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_upstream_client.py:78
Function
test_public_export_removes_private_influence_before_sorting
(ranking_module)
tests/test_issue_ranking.py:46
Method
test_public_ipv4_allowed
Public IPv4 addresses should be allowed.
tests/server/auth/test_ssrf_protection.py:63
Function
test_public_kind_is_a_category_not_formatted_confidence
(ranking_module)
tests/test_issue_ranking.py:194
Method
test_public_pkce_app_uses_none_token_auth
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:77
Function
test_public_routes_do_not_report_a_missing_credential
()
tests/cli/deploy/test_horizon_client.py:225
Function
test_public_scoring_is_independent_of_author_reputation
(ranking_module)
tests/test_issue_ranking.py:79
Method
test_pydantic_model_function
Test registering a function that takes a Pydantic model.
tests/tools/tool/test_tool.py:187
Method
test_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
Method
test_pydantic_model_serialized_to_json
Pydantic model is JSON-serialized.
tests/resources/test_resources.py:151
Method
test_pydantic_model_strict_validation
With strict validation, Pydantic models should enforce exact types.
tests/server/test_input_validation.py:221
Method
test_pydantic_model_with_coercion
Pydantic models should benefit from coercion without strict validation.
tests/server/test_input_validation.py:196
Method
test_pydantic_model_with_dict_no_strict
Pydantic models should accept dict arguments without strict validation.
tests/server/test_input_validation.py:156
Method
test_pydantic_typeadapter_compatibility
Test that modified function works with Pydantic TypeAdapter (regression test for #2562).
tests/utilities/test_types.py:707
Method
test_python_file
(self)
tests/cli/test_generate_cli.py:393
Method
test_python_file_existing
(self, tmp_path: Path)
tests/cli/test_client_commands.py:396
Method
test_python_keyword_property_names
Properties named after Python keywords should not crash.
tests/utilities/json_schema_type/test_json_schema_type.py:376
Method
test_python_objects_are_accepted_when_called_directly
(self)
tests/server/test_input_validation.py:305
Method
test_python_objects_are_not_round_tripped_through_json
(self)
tests/server/test_input_validation.py:319
Method
test_python_option
Test --python option for all install commands.
tests/cli/test_install.py:558
Method
test_python_transports_default_the_child_to_utf8
(self, tmp_path)
tests/client/test_stdio.py:1031
Method
test_qualified_match
(self, tmp_path: Path)
tests/cli/test_discovery.py:753
Method
test_qualified_name
(self)
tests/cli/test_discovery.py:67
Method
test_qualified_name
(self)
tests/cli/test_generate_cli.py:390
Method
test_qualified_not_found
(self, tmp_path: Path)
tests/cli/test_discovery.py:785
Function
test_query_array_serialization
( style: str | None, explode: bool | None, expected: list[tuple[str, str]], )
tests/server/providers/openapi/test_query_array_defaults.py:29
Method
test_query_continuation_block_matches
(self)
tests/resources/test_resource_template_query_params.py:524
Method
test_query_fragment_is_not_part_of_param
(self)
tests/resources/test_resource_template.py:1077
Method
test_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
Function
test_query_only_template_completes_by_its_own_identifier
A template's identifier does not match it as a URI when it only has query parameters, so completion must resolve the template itself.
tests/server/test_completions.py:424
Method
test_query_param_default_used_when_omitted
(self)
tests/server/providers/proxy/test_proxy_server.py:792
Method
test_query_param_does_not_clobber_path_param
If path and query have the same normalized name, path wins.
tests/resources/test_resource_template.py:1051
Method
test_query_param_forwarded
(self)
tests/server/providers/proxy/test_proxy_server.py:779
Method
test_query_param_with_blank_and_present_values
Mix of blank and non-blank query values are both surfaced.
tests/resources/test_resource_template.py:1159
Method
test_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:1060
Method
test_query_parameters
Test query parameter handling.
tests/server/providers/openapi/test_comprehensive.py:603
Method
test_query_parameters_in_tools
Test that query parameters are properly included in tool parameters.
tests/server/providers/openapi/test_openapi_features.py:155
Method
test_query_params_must_be_optional
Test that query parameters must have default values.
tests/resources/test_resource_template_query_params.py:145
Method
test_query_string_reaches_the_app
(self)
tests/utilities/test_asgi_transport.py:78
Method
test_query_values_encode_reserved_characters
RFC 6570 query expansion permits only unreserved value characters.
tests/resources/test_resource_template.py:1552
Method
test_question_mark_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1201
Method
test_quoted_args
(self)
tests/cli/test_client_commands.py:516
Method
test_quoted_form
(self, argument: str, expected: str)
tests/cli/test_install_cli_arguments.py:223
Method
test_quotes_manifest_paths_when_reading_resources
(self, tmp_path: Path)
tests/utilities/test_skills.py:407
Function
test_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
Function
test_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
Function
test_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
Method
test_raises_by_default
(self)
tests/utilities/test_async_utils.py:123
Method
test_raises_if_directory_missing
(self, tmp_path: Path)
tests/server/providers/test_skills_provider.py:264
Method
test_raises_if_exists_without_overwrite
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:345
Method
test_raises_if_main_file_missing
(self, tmp_path: Path)
tests/server/providers/test_skills_provider.py:268
Method
test_raises_section_excluded
(self)
tests/utilities/test_docstring_parsing.py:63
Method
test_raises_section_excluded_no_params
(self)
tests/utilities/test_docstring_parsing.py:305
Method
test_raises_when_no_proxy_is_configured
No proxy in the environment → refuse rather than fetch unprotected.
tests/server/auth/test_ssrf_protection.py:664
Method
test_raising_server_does_not_break_chain
If the server raises, verifiers are still tried.
tests/server/auth/test_multi_auth.py:343
Method
test_raising_verifier_does_not_break_chain
If a verifier raises, the chain continues to the next source.
tests/server/auth/test_multi_auth.py:332
Function
test_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
Method
test_rate_limiting_allows_normal_usage
Test that normal usage patterns are allowed through rate limiting.
tests/server/middleware/test_rate_limiting.py:534
Method
test_rate_limiting_blocks_rapid_requests
Test that rate limiting blocks rapid successive requests.
tests/server/middleware/test_rate_limiting.py:549
Method
test_rate_limiting_recovery_over_time
Test that rate limiting allows requests again after time passes.
tests/server/middleware/test_rate_limiting.py:699
Method
test_rate_limiting_with_concurrent_requests
Test rate limiting behavior with concurrent requests.
tests/server/middleware/test_rate_limiting.py:573
Method
test_rate_limiting_with_different_operations
Test that rate limiting applies to all types of operations.
tests/server/middleware/test_rate_limiting.py:627
Method
test_raw_call_override_still_works
(self)
tests/server/middleware/test_message_visibility.py:205
Method
test_raw_call_tool_result_carries_middleware_edits
(self, edit: str)
tests/tools/tool/test_results.py:185
Method
test_raw_call_tool_result_is_preserved
(self)
tests/tools/tool/test_results.py:128
Method
test_raw_call_tool_result_preserves_protocol_fields
(self)
tests/tools/tool/test_results.py:141
Method
test_raw_call_tool_result_serializes_nested_models_like_the_wire
(self)
tests/tools/tool/test_results.py:165
Function
test_raw_create_task_result_is_exposed
The raw claimed CreateTaskResult is reachable via the session/handle path.
tests/tasks/client/test_transparent_tasks.py:117
Method
test_raw_string_rejected_by_validate_redirect_uri
(self)
tests/server/auth/test_redirect_validation.py:673
Method
test_raw_string_rejects_whatwg_ambiguous_spellings
(self, uri, pattern)
tests/server/auth/test_redirect_validation.py:667
Method
test_read_binary
Test reading binary data from a FunctionResource.
tests/resources/test_function_resources.py:50
Method
test_read_binary_file
Test reading a file as binary.
tests/resources/test_file_resources.py:71
Method
test_read_binary_file
(self)
tests/apps/test_file_upload.py:78
Method
test_read_cache_invalid_json
Reading invalid JSON returns None.
tests/utilities/test_version_check.py:61
Method
test_read_cache_no_file
Reading non-existent cache returns None.
tests/utilities/test_version_check.py:36
Method
test_read_cache_valid
Reading valid cache returns version and timestamp.
tests/utilities/test_version_check.py:46
Method
test_read_excluded_resource
(self)
tests/server/providers/test_local_provider_resources.py:739
Method
test_read_included_resource
(self)
tests/server/providers/test_local_provider_resources.py:731
Method
test_read_json_resource
(self, proxy_server: FastMCPProxy)
tests/server/providers/proxy/test_proxy_server.py:560
Method
test_read_latin1_with_encoding
FileResource should read non-UTF-8 files when correct encoding is specified.
tests/resources/test_file_resources.py:199
Method
test_read_main_file
(self, single_skill_dir: Path)
tests/server/providers/test_skills_provider.py:318
Method
test_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:328
Method
test_read_main_skill_file
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:688
Method
test_read_manifest
(self, single_skill_dir: Path)
tests/server/providers/test_skills_provider.py:348
Method
test_read_manifest
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:698
Method
test_read_mime_type_matches_listed_mime_type
resources/templates/list and resources/read must agree.
tests/resources/test_resource_template.py:1612
Method
test_read_missing_file_raises
(self)
tests/apps/test_file_upload.py:91
Method
test_read_nested_file_via_template
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:747
Method
test_read_nonexistent_resource_sets_error
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:158
Method
test_read_prompt_excludes_tags
(self)
tests/server/providers/test_local_provider_prompts.py:476
Method
test_read_prompt_includes_tags
(self)
tests/server/providers/test_local_provider_prompts.py:466
Method
test_read_renderer_with_insufficient_scope_is_denied
(self)
tests/server/auth/test_authorization.py:1822
Method
test_read_renderer_with_sufficient_scope
(self)
tests/server/auth/test_authorization.py:1805
Function
test_read_resource
Test reading a resource with InMemoryClient.
tests/client/client/test_client.py:316
Function
test_read_resource
Test that we can read a resource.
tests/client/auth/test_oauth_client.py:146
Method
test_read_resource
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:184
Method
test_read_resource
Test that get resources caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:605
← previous
next →
12,801–12,900 of 15,974, ranked by callers