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_last_required
Test pruning the last required parameter, should remove required field.
tests/utilities/test_json_schema.py:75
Method
test_later_contexts_disconnect_normally
(self, server: FastMCP)
tests/client/client/test_client.py:1150
Method
test_later_rules_override_earlier_rules
Test that later session rules override earlier ones (mark semantics).
tests/server/test_session_visibility.py:313
Method
test_later_transform_overrides
Later transforms in chain override earlier ones.
tests/server/transforms/test_visibility.py:250
Method
test_launch_escapes_tool_name_in_html_contexts
Test /launch escapes the tool query parameter in HTML sinks.
tests/cli/test_run.py:1384
Method
test_launch_ignores_tool_and_args_parameters
(self)
tests/cli/test_apps_dev_server.py:549
Method
test_launch_page_opens_only_external_web_links
(self)
tests/cli/test_apps_dev_server.py:607
Method
test_launch_page_requires_same_origin
(self, headers: dict[str, str])
tests/cli/test_apps_dev_server.py:433
Method
test_launch_page_sandboxes_app_frame
(self)
tests/cli/test_apps_dev_server.py:599
Method
test_launch_serializes_args_safely_inside_script
Test /launch escapes argument values embedded in the script element.
tests/cli/test_run.py:1416
Method
test_launch_url_from_picker_opens_launch_page
(self)
tests/cli/test_apps_dev_server.py:541
Method
test_lax_coercion_is_still_rejected
(self)
tests/server/test_input_validation.py:290
Method
test_lax_fields_still_coerce
(self)
tests/server/test_input_validation.py:375
Function
test_layer_based_transforms
Test that ToolTransform layer works after tool registration.
tests/server/test_tool_transformation.py:90
Method
test_lazy_reexport_does_not_import_module
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:211
Method
test_leading_digit
(self)
tests/cli/test_generate_cli.py:103
Method
test_leading_trailing_stripped
(self)
tests/cli/test_goose.py:35
Method
test_leaves_urls_without_a_password_alone
(self, url: str)
tests/cli/test_tasks.py:150
Method
test_leaves_urls_without_passwords_unchanged
(self, url: str)
tests/cli/test_tasks.py:234
Method
test_legacy_binding_cookie_remains_valid_during_upgrade
An in-flight flow using the old shared cookie can still finish.
tests/server/auth/test_oauth_consent_page.py:239
Method
test_legacy_call_tool
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:61
Method
test_legacy_call_tool_no_mrtr
A legacy FastMCP server never emits InputRequiredResult; call_tool behaves byte-identically to pre-driver behavior.
tests/client/client/test_input_required_driver.py:208
Function
test_legacy_client_never_tasks
A legacy-era client never negotiates the capability, so nothing is tasked. The optional-mode tool simply runs synchronously and returns its resul
tests/tasks/client/test_transparent_tasks.py:130
Function
test_legacy_client_preserves_http_error_details
()
tests/server/providers/openapi/test_legacy_client_compat.py:63
Function
test_legacy_client_preserves_transport_error_details
( error_kind: str, message: str, )
tests/server/providers/openapi/test_legacy_client_compat.py:89
Function
test_legacy_client_warns_and_remains_usable
()
tests/server/providers/openapi/test_legacy_client_compat.py:42
Method
test_legacy_connection_rejects_with_era_error
Returning an InputRequiredResult on a ≤2025-11-25 connection produces a clear era error naming 2026-07-28, not a generic 'invalid result'.
tests/server/test_mrtr_guards.py:708
Method
test_legacy_does_not_honor_server_hint
On a legacy connection the server hint is not read, so a hinted tools/list is not served from cache (the entry is never stored under the hint)
tests/client/client/test_response_cache.py:143
Method
test_legacy_eddsa_jwks
Legacy EdDSA tokens verify against an Ed25519 JWKS entry.
tests/server/auth/test_jwt_provider.py:562
Method
test_legacy_elicitation_still_synchronous
On a legacy connection, a FastMCP server's `ctx.elicit` uses the synchronous server-to-client request path (not MRTR), and the same el
tests/client/client/test_input_required_driver.py:222
Function
test_legacy_era_opt_in_is_ignored
A handshake-era request cannot be tasked, even with the _meta opt-in. The SDK strips `capabilities.extensions` from pre-2026 handshakes, so a
tests/tasks/server/test_extension.py:340
Function
test_legacy_era_required_tool_raises_missing_capability
`required` tools refuse legacy-era calls with -32021 even when opted in.
tests/tasks/server/test_extension.py:362
Function
test_legacy_first_connection_preserves_declared_mount_precedence
()
tests/test_mcp_config.py:261
Method
test_legacy_front_mirrors_handshake_backend
A legacy front through a proxy with NO explicit mode gets a handshake backend session, so server-initiated elicitation push-forwards through
tests/server/test_mrtr_guards.py:571
Method
test_legacy_front_reaches_handshake_backends
A legacy front reaches each real backend on a handshake session, so server-initiated elicitation still push-forwards up the whole chain.
tests/server/test_mrtr_guards.py:673
Function
test_legacy_httpx_rate_limit_remains_actionable
()
tests/server/test_legacy_httpx_errors.py:11
Function
test_legacy_httpx_resource_timeout_remains_actionable
()
tests/server/test_legacy_httpx_errors.py:24
Method
test_legacy_model_extra_fallback
Defensive fallback: capabilities whose real `extensions` field is None but which carry `extensions` in `model_extra` are still detected.
tests/test_apps.py:497
Function
test_legacy_per_tool_uri_preserves_read_content_and_metadata
()
tests/server/providers/test_prefab_sharing.py:66
Method
test_legacy_persisted_cimd_client_is_removed
Previously persisted CIMD clients are migrated out of the DCR registry.
tests/server/auth/oauth_proxy/test_client_registration.py:131
Method
test_legacy_persisted_cimd_client_survives_failed_refresh
Legacy clients remain usable until migration can succeed.
tests/server/auth/oauth_proxy/test_client_registration.py:153
Function
test_legacy_proxy_wraps_explicit_null_from_backend_model
()
tests/server/providers/proxy/test_non_object_outputs.py:250
Function
test_legacy_request_error_remains_normalized
()
tests/server/providers/openapi/test_transport_errors.py:101
Method
test_legacy_session_still_scopes_by_session
(self)
tests/server/test_session_scope.py:95
Function
test_legacy_underscore_scope_is_just_a_string_now
Belt-and-suspenders: a client_id of "_" no longer aliases anonymous.
tests/tasks/server/test_task_keys.py:89
Function
test_legacy_uses_initialize_handshake
Legacy mode runs the initialize handshake and reports a handshake-era protocol version with server_info carried in the InitializeResult.
tests/server/test_protocol_eras.py:169
Method
test_legacy_uses_initialize_handshake
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:53
Method
test_legacy_with_default_ttl_cache_is_inert
When default_ttl_ms is configured, legacy mode must keep the cache inert: neither writing into the cache nor serving hits from it (#6298).
tests/client/client/test_response_cache.py:164
Method
test_legit_read_succeeds
(self)
tests/resources/test_resource_security.py:364
Function
test_legitimate_content_still_works
Ensure legitimate content is displayed correctly after escaping.
tests/client/test_oauth_callback_xss.py:135
Method
test_legitimate_nested_paths_still_match
Paths that happen to contain dots in segment names must still match.
tests/server/auth/test_redirect_validation.py:546
Method
test_legitimate_raw_strings_unchanged
(self)
tests/server/auth/test_redirect_validation.py:715
Method
test_legitimate_uris_still_allowed
(self)
tests/server/auth/test_redirect_validation.py:773
Method
test_legitimate_uris_still_work
Test that legitimate URIs work after security hardening.
tests/server/auth/test_redirect_validation.py:473
Method
test_length_constraints_kept_when_pattern_dropped
minLength/maxLength are still enforced after pattern fallback.
tests/utilities/json_schema_type/test_json_schema_type.py:455
Method
test_level_applies_only_to_the_connection_that_set_it
setLevel from one client does not filter another client's logs.
tests/client/test_logs.py:196
Method
test_level_applies_to_mounted_server_tools
setLevel sent to a parent filters logs from its mounted servers' tools.
tests/client/test_logs.py:239
Method
test_level_does_not_outlive_its_connection
A later connection starts from the server default, not a past client's level.
tests/client/test_logs.py:225
Method
test_lifecycle_tools_registered_via_add_provider
(self)
tests/server/test_session_provider.py:486
Function
test_lifespan_can_add_a_bundle_the_root_already_supports_to_a_later_sibling
()
tests/server/test_provider_extensions.py:855
Function
test_lifespan_cannot_introduce_a_root_extension_via_a_later_sibling
( target_kind: Literal["mounted_server", "aggregate"], )
tests/server/test_provider_extensions.py:837
Method
test_lifespan_composition_three
Test composing three lifespans with |.
tests/server/test_server_lifespan.py:189
Method
test_lifespan_composition_two
Test composing two lifespans with |.
tests/server/test_server_lifespan.py:151
Method
test_lifespan_composition_with_context_manager_lifespan
Test composing with ContextManagerLifespan for @asynccontextmanager functions.
tests/server/test_server_lifespan.py:267
Method
test_lifespan_context_falls_back_to_server_result
lifespan_context reads from server when request_context is None.
tests/tasks/server/test_context_background_task.py:474
Method
test_lifespan_context_returns_empty_dict_when_no_lifespan
lifespan_context returns {} when no lifespan is configured.
tests/tasks/server/test_context_background_task.py:486
Method
test_lifespan_decorator_basic
Test that the @lifespan decorator works like @asynccontextmanager.
tests/server/test_server_lifespan.py:122
Function
test_lifespan_entered_and_exited
()
tests/server/test_extensions.py:350
Method
test_lifespan_or_requires_lifespan_instance
Test that | operator requires Lifespan instances and gives helpful error.
tests/server/test_server_lifespan.py:329
Method
test_lifespan_result_merge_later_wins
Test that later lifespans overwrite earlier ones on key conflict.
tests/server/test_server_lifespan.py:239
Method
test_lifespan_server_mounted_directly
Test that servers with lifespan are mounted directly (not auto-proxied). Since FastMCPProvider now handles lifespan via the provider lifespan
tests/server/mount/test_proxy.py:136
Function
test_lifespan_terminates_active_transports_before_task_group_cancel
Active streamable-HTTP transports must be terminated during lifespan shutdown so streaming responses end cleanly instead of being aborted by t
tests/server/http/test_streamable_http_shutdown.py:8
Function
test_lifespans_enter_in_order_exit_in_reverse
()
tests/server/test_extensions.py:360
Method
test_link_local_blocked
Link-local addresses (AWS metadata) should be blocked.
tests/server/auth/test_ssrf_protection.py:80
Function
test_links_are_verified_with_youtube
(oembed: list[str])
examples/apps/media_picker/test_media_picker.py:74
Method
test_list_and_read
(self, via: str, query: str, expected: str)
tests/resources/test_resource_template_level3.py:115
Method
test_list_converts_to_set
Test that a list converts to a set.
tests/utilities/test_components.py:34
Function
test_list_dict_multi_select_titled
Test list[dict] for multi-select titled.
tests/client/test_elicitation_enums.py:295
Method
test_list_dict_validates_data
list[dict] schema should validate actual dict data, not produce Root() (issue #3867).
tests/utilities/json_schema_type/test_containers.py:320
Function
test_list_enum_multi_select
Test list[Enum] for multi-select with enum in dataclass field.
tests/client/test_elicitation_enums.py:338
Function
test_list_enum_multi_select_direct
Test list[Enum] type annotation passed directly to ctx.elicit().
tests/client/test_elicitation_enums.py:361
Method
test_list_hooks_receive_typed_request_messages
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:298
Method
test_list_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:858
Function
test_list_list_multi_select_untitled
Test list[list[str]] for multi-select untitled shorthand.
tests/client/test_elicitation_enums.py:258
Method
test_list_method_wraps_connection_failure
( self, unreachable_provider: ProxyProvider, method: str )
tests/server/providers/proxy/test_proxy_server.py:1554
Method
test_list_method_wraps_raw_transport_error
A raw transport error raised mid-call is normalized, not leaked.
tests/server/providers/proxy/test_proxy_server.py:1564
Method
test_list_of_dict_types_roundtrip
Ensure list[dict] schemas produce dict types, not dataclasses (issue #3867).
tests/utilities/json_schema_type/test_containers.py:314
Method
test_list_of_integers_as_string_args
Test that prompts can handle complex types passed as strings from MCP spec.
tests/prompts/test_prompt.py:265
Method
test_list_of_integers_with_string_elements
Test lists containing string representations of integers.
tests/server/test_input_validation.py:521
Method
test_list_of_models_hydrates
(self, dereference_schemas: bool)
tests/client/test_result_hydration.py:224
Method
test_list_of_recursive_models_hydrates
(self, dereference_schemas: bool)
tests/client/test_result_hydration.py:255
Method
test_list_operations_preserve_component_metadata
Base component fields should survive conversion through the cache.
tests/server/middleware/test_caching.py:465
Function
test_list_prompts
Test listing prompts with InMemoryClient.
tests/client/client/test_client.py:155
Function
test_list_prompts
Test listing available prompts
examples/testing_demo/tests/test_server.py:131
Method
test_list_prompts
Test listing the MCP prompts
tests/integration_tests/test_github_mcp_remote.py:109
Method
test_list_prompts
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:873
Method
test_list_prompts
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:280
Method
test_list_prompts
Test that list prompts caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:621
Method
test_list_prompts
Test listing prompts.
tests/server/providers/test_local_provider.py:263
Method
test_list_prompts
Test listing prompts from wrapped server.
tests/server/providers/test_fastmcp_provider.py:234
← previous
next →
10,801–10,900 of 15,974, ranked by callers