Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
17,519 in github.com/PrefectHQ/fastmcp
⨍
Functions
17,519
◇
Types & classes
2,390
↳
Endpoints
196
Method
test_does_not_mutate_anyof_list
_convert_nullable_field should not append to the original anyOf list.
tests/utilities/openapi/test_nullable_fields.py:565
Method
test_does_not_mutate_input
Test that _prune_param does not mutate the original schema.
tests/utilities/test_json_schema.py:85
Method
test_does_not_mutate_input
compress_schema must return a new dict and leave the caller's schema untouched, even when it prunes titles, additionalProperties and unused
tests/utilities/test_json_schema.py:479
Method
test_does_not_mutate_original_tool
Middleware should not mutate the shared Tool object.
tests/server/middleware/test_dereference.py:70
Method
test_does_not_shadow_existing_snake_field
(self)
tests/test_compat.py:165
Method
test_does_not_start_duplicate_task
Test that duplicate messages from same connection don't spawn duplicates.
tests/server/middleware/test_ping.py:75
Method
test_does_not_transform_grant_type_unauthorized_to_invalid_client
Test that grant type authorization errors stay as unauthorized_client with 400.
tests/server/auth/oauth_proxy/test_tokens.py:503
Method
test_does_not_transform_other_400_errors
Test that non-invalid_grant 400 errors pass through unchanged.
tests/server/auth/oauth_proxy/test_tokens.py:548
Method
test_domain_and_prefers_border_reach_resource
(self)
tests/server/providers/test_prefab_synthesis.py:105
Method
test_domain_scheme_and_trailing_slash_stripped
Test that a scheme and trailing slashes on the domain are ignored.
tests/server/auth/providers/test_clerk.py:90
Method
test_domain_scheme_and_trailing_slash_stripped
A scheme and trailing slashes on the domain do not change request URLs.
tests/server/auth/providers/test_clerk.py:269
Method
test_dot_dot_slash_is_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1197
Method
test_dot_segments_still_rejected_after_normalization
(self)
tests/server/auth/test_redirect_validation.py:870
Method
test_dots_and_slashes
(self)
tests/cli/test_generate_cli.py:100
Function
test_dotted_pair_is_disambiguated
()
tests/cli/test_generate_cli_param_collisions.py:63
Method
test_dotted_values_encode_dots
Dots are encoded to prevent path normalization by urljoin.
tests/utilities/openapi/test_director.py:1223
Method
test_double_encoded_traversal
(self, director, path_route)
tests/utilities/openapi/test_director.py:1244
Method
test_downloads_all_skills
(self, skills_server: FastMCP, tmp_path: Path)
tests/utilities/test_skills.py:475
Method
test_downloads_blob_resources
(self, tmp_path: Path)
tests/utilities/test_skills.py:451
Method
test_downloads_skill_to_directory
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:258
Function
test_dropped_args_error_if_provided
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:188
Method
test_dropping_repeated_iss_keeps_other_query_bytes_verbatim
Collapsing the duplicates must not round-trip the rest of the query: the valueless `flag` and the non-UTF-8 `sig` stay byte for byte,
tests/server/auth/test_redirect_validation.py:184
Function
test_duplicate_close_uses_complete_evidence
( endpoint: str, scenario: str, writes: list[str], monkeypatch: pytest.MonkeyPatch )
tests/scripts/test_auto_close_duplicates.py:18
Method
test_duplicate_copies_are_not_collapsed_by_a_shared_name
Copies whose backends collide on a name are the worst case, not the safe one: two components become indistinguishable. Counting names
tests/server/providers/test_prefab_roundtrip.py:625
Function
test_duplicate_event_name_is_rejected
()
tests/events/test_extension.py:602
Function
test_duplicate_explicit_registration_still_raises
()
tests/server/test_provider_extensions.py:227
Function
test_duplicate_followup_reopens_only_current_bot_closure
( association: str, scenario: str, expected_requests: list[str], closer: int )
tests/scripts/test_auto_close_duplicates.py:99
Function
test_duplicate_identifier_rejected
()
tests/server/test_extensions.py:465
Method
test_duplicate_names_get_numbered_suffixes
(self)
tests/server/providers/openapi/test_server.py:386
Method
test_duplicate_project_key_spellings_use_one_entry
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:344
Method
test_duplicate_rename_targets_raises_error
Test that duplicate target names in ToolTransform raises ValueError.
tests/server/providers/test_transforming_provider.py:236
Method
test_duplicate_skill_names_first_wins
Test that if a skill appears in multiple roots, first one wins.
tests/server/providers/test_skills_provider.py:909
Method
test_duplicate_tool_rename_targets_raises_error
Test that duplicate target names in tool_renames raises ValueError.
tests/server/mount/test_advanced.py:453
Function
test_duplicate_uris_are_omitted_from_list_and_get
( caplog: pytest.LogCaptureFixture, )
tests/skills/test_extension.py:408
Method
test_duration_invalid
(self, duration_format)
tests/utilities/json_schema_type/test_formats.py:169
Method
test_duration_valid
(self, duration_format)
tests/utilities/json_schema_type/test_formats.py:163
Method
test_dynamic_registration_is_a_public_client
Browser login has no secret, so registration must say so.
tests/client/auth/test_oauth_static_client.py:69
Method
test_dynamic_registration_keeps_an_explicit_auth_method
A caller who sets the method is left alone.
tests/client/auth/test_oauth_static_client.py:75
Method
test_dynamically_adding_to_proxied_server
Test that changes to the original server are reflected in the mounted proxy.
tests/server/mount/test_proxy.py:42
Function
test_dynamically_attached_descendant_inherits_all_root_restrictions
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:193
Function
test_each_event_kind_reaches_listener
( server: FastMCP, listen_kwargs, publish, expected )
tests/server/test_subscriptions.py:209
Method
test_each_helper_warns_once_with_its_replacement
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:112
Method
test_each_hook_fires_once_per_component_call
One ``tools/call`` fires ``on_message`` once and ``on_call_tool`` once — the interior dispatch is the single entry for component methods; the
tests/server/middleware/test_message_visibility.py:181
Function
test_each_parameter_reaches_the_backend_as_sent
(drawn)
tests/pbt/test_openapi_params.py:232
Function
test_each_subscription_gets_its_own_copy
()
tests/events/test_emit.py:130
Method
test_earlier_render_still_submittable
A second render must not invalidate the form from the first one. A consent URL gets loaded twice more often than you would think: a r
tests/server/auth/test_oauth_consent_flow.py:592
Method
test_echo_log
(self, fastmcp_server: FastMCP, caplog)
tests/client/test_logs.py:70
Method
test_elicit_accept_response
Test that the proxy client correctly forwards the `elicit` accept response.
tests/server/providers/proxy/test_proxy_client.py:477
Method
test_elicit_decline_response
Test that the proxy client correctly forwards the `elicit` decline response.
tests/server/providers/proxy/test_proxy_client.py:495
Function
test_elicit_degradation_message_is_clear_on_modern
FastMCP era-gates elicit: on a 2026-07-28 connection it raises a clear, era-aware error before hitting the wire, instead of the SDK's opaque '
tests/server/test_protocol_eras.py:280
Function
test_elicit_degrades_on_modern
Elicitation is a server-initiated request, removed at 2026-07-28 (SEP-2577), so a tool that uses it must degrade to a surfaced error rather th
tests/server/test_protocol_eras.py:261
Method
test_elicit_form_params_requested_schema_bridged
(self)
tests/test_compat.py:108
Function
test_elicit_model_with_reused_enum
ctx.elicit() accepts a response type whose fields share an enum.
tests/client/test_elicitation_enums.py:187
Method
test_elicit_raises_with_guard_guidance
elicit() inside a background task raises a ToolError pointing to the guard/return pattern (InputRequiredResult).
tests/tasks/server/test_context_background_task.py:296
Method
test_elicit_request
Test that the proxy client correctly forwards the `elicit` request.
tests/server/providers/proxy/test_proxy_client.py:409
Method
test_elicit_url_request
Test that the proxy client forwards a URL-mode `elicit` request as URL mode.
tests/server/providers/proxy/test_proxy_client.py:438
Method
test_elicit_url_request_without_elicitation_id
Test that the proxy rejects a URL-mode request that has no elicitation ID.
tests/server/providers/proxy/test_proxy_client.py:462
Method
test_elicit_with_default_values
Test that the proxy client correctly handles elicitation with default values (fixes #1167).
tests/server/providers/proxy/test_proxy_client.py:711
Function
test_elicit_works_on_legacy
(push_server)
tests/server/test_protocol_eras.py:251
Function
test_elicitation
Requests user input via elicitation.
tests/conformance/server.py:235
Function
test_elicitation_accept_content
Test basic elicitation functionality.
tests/client/test_elicitation.py:60
Method
test_elicitation_bool_response
Test elicitation with boolean schema.
tests/client/test_elicitation.py:368
Function
test_elicitation_cancel_action
Test user canceling elicitation request.
tests/client/test_elicitation.py:259
Function
test_elicitation_decline
Test that elicitation handler receives correct parameters.
tests/client/test_elicitation.py:74
Method
test_elicitation_enum_response
Test elicitation with enum schema.
tests/client/test_elicitation.py:410
Method
test_elicitation_float_response
Test elicitation with number schema.
tests/client/test_elicitation.py:348
Function
test_elicitation_handler_error
Test error handling in elicitation handler.
tests/client/test_elicitation.py:455
Function
test_elicitation_handler_parameters
Test that elicitation handler receives correct parameters.
tests/client/test_elicitation.py:113
Function
test_elicitation_handler_returns_sdk_elicit_result
The SDK's ElicitResult keeps its action instead of becoming accepted content.
tests/client/test_elicitation.py:98
Function
test_elicitation_implicit_acceptance
Test that elicitation handler can return data directly without ElicitResult wrapper.
tests/client/test_elicitation_enums.py:50
Function
test_elicitation_implicit_acceptance_must_be_dict
Test that elicitation handler can return data directly without ElicitResult wrapper.
tests/client/test_elicitation_enums.py:65
Method
test_elicitation_int_response
Test elicitation with number schema.
tests/client/test_elicitation.py:328
Method
test_elicitation_list_of_strings_response
Test elicitation with list schema.
tests/client/test_elicitation.py:434
Method
test_elicitation_literal_response
Test elicitation with literal schema.
tests/client/test_elicitation.py:388
Function
test_elicitation_multiple_calls
Test multiple elicitation calls in sequence.
tests/client/test_elicitation.py:485
Function
test_elicitation_response_title_and_description_on_scalar
response_title and response_description customize the wrapped `value` field.
tests/client/test_elicitation.py:147
Function
test_elicitation_response_title_on_dict_shorthand
response_title applies to the `value` property for dict shorthand.
tests/client/test_elicitation.py:181
Function
test_elicitation_response_title_on_list_shorthand
response_title applies to the `value` property for list shorthand.
tests/client/test_elicitation.py:207
Function
test_elicitation_response_title_rejected_for_basemodel
response_title raises TypeError when response_type is a BaseModel.
tests/client/test_elicitation.py:233
Method
test_elicitation_schema
( self, schema: dict[str, Any], content: dict[str, Any] )
tests/utilities/json_schema_type/test_generated_classes.py:201
Method
test_elicitation_schema_with_any_title
(self, title: str)
tests/utilities/json_schema_type/test_generated_classes.py:229
Function
test_elicitation_sep1034_defaults
Tests elicitation with default values per SEP-1034.
tests/conformance/server.py:256
Function
test_elicitation_sep1330_enums
Tests elicitation with enum schema improvements per SEP-1330.
tests/conformance/server.py:266
Method
test_elicitation_str_response
Test elicitation with string schema.
tests/client/test_elicitation.py:308
Function
test_elicitation_tool
Test calling the elicitation tool in both stateless and stateful modes.
tests/client/test_streamable_http.py:215
Function
test_elicitation_with_no_handler
Test that elicitation works without a handler.
tests/client/test_elicitation.py:52
Method
test_elongl_reported_case_xref_with_nullable_function
Test the specific case reported by elongl with nullable function reference.
tests/utilities/openapi/test_transitive_references.py:118
Method
test_email_accepts_valid
(self, email_string)
tests/utilities/json_schema_type/test_constraints.py:64
Method
test_email_invalid
(self, email_format)
tests/utilities/json_schema_type/test_formats.py:93
Method
test_email_rejects_invalid
(self, email_string)
tests/utilities/json_schema_type/test_constraints.py:69
Method
test_email_valid
(self, email_format)
tests/utilities/json_schema_type/test_formats.py:88
Function
test_embedded_resource
Returns an embedded resource.
tests/conformance/server.py:113
Method
test_embeds_transport
(self)
tests/cli/test_generate_cli.py:474
Method
test_emitted_name_is_callable_on_the_same_server
The whole point: what the renderer is told to call, it can call.
tests/server/providers/test_prefab_roundtrip.py:339
Function
test_emitting_an_unregistered_model_is_an_error
()
tests/events/test_emit.py:289
Method
test_empty
(self)
tests/test_apps.py:108
Method
test_empty
(self)
tests/test_apps.py:158
Method
test_empty_args
(self)
tests/cli/test_goose.py:167
Method
test_empty_args_section
(self)
tests/utilities/test_docstring_parsing.py:262
Method
test_empty_command_exits
(self)
tests/cli/test_client_commands.py:522
← previous
next →
10,201–10,300 of 17,519, ranked by callers