Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Method
test_task_true_normalizes_to_optional
task=True should normalize to TaskConfig(mode='optional').
tests/tasks/server/test_task_config.py:86
Method
test_task_true_uses_default_poll_interval
task=True should use default 5 second poll_interval.
tests/tasks/server/test_task_config.py:331
Function
test_task_with_custom_tool_name
Tools registered under a custom name task correctly (issue #2642). When a tool is registered with a custom name different from the function n
tests/tasks/server/test_server_tasks_parameter.py:116
Function
test_tasked_call_creates_client_spans
(trace_exporter: InMemorySpanExporter)
tests/tasks/client/test_task_tracing.py:17
Function
test_tasked_call_survives_result_inspecting_middleware
()
tests/tasks/server/test_task_middleware.py:22
Method
test_tasks_app_exists
Test that the tasks app is properly configured.
tests/cli/test_tasks.py:65
Method
test_tasks_app_has_commands
Test that all expected commands are registered.
tests/cli/test_tasks.py:70
Function
test_tasks_cancel_transitions_to_cancelled
`tasks/cancel` transitions a running task to cancelled.
tests/tasks/server/test_task_methods.py:92
Function
test_tasks_extension_does_not_propagate
()
tests/server/test_provider_extensions.py:381
Function
test_tasks_get_includes_poll_interval
`tasks/get` includes the poll-interval hint.
tests/tasks/server/test_task_methods.py:63
Function
test_tasks_get_returns_is_error_result_for_raised_tool
A raised tool error is a completed task with an is_error result (SEP-2663).
tests/tasks/server/test_task_methods.py:72
Function
test_tasks_get_returns_status_and_inlined_result
`tasks/get` reports status and inlines the completed tool result.
tests/tasks/server/test_task_methods.py:46
Function
test_tasks_get_unknown_id_raises_not_found
`tasks/get` for an unknown id raises a not-found error (-32602).
tests/tasks/server/test_task_methods.py:84
Function
test_tasks_isolated_across_auth_scopes
()
tests/tasks/server/test_extension.py:321
Function
test_tasks_update_acks_empty
`tasks/update` returns an empty ack.
tests/tasks/server/test_task_methods.py:155
Method
test_tasks_work_with_multiple_mounts
(self)
tests/tasks/server/test_task_mount.py:276
Function
test_template
(id: str)
tests/contrib/test_component_manager.py:647
Method
test_template
Test template for tool management routes.
tests/contrib/test_component_manager.py:40
Function
test_template_access_via_client
Test that templates can be accessed through a client.
tests/client/client/test_client.py:787
Method
test_template_added_to_server
Template created by @resource should work when added to a server.
tests/resources/test_standalone_decorator.py:152
Method
test_template_create_resource_rejects_escape
( self, skill_with_secret: Path, attack: str )
tests/server/providers/test_skills_provider.py:964
Method
test_template_creation
Test creating a template from a function.
tests/resources/test_resource_template.py:23
Method
test_template_decorator
(self)
tests/server/providers/test_local_provider_resources.py:530
Method
test_template_decorator_async_function
(self)
tests/server/providers/test_local_provider_resources.py:634
Method
test_template_decorator_classmethod
(self)
tests/server/providers/test_local_provider_resources.py:602
Method
test_template_decorator_incorrect_usage
(self)
tests/server/providers/test_local_provider_resources.py:545
Method
test_template_decorator_instance_method
(self)
tests/server/providers/test_local_provider_resources.py:581
Method
test_template_decorator_staticmethod
(self)
tests/server/providers/test_local_provider_resources.py:622
Method
test_template_decorator_wildcard_param
(self)
tests/server/providers/test_local_provider_resources.py:181
Method
test_template_decorator_wildcard_param
(self)
tests/server/providers/test_local_provider_resources.py:656
Method
test_template_decorator_with_description
(self)
tests/server/providers/test_local_provider_resources.py:570
Method
test_template_decorator_with_meta
Test that meta parameter is passed through the template decorator.
tests/server/providers/test_local_provider_resources.py:668
Method
test_template_decorator_with_name
(self)
tests/server/providers/test_local_provider_resources.py:556
Method
test_template_decorator_with_tags
(self)
tests/server/providers/test_local_provider_resources.py:170
Method
test_template_decorator_with_tags
Test that the template decorator properly sets tags.
tests/server/providers/test_local_provider_resources.py:644
Method
test_template_disabled
(self)
tests/server/providers/test_local_provider_resources.py:923
Method
test_template_enabled_false
Template with enabled=False should add a Visibility transform.
tests/server/providers/test_local_provider.py:468
Method
test_template_enabled_false_not_listed
Disabled template should not appear in get_resource_templates (filtering at server level).
tests/server/providers/test_local_provider.py:487
Method
test_template_errors_are_sent_to_client
(self)
tests/client/client/test_error_handling.py:168
Method
test_template_has_template_prefix
Test that ResourceTemplate has 'template' KEY_PREFIX.
tests/utilities/test_components.py:211
Method
test_template_icons
Test that resource template icons are extracted.
tests/utilities/test_inspect_icons.py:126
Method
test_template_keeps_its_own_pattern
Reads walk every template, so each keeps its compiled pattern for as long as it lives, independent of any shared cache.
tests/resources/test_resource_template.py:784
Method
test_template_matches
Test matching URIs against a template.
tests/resources/test_resource_template.py:40
Method
test_template_matches_with_prefix
Test matching URIs against a template with a prefix.
tests/resources/test_resource_template.py:60
Method
test_template_meta_parameter
Test that meta parameter is properly handled.
tests/resources/test_resource_template_meta.py:14
Method
test_template_pattern_follows_a_changed_uri_template
(self)
tests/resources/test_resource_template.py:813
Method
test_template_read_allows_nested_path
(self, skill_with_secret: Path)
tests/server/providers/test_skills_provider.py:990
Method
test_template_read_allows_within_bounds_dotdot
( self, skill_with_secret: Path )
tests/server/providers/test_skills_provider.py:995
Method
test_template_read_rejects_escape
( self, skill_with_secret: Path, attack: str )
tests/server/providers/test_skills_provider.py:956
Method
test_template_to_resource_conversion
Test that a template can be converted to a resource.
tests/server/providers/test_local_provider_resources.py:155
Method
test_template_toggle_disabled
(self)
tests/server/providers/test_local_provider_resources.py:952
Method
test_template_toggle_enabled
(self)
tests/server/providers/test_local_provider_resources.py:937
Method
test_template_uri_params_subset_of_function_params
Test validation rule: URI parameters must be a subset of function parameters.
tests/resources/test_resource_template.py:96
Method
test_template_uri_validation
Test validation rule: URI template must have at least one parameter.
tests/resources/test_resource_template.py:81
Method
test_template_with_default_params
Test that a template can have default parameters.
tests/server/providers/test_local_provider_resources.py:137
Method
test_template_with_non_ascii_literal_is_readable
Regression: the template was listed but every read returned Not Found.
tests/resources/test_resource_template.py:1508
Method
test_template_with_query_params
Test RFC 6570 query parameters in resource templates.
tests/server/providers/test_local_provider_resources.py:191
Method
test_template_with_varkwargs
Test that a template can have **kwargs.
tests/server/providers/test_local_provider_resources.py:126
Method
test_templated_resource_blocks_path_traversal
(self)
tests/test_upgrade_from_v3.py:349
Method
test_templated_resource_server
(self)
tests/test_upgrade_from_v3.py:96
Method
test_templates_match_in_order_of_definition
If a wildcard template is defined first, it will take priority.
tests/server/providers/test_local_provider_resources.py:208
Method
test_templates_shadow_each_other_reorder
If a wildcard template is defined second, it will *not* take priority.
tests/server/providers/test_local_provider_resources.py:226
Method
test_temporary_settings
(self)
tests/utilities/test_tests.py:11
Method
test_tenant_and_authority_stored_as_attributes
Test that tenant_id and base_authority are stored for OBO credential creation.
tests/server/auth/providers/test_azure_scopes.py:778
Method
test_tenant_name_with_onmicrosoft_suffix_rejected
( self, memory_storage: MemoryStore, tenant_name: str )
tests/server/auth/providers/test_azure.py:1200
Method
test_text_content_to_mcp
Test converting text ResourceContent to MCP type.
tests/resources/test_function_resources.py:253
Method
test_text_html_response
HTML content type is correctly extracted.
tests/server/providers/openapi/test_openapi_features.py:458
Method
test_text_plain_response
Plain text content type is correctly extracted.
tests/server/providers/openapi/test_openapi_features.py:447
Method
test_texts_refresh_when_a_tool_is_added
(self)
tests/experimental/transforms/test_jev_search.py:358
Function
test_the_apps_own_ui_still_reaches_its_backend
The point of the boundary is the audience, not the tool: a UI calling by identity is not the model, and must still work.
tests/server/transforms/test_model_visibility_boundary.py:126
Function
test_thought_only_response_on_non_tool_path_raises
When the non-tool path receives only thoughts the error message should mention 'thinking/reasoning content'.
tests/client/sampling/handlers/test_google_genai_handler.py:508
Function
test_thought_only_response_on_tool_path_raises
When the response contains ONLY thought parts the tool path should raise a ValueError whose message includes the finish_reason.
tests/client/sampling/handlers/test_google_genai_handler.py:491
Function
test_thought_parts_filtered_on_tool_path
Thought parts should be excluded; only the real text part should appear.
tests/client/sampling/handlers/test_google_genai_handler.py:471
Function
test_thought_with_function_call_keeps_function_call
When thinking parts accompany a function call, only the function call should appear in the content (thought parts filtered out).
tests/client/sampling/handlers/test_google_genai_handler.py:582
Method
test_three_level_nested_prompt_invocation
Test getting prompts from servers mounted 3 levels deep.
tests/server/mount/test_advanced.py:331
Method
test_three_level_nested_resource_invocation
Test reading resources from servers mounted 3 levels deep.
tests/server/mount/test_advanced.py:281
Method
test_three_level_nested_resource_template_invocation
Test reading resource templates from servers mounted 3 levels deep.
tests/server/mount/test_advanced.py:306
Method
test_three_level_nested_tool_invocation
Test invoking tools from servers mounted 3 levels deep.
tests/server/mount/test_advanced.py:256
Method
test_timed_out_exit_is_not_held_by_another_tasks_connect
The exiting context must not wait on the session lock: another task can hold it through a reconnect that is slow or never finishes.
tests/client/client/test_client.py:1064
Method
test_timedelta_becomes_seconds
(self)
tests/utilities/test_timeout.py:26
Method
test_timedelta_is_returned_unchanged
(self)
tests/utilities/test_timeout.py:40
Method
test_timedelta_type
(self)
tests/server/providers/local_provider_tools/test_parameters.py:380
Method
test_timedelta_type_parse_int
Test that int input is coerced to timedelta (seconds).
tests/server/providers/local_provider_tools/test_parameters.py:392
Method
test_timeout
(self, sse_server: ASGIServer)
tests/client/test_sse.py:160
Method
test_timeout
(self, streamable_http_server: ASGIServer)
tests/client/test_streamable_http.py:261
Method
test_timeout
(self, fastmcp_server: FastMCP)
tests/client/client/test_timeout.py:12
Method
test_timeout_client_timeout_does_not_override_tool_call_timeout_if_lower
With SSE, the tool call timeout always takes precedence over the client. Note: on Windows, the behavior appears unpredictable.
tests/client/test_sse.py:180
Method
test_timeout_error_converted_to_tool_error
Timeout errors are converted to ToolError by FastMCP.
tests/tools/test_tool_timeout.py:181
Method
test_timeout_error_produces_useful_message
ReadTimeout should surface a clear error, not an empty string.
tests/server/providers/openapi/test_comprehensive.py:746
Method
test_timeout_error_raises_tool_error
Timeout error is converted to ToolError and logs warning.
tests/tools/test_tool_timeout.py:94
Method
test_timeout_errors_are_not_cached
Test that timeout errors are not cached (transient failures).
tests/server/auth/providers/test_introspection.py:822
Method
test_timeout_from_tool_from_function
Timeout works when using Tool.from_function().
tests/tools/test_tool_timeout.py:107
Method
test_timeout_not_reached_async
Async tool with timeout completes before timeout.
tests/tools/test_tool_timeout.py:43
Method
test_timeout_not_reached_sync
Sync tool with timeout completes before timeout.
tests/tools/test_tool_timeout.py:56
Method
test_timeout_returns_none
Test that timeouts return None.
tests/server/auth/providers/test_introspection.py:287
Method
test_timeout_seconds_initialization
Test timeout seconds initialization.
tests/server/auth/test_oidc_proxy.py:468
Method
test_timeout_tool_call
(self, sse_server: ASGIServer)
tests/client/test_sse.py:168
Method
test_timeout_tool_call
(self, streamable_http_server: ASGIServer)
tests/client/test_streamable_http.py:268
Method
test_timeout_tool_call
(self, fastmcp_server: FastMCP)
tests/client/client/test_timeout.py:22
Method
test_timeout_tool_call_overrides_client_timeout
( self, streamable_http_server: ASGIServer )
tests/client/test_streamable_http.py:273
← previous
next →
12,101–12,200 of 13,374, ranked by callers