MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_async_body_pydantic_error_propagates
(self)
tests/tools/tool/test_argument_validation.py:64
Functiontest_async_callable_class_tool_with_task_true_works
Callable class with async __call__ and task=True should work.
tests/tasks/server/test_sync_function_task_disabled.py:76
Methodtest_async_callable_object
(self)
tests/tools/tool/test_tool.py:149
Methodtest_async_callable_object
(self)
tests/prompts/test_prompt.py:74
Methodtest_async_check_authorization_error_propagates
Async checks that raise AuthorizationError should propagate.
tests/server/auth/test_authorization.py:420
Methodtest_async_check_exception_is_masked
Async checks that raise non-AuthorizationError should be masked.
tests/server/auth/test_authorization.py:411
Methodtest_async_check_fails
Async auth check that returns False should deny access.
tests/server/auth/test_authorization.py:389
Methodtest_async_check_passes
Async auth check functions should be awaited.
tests/server/auth/test_authorization.py:380
Functiontest_async_completion_handler_is_awaited
()
tests/server/test_completions.py:168
Methodtest_async_constraint_violation
(self)
tests/tools/tool/test_argument_validation.py:28
Methodtest_async_context
Test that context works in async functions.
tests/server/providers/local_provider_tools/test_context.py:70
Functiontest_async_coroutine_tool_with_task_true_is_registered
()
tests/tasks/server/test_task_async_generator_tools.py:82
Functiontest_async_factory_generator_stays_on_event_loop
(run_in_thread: bool)
tests/tools/test_generator_thread_dispatch.py:96
Methodtest_async_fn
(self)
tests/prompts/test_prompt.py:49
Methodtest_async_function
Test registering and running an async function.
tests/tools/tool/test_tool.py:76
Methodtest_async_function
(self)
tests/utilities/test_docstring_parsing.py:398
Methodtest_async_function_integration
(self)
tests/utilities/test_docstring_parsing.py:601
Methodtest_async_generator_allowed_with_timeout_and_run_in_thread_false
Async generators are async even though is_coroutine_function is False. Registration must not over-block this shape — the generator's
tests/tools/test_tool_run_in_thread.py:104
Methodtest_async_generator_sees_open_dependency
Regression test for async-generator tools using Depends (#5399).
tests/server/test_dependencies_advanced.py:292
Functiontest_async_generator_stays_on_event_loop
(run_in_thread: bool)
tests/tools/test_generator_thread_dispatch.py:80
Functiontest_async_generator_tool_with_inherited_task_true_is_registered
()
tests/tasks/server/test_task_async_generator_tools.py:70
Functiontest_async_generator_tool_with_task_true_is_registered
()
tests/tasks/server/test_task_async_generator_tools.py:58
Functiontest_async_multiply_tool
Test the async multiply tool
examples/testing_demo/tests/test_server.py:46
Methodtest_async_partial_prompt_renders
(self)
tests/utilities/test_async_utils.py:282
Methodtest_async_partial_resource_reads
(self)
tests/utilities/test_async_utils.py:267
Methodtest_async_partial_tool_runs
(self)
tests/utilities/test_async_utils.py:254
Methodtest_async_partial_with_task_true_does_not_raise
(self)
tests/utilities/test_async_utils.py:295
Functiontest_async_prompt_context_manager_stays_open
Test that context manager dependencies stay open during async prompt execution.
tests/server/test_dependencies.py:418
Methodtest_async_read_text
Test reading text from async FunctionResource.
tests/resources/test_function_resources.py:145
Methodtest_async_resource_content
Test async function returning ResourceContent.
tests/resources/test_function_resources.py:230
Functiontest_async_resource_context_manager_stays_open
Test that context manager dependencies stay open during async resource execution.
tests/server/test_dependencies.py:390
Functiontest_async_resource_template_context_manager_stays_open
Test that context manager dependencies stay open during async resource template execution.
tests/server/test_dependencies.py:402
Methodtest_async_text_resource
Test creating a text resource from async function.
tests/resources/test_resource_template.py:205
Methodtest_async_timeout_exceeded
Async tool exceeds timeout and raises TimeoutError.
tests/tools/test_tool_timeout.py:72
Methodtest_async_tool_allows_timeout_and_run_in_thread_false
run_in_thread is a no-op for async fns, so pairing with timeout is fine.
tests/tools/test_tool_run_in_thread.py:92
Functiontest_async_tool_context_manager_stays_open
Test that context manager dependencies stay open during async tool execution. Context managers must remain open while the async function executes
tests/server/test_dependencies.py:370
Methodtest_async_tool_unaffected_by_run_in_thread_flag
The flag is a no-op for async tools (they already run on the loop).
tests/tools/test_tool_run_in_thread.py:119
Functiontest_async_tool_with_task_true_remains_enabled
Async tools with task=True keep task support enabled.
tests/tasks/server/test_sync_function_task_disabled.py:43
Methodtest_async_valid_call
(self)
tests/tools/tool/test_argument_validation.py:121
Methodtest_async_validator_is_awaited
(self)
tests/server/auth/providers/test_debug.py:30
Methodtest_async_with_context
(self)
tests/tools/test_tool_future_annotations.py:112
Functiontest_atomic_write_ignores_unsupported_directory_fsync
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_credentials.py:73
Functiontest_atomic_write_preserves_previous_state_on_replace_failure
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_credentials.py:92
Methodtest_attach_provider_to_multiple_servers
Test that same provider can be attached to multiple servers.
tests/server/providers/test_local_provider.py:889
Methodtest_attach_provider_to_server
Test that LocalProvider can be attached to a server.
tests/server/providers/test_local_provider.py:875
Functiontest_attributes_survive_a_non_forwarding_sampler
Regression: a custom Sampler that samples a span but doesn't forward the `attributes` it was handed must not erase FastMCP's telemetry. OTel'
tests/telemetry/test_span_attributes.py:269
Methodtest_aud_does_not_match_resource
Token is rejected when aud doesn't match the configured resource.
tests/server/auth/providers/test_propelauth.py:229
Methodtest_aud_from_introspection_client_id_field
When introspection returns client_id but not aud, client_id is used.
tests/server/auth/providers/test_clerk.py:479
Methodtest_aud_matches_resource
Token is accepted when aud matches the configured resource.
tests/server/auth/providers/test_propelauth.py:218
Methodtest_aud_matching_advertised_issuer_with_trailing_slash
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:559
Methodtest_audience_binds_on_set_mcp_path
(self, valid_oidc_configuration_dict)
tests/server/auth/providers/test_auth0_mcp.py:140
Methodtest_audience_binds_through_http_app
(self, valid_oidc_configuration_dict)
tests/server/auth/providers/test_auth0_mcp.py:219
Methodtest_audience_binds_through_http_app
End-to-end: mounting a FastMCP server triggers the lifecycle hook that populates ``JWTVerifier.audience``.
tests/server/auth/providers/test_workos.py:331
Methodtest_audience_binds_to_resource_url_on_set_mcp_path
(self)
tests/server/auth/providers/test_workos.py:265
Functiontest_audience_configuration_requires_nonempty_values
(audience: str | list[str])
tests/server/auth/providers/test_introspection_audience.py:102
Methodtest_audience_list_match_accepted
A list audience accepts any listed client ID and rejects others.
tests/server/auth/providers/test_google.py:394
Methodtest_audience_match_accepted
When audience is configured, a token with a matching 'aud' is accepted.
tests/server/auth/providers/test_google.py:358
Functiontest_audience_mismatch_is_retried
(httpx_mock: HTTPXMock)
tests/server/auth/providers/test_introspection_audience.py:70
Methodtest_audience_mismatch_rejected
A valid Google token minted for a different OAuth client is rejected.
tests/server/auth/providers/test_google.py:377
Methodtest_audience_mismatch_returns_none
Token with wrong audience is rejected before userinfo is called.
tests/server/auth/providers/test_clerk.py:563
Methodtest_audience_missing_returns_none_when_client_id_set
Token without audience is rejected before userinfo is called.
tests/server/auth/providers/test_clerk.py:579
Methodtest_audience_not_checked_without_client_id
Without client_id configured, any audience is accepted.
tests/server/auth/providers/test_clerk.py:597
Methodtest_audience_respects_resource_base_url
(self, valid_oidc_configuration_dict)
tests/server/auth/providers/test_auth0_mcp.py:159
Methodtest_audience_respects_resource_base_url
When ``resource_base_url`` differs from ``base_url``, the audience follows the advertised resource URL, not the OAuth-surface URL.
tests/server/auth/providers/test_workos.py:298
Methodtest_audio
(self, tmp_path: Path)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:130
Functiontest_audio_content
Returns WAV audio.
tests/conformance/server.py:107
Functiontest_audio_content_to_openai_part_mp3
()
tests/client/sampling/handlers/test_openai_handler.py:81
Functiontest_audio_content_to_openai_part_unsupported_raises
()
tests/client/sampling/handlers/test_openai_handler.py:89
Functiontest_audio_content_to_openai_part_wav
()
tests/client/sampling/handlers/test_openai_handler.py:70
Methodtest_audio_initialization_with_data
Test audio initialization with data.
tests/utilities/test_types.py:296
Methodtest_audio_initialization_with_format
Test audio initialization with a specific format.
tests/utilities/test_types.py:318
Methodtest_audio_initialization_with_path
Test audio initialization with a path.
tests/utilities/test_types.py:270
Methodtest_audio_path_expansion_with_env_var
Test that environment variables are expanded.
tests/utilities/test_types.py:285
Methodtest_audio_path_expansion_with_tilde
Test that ~ is expanded to the user's home directory.
tests/utilities/test_types.py:278
Methodtest_audio_return_creates_no_structured_content
Test that audio returns don't create structured content.
tests/tools/tool/test_content.py:463
Methodtest_auth0_configuration
Test Auth0 configuration.
tests/server/auth/test_oidc_proxy.py:354
Methodtest_auth0_provider_defaults_to_bounded_timeout
Auth0Provider exposes and defaults the discovery timeout.
tests/server/auth/test_oidc_proxy.py:934
Methodtest_auth_assigned_after_setup_applies
(self, rsa_key_pair: RSAKeyPair)
tests/contrib/test_component_manager.py:822
Functiontest_auth_defaults_to_oauth
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_fastmcp_remote.py:90
Methodtest_auth_endpoint_has_correct_methods
Test that auth-protected endpoints have correct HTTP methods.
tests/server/http/test_http_auth_middleware.py:124
Methodtest_auth_endpoint_wrapped_with_require_auth_middleware
Test that auth-protected endpoints use RequireAuthMiddleware.
tests/server/http/test_http_auth_middleware.py:107
Methodtest_auth_middleware_allows_injected_tool
(self, injection_first: bool)
tests/server/middleware/test_tool_injection.py:400
Functiontest_auth_middleware_denied_references_complete_like_unknown_ones
(mode)
tests/server/test_completions.py:408
Methodtest_auth_middleware_denies_injected_tool
(self, injection_first: bool)
tests/server/middleware/test_tool_injection.py:383
Methodtest_auth_middleware_runs
A migrated test must not pass by bypassing the real middleware stack.
tests/utilities/test_asgi_transport.py:251
Methodtest_auth_oauth_string_registers_as_a_public_client
Client(..., auth='oauth') uses the same public registration.
tests/client/auth/test_oauth_static_client.py:88
Methodtest_auth_protected_resource_cannot_be_read
Auth-protected resources cannot be read via read_resource tool.
tests/server/transforms/test_resources_as_tools.py:331
Methodtest_auth_protected_resources_hidden_from_list
Auth-protected resources are filtered from list_resources tool.
tests/server/transforms/test_resources_as_tools.py:310
Methodtest_auth_rejected_tool_excluded
(self)
tests/server/transforms/test_catalog.py:229
Functiontest_auth_scoped_listing_does_not_evict_other_schemas
An auth-filtered `tools/list` must not clear other principals' schemas. The cache is one shared server-wide dict: a listing visible to only one
tests/server/test_mcp_param_schema_cache.py:178
Methodtest_auth_string_pass_direct_to_transport_shttp
(self)
tests/client/client/test_auth.py:57
Methodtest_auth_string_pass_direct_to_transport_sse
(self)
tests/client/client/test_auth.py:76
Methodtest_auth_string_sets_up_bearer_auth_shttp
(self)
tests/client/client/test_auth.py:48
Methodtest_auth_string_sets_up_bearer_auth_sse
(self)
tests/client/client/test_auth.py:67
Methodtest_auth_url_trailing_slash_normalization
Test that trailing slash on auth_url is stripped before building URLs.
tests/server/auth/providers/test_propelauth.py:50
Functiontest_authenticated_and_anonymous_keyspaces_are_disjoint
An anonymous caller cannot read an authenticated caller's task.
tests/tasks/server/test_task_security.py:93
Functiontest_authenticated_key_uses_auth_tag
()
tests/tasks/server/test_task_keys.py:67
Methodtest_authenticated_requests_still_require_auth
Test that actual requests (not OPTIONS) still require authentication.
tests/server/http/test_http_auth_middleware.py:159
Functiontest_authenticated_routes_use_the_current_key_and_paginate
()
tests/cli/deploy/test_horizon_client.py:121
Methodtest_authentication_failure_returns_none
Test that authentication failures return None.
tests/server/auth/providers/test_introspection.py:272
← previousnext →7,501–7,600 of 15,974, ranked by callers