MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

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:480
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_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_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:486
Methodtest_legitimate_uris_still_work
Test that legitimate URIs work after security hardening.
tests/server/auth/test_redirect_validation.py:413
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:338
Methodtest_lifecycle_tools_registered_via_add_provider
(self)
tests/server/test_session_provider.py:433
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:479
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:491
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:325
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:78
Functiontest_links_are_verified_with_youtube
(oembed: list[str])
examples/apps/media_picker/test_media_picker.py:74
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:227
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:162
Functiontest_list_enum_multi_select
Test list[Enum] for multi-select with enum in dataclass field.
tests/client/test_elicitation_enums.py:270
Functiontest_list_enum_multi_select_direct
Test list[Enum] type annotation passed directly to ctx.elicit().
tests/client/test_elicitation_enums.py:293
Methodtest_list_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:453
Functiontest_list_list_multi_select_untitled
Test list[list[str]] for multi-select untitled shorthand.
tests/client/test_elicitation_enums.py:192
Methodtest_list_method_wraps_connection_failure
( self, unreachable_provider: ProxyProvider, method: str )
tests/server/providers/proxy/test_proxy_server.py:1483
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:1493
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:156
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:217
Methodtest_list_of_integers_with_string_elements
Test lists containing string representations of integers.
tests/server/test_input_validation.py:419
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:151
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:468
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:262
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:1065
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:400
Functiontest_list_prompts_mcp
Test the list_prompts_mcp method that returns raw MCP protocol objects.
tests/client/client/test_client.py:163
Methodtest_list_prompts_same_as_original
(self, fastmcp_server, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:853
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:1028
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:628
Methodtest_list_resource_templates
Test listing resource templates.
tests/server/providers/test_local_provider.py:227
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:368
Functiontest_list_resource_templates_mcp
Test the list_resource_templates_mcp method that returns raw MCP protocol objects.
tests/client/client/test_client.py:742
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
Methodtest_list_resource_templates_same_as_original
( self, fastmcp_server, proxy_server )
tests/server/providers/proxy/test_proxy_server.py:653
Functiontest_list_resources
Test listing resources with InMemoryClient.
tests/client/client/test_client.py:126
Functiontest_list_resources
Test that we can list resources.
tests/client/auth/test_oauth_client.py:138
Functiontest_list_resources
(mcp: FastMCP)
tests/server/test_file_server.py:79
Functiontest_list_resources
Test listing available resources
examples/testing_demo/tests/test_server.py:120
Methodtest_list_resources
Test listing the MCP resources
tests/integration_tests/test_github_mcp_remote.py:96
Methodtest_list_resources
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:462
Methodtest_list_resources
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:238
Methodtest_list_resources
Test that list resources caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:589
Methodtest_list_resources
Test listing resources.
tests/server/providers/test_local_provider.py:197
Methodtest_list_resources
Test listing resources from wrapped server.
tests/server/providers/test_fastmcp_provider.py:134
Functiontest_list_resources_both_eras
(dual_era_server, mode)
tests/server/test_protocol_eras.py:110
Methodtest_list_resources_cache_does_not_leak_across_tokens
(self)
tests/server/middleware/test_caching.py:1031
Methodtest_list_resources_creates_client_span
( self, trace_exporter: InMemorySpanExporter )
tests/client/telemetry/test_client_list_tracing.py:89
Methodtest_list_resources_creates_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_list_tracing.py:47
Methodtest_list_resources_default_template_mode
In template mode (default), only main file and manifest are resources.
tests/server/providers/test_skills_provider.py:268
Methodtest_list_resources_discovers_skills
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:570
Methodtest_list_resources_empty
(self)
tests/test_fastmcp_app.py:433
Methodtest_list_resources_filtering_middleware
Test that middleware can filter resources.
tests/server/middleware/test_middleware.py:338
Methodtest_list_resources_includes_descriptions
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:584
Methodtest_list_resources_is_read_only
list_resources is annotated as read-only by default.
tests/server/transforms/test_resources_as_tools.py:235
Functiontest_list_resources_mcp
Test the list_resources_mcp method that returns raw MCP protocol objects.
tests/client/client/test_client.py:138
Methodtest_list_resources_on_nested_server
( self, mcp_server: FastMCP, nested_mcp_server: FastMCP, recording_middleware:
tests/server/middleware/test_middleware_nested.py:408
Methodtest_list_resources_same_as_original
(self, fastmcp_server, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:536
Methodtest_list_resources_supporting_files_as_resources
In resources mode, supporting files are also exposed as resources.
tests/server/providers/test_skills_provider.py:278
Methodtest_list_return_includes_wrap_result_meta
A tool returning list[dict] should set wrap_result in meta.
tests/tools/tool/test_output_schema.py:587
Methodtest_list_return_no_structured_content_without_schema
Test that list returns don't create structured content without output schema.
tests/tools/tool/test_content.py:446
Functiontest_list_schema_is_inlined
(build: Callable[[int], dict[str, Any]])
tests/utilities/test_json_schema_expansion.py:93
Methodtest_list_serialized_to_json
List input is JSON-serialized.
tests/resources/test_resources.py:145
← previousnext →9,101–9,200 of 13,374, ranked by callers