MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

Functiontest_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
Functiontest_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
Functiontest_legacy_first_connection_preserves_declared_mount_precedence
()
tests/test_mcp_config.py:264
Methodtest_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
Methodtest_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
Functiontest_legacy_httpx_rate_limit_remains_actionable
()
tests/server/test_legacy_httpx_errors.py:11
Functiontest_legacy_httpx_resource_timeout_remains_actionable
()
tests/server/test_legacy_httpx_errors.py:24
Methodtest_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
Functiontest_legacy_per_tool_uri_preserves_read_content_and_metadata
()
tests/server/providers/test_prefab_sharing.py:66
Methodtest_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
Methodtest_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
Functiontest_legacy_proxy_wraps_explicit_null_from_backend_model
()
tests/server/providers/proxy/test_non_object_outputs.py:250
Functiontest_legacy_request_error_remains_normalized
()
tests/server/providers/openapi/test_transport_errors.py:101
Methodtest_legacy_session_still_scopes_by_session
(self)
tests/server/test_session_scope.py:95
Methodtest_legacy_stored_cimd_client_scope_is_sanitized
A persisted pre-fix CIMD client cannot keep an out-of-policy scope. Older versions stored CIMD clients in the DCR client store. When the
tests/server/auth/oauth_proxy/test_oauth_proxy.py:801
Functiontest_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
Functiontest_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
Methodtest_legacy_uses_initialize_handshake
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:53
Methodtest_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
Methodtest_legit_read_succeeds
(self)
tests/resources/test_resource_security.py:364
Functiontest_legitimate_content_still_works
Ensure legitimate content is displayed correctly after escaping.
tests/client/test_oauth_callback_xss.py:135
Methodtest_legitimate_nested_paths_still_match
Paths that happen to contain dots in segment names must still match.
tests/server/auth/test_redirect_validation.py:710
Methodtest_legitimate_raw_strings_unchanged
(self)
tests/server/auth/test_redirect_validation.py:879
Methodtest_legitimate_uris_still_allowed
(self)
tests/server/auth/test_redirect_validation.py:937
Methodtest_legitimate_uris_still_work
Test that legitimate URIs work after security hardening.
tests/server/auth/test_redirect_validation.py:637
Methodtest_length_constraints_kept_when_pattern_dropped
minLength/maxLength are still enforced after pattern fallback.
tests/utilities/json_schema_type/test_json_schema_type.py:485
Methodtest_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
Methodtest_level_applies_to_mounted_server_tools
setLevel sent to a parent filters logs from its mounted servers' tools.
tests/client/test_logs.py:239
Methodtest_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
Methodtest_lifecycle_tools_registered_via_add_provider
(self)
tests/server/test_session_provider.py:486
Functiontest_lifespan_can_add_a_bundle_the_root_already_supports_to_a_later_sibling
()
tests/server/test_provider_extensions.py:855
Functiontest_lifespan_cannot_introduce_a_root_extension_via_a_later_sibling
( target_kind: Literal["mounted_server", "aggregate"], )
tests/server/test_provider_extensions.py:837
Methodtest_lifespan_composition_three
Test composing three lifespans with |.
tests/server/test_server_lifespan.py:189
Methodtest_lifespan_composition_two
Test composing two lifespans with |.
tests/server/test_server_lifespan.py:151
Methodtest_lifespan_composition_with_context_manager_lifespan
Test composing with ContextManagerLifespan for @asynccontextmanager functions.
tests/server/test_server_lifespan.py:267
Methodtest_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:503
Methodtest_lifespan_context_returns_empty_dict_when_no_lifespan
lifespan_context returns {} when no lifespan is configured.
tests/tasks/server/test_context_background_task.py:515
Methodtest_lifespan_decorator_basic
Test that the @lifespan decorator works like @asynccontextmanager.
tests/server/test_server_lifespan.py:122
Functiontest_lifespan_entered_and_exited
()
tests/server/test_extensions.py:350
Methodtest_lifespan_or_requires_lifespan_instance
Test that | operator requires Lifespan instances and gives helpful error.
tests/server/test_server_lifespan.py:329
Methodtest_lifespan_result_merge_later_wins
Test that later lifespans overwrite earlier ones on key conflict.
tests/server/test_server_lifespan.py:239
Methodtest_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
Functiontest_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
Functiontest_lifespans_enter_in_order_exit_in_reverse
()
tests/server/test_extensions.py:360
Methodtest_link_local_blocked
Link-local addresses (AWS metadata) should be blocked.
tests/server/auth/test_ssrf_protection.py:80
Functiontest_links_are_verified_with_youtube
(oembed: list[str])
examples/apps/media_picker/test_media_picker.py:74
Methodtest_list_and_read
(self, via: str, query: str, expected: str)
tests/resources/test_resource_template_level3.py:115
Methodtest_list_converts_to_set
Test that a list converts to a set.
tests/utilities/test_components.py:34
Functiontest_list_dict_multi_select_titled
Test list[dict] for multi-select titled.
tests/client/test_elicitation_enums.py:295
Methodtest_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
Functiontest_list_enum_multi_select
Test list[Enum] for multi-select with enum in dataclass field.
tests/client/test_elicitation_enums.py:338
Functiontest_list_enum_multi_select_direct
Test list[Enum] type annotation passed directly to ctx.elicit().
tests/client/test_elicitation_enums.py:361
Functiontest_list_events_describes_delivery_and_schemas
()
tests/experimental/events/test_extension.py:95
Functiontest_list_events_paginates
()
tests/experimental/events/test_extension.py:107
Methodtest_list_hooks_receive_typed_request_messages
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:298
Functiontest_list_json
(capsys: pytest.CaptureFixture[str])
tests/experimental/events/test_cli.py:88
Methodtest_list_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:859
Functiontest_list_list_multi_select_untitled
Test list[list[str]] for multi-select untitled shorthand.
tests/client/test_elicitation_enums.py:258
Methodtest_list_method_wraps_connection_failure
( self, unreachable_provider: ProxyProvider, method: str )
tests/server/providers/proxy/test_proxy_server.py:1554
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_list_of_integers_with_string_elements
Test lists containing string representations of integers.
tests/server/test_input_validation.py:521
Methodtest_list_of_models_hydrates
(self, dereference_schemas: bool)
tests/client/test_result_hydration.py:224
Methodtest_list_of_recursive_models_hydrates
(self, dereference_schemas: bool)
tests/client/test_result_hydration.py:255
Methodtest_list_operations_preserve_component_metadata
Base component fields should survive conversion through the cache.
tests/server/middleware/test_caching.py:465
Functiontest_list_prompts
Test listing prompts with InMemoryClient.
tests/client/client/test_client.py:155
Functiontest_list_prompts
Test listing available prompts
examples/testing_demo/tests/test_server.py:131
Methodtest_list_prompts
Test listing the MCP prompts
tests/integration_tests/test_github_mcp_remote.py:109
Methodtest_list_prompts
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:874
Methodtest_list_prompts
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:280
Methodtest_list_prompts
Test that list prompts caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:621
Methodtest_list_prompts
Test listing prompts.
tests/server/providers/test_local_provider.py:263
Methodtest_list_prompts
Test listing prompts from wrapped server.
tests/server/providers/test_fastmcp_provider.py:234
Functiontest_list_prompts_both_eras
(dual_era_server, mode)
tests/server/test_protocol_eras.py:131
Methodtest_list_prompts_cache_does_not_leak_across_tokens
(self)
tests/server/middleware/test_caching.py:1112
Methodtest_list_prompts_creates_client_span
( self, trace_exporter: InMemorySpanExporter )
tests/client/telemetry/test_client_list_tracing.py:157
Methodtest_list_prompts_creates_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_list_tracing.py:97
Methodtest_list_prompts_empty_creates_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_list_tracing.py:120
Methodtest_list_prompts_filtering_middleware
Test that middleware can filter prompts.
tests/server/middleware/test_middleware.py:429
Methodtest_list_prompts_keeps_argument_titles
A backend's argument titles reach the proxy's clients.
tests/server/providers/proxy/test_proxy_server.py:887
Functiontest_list_prompts_mcp
Test the list_prompts_mcp method that returns raw MCP protocol objects.
tests/client/client/test_client.py:167
Methodtest_list_prompts_same_as_original
(self, fastmcp_server, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:880
Functiontest_list_prunes_expired_files_in_other_scopes
(clock: list[float])
tests/apps/test_file_upload_retention.py:154
Methodtest_list_query_param_without_explode_is_comma_separated
RFC 6570 3.2.8: `{?tags}` on a list is `?tags=a,b`, one comma-joined value. 4.0.5 registered this shape, so rejecting it breaks servers at st
tests/resources/test_resource_template.py:1204
Methodtest_list_raises_for_failing_mount_when_enabled
(self)
tests/server/mount/test_mount.py:374
Functiontest_list_reannotation_preserves_parent_length_constraint
Repeating list[int] must retain the parent minimum length on the wire.
tests/tools/tool_transform/test_schema_compatibility.py:53
Functiontest_list_rejects_invalid_cursor
()
tests/skills/test_extension.py:298
Methodtest_list_resource_content_item_meta_overrides_component_meta
Item-level keys win over component keys; other component keys merge in.
tests/resources/test_resources.py:393
Methodtest_list_resource_content_return_preserves_component_meta
A list[ResourceContent] return must carry component meta on every item.
tests/resources/test_resources.py:375
Methodtest_list_resource_content_return_preserves_template_meta
(self)
tests/resources/test_resource_template.py:1951
Methodtest_list_resource_templates
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:256
Methodtest_list_resource_templates
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:724
Methodtest_list_resource_templates
Test listing resource templates.
tests/server/providers/test_local_provider.py:228
Methodtest_list_resource_templates
Test listing resource templates from wrapped server.
tests/server/providers/test_fastmcp_provider.py:187
Methodtest_list_resource_templates_creates_client_span
( self, trace_exporter: InMemorySpanExporter )
tests/client/telemetry/test_client_list_tracing.py:123
Methodtest_list_resource_templates_creates_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_list_tracing.py:72
Methodtest_list_resource_templates_filtering_middleware
Test that middleware can filter resource templates.
tests/server/middleware/test_middleware.py:397
Functiontest_list_resource_templates_mcp
Test the list_resource_templates_mcp method that returns raw MCP protocol objects.
tests/client/client/test_client.py:799
Methodtest_list_resource_templates_on_nested_server
( self, mcp_server: FastMCP, nested_mcp_server: FastMCP, recording_middleware:
tests/server/middleware/test_middleware_nested.py:432
← previousnext →11,401–11,500 of 16,725, ranked by callers