MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Functiontest_sync_transform_fn
Sync transform_fn should not crash when called (was unconditionally awaited).
tests/tools/tool_transform/test_tool_transform.py:907
Methodtest_sync_valid_call
(self)
tests/tools/tool/test_argument_validation.py:129
Methodtest_sync_validator_can_reject_tokens
(self)
tests/server/auth/providers/test_debug.py:24
Methodtest_sync_with_context_runs_on_loop_thread
run_in_thread=False must also apply to sync tools with injected Context (or Depends). Without this, without_injected_parameters() wra
tests/tools/test_tool_run_in_thread.py:54
Functiontest_sync_wrapper_of_async_generator_factory_stays_on_loop
( inject_context: bool, )
tests/tools/test_generator_thread_dispatch.py:126
Functiontest_synchronous_tool_call_without_opt_in
A tool called without a tasks opt-in executes synchronously as before.
tests/tasks/server/test_task_tools.py:281
Methodtest_synthetic_client_can_allow_unregistered_redirect_uris
Synthetic clients can opt in to broad redirect URI compatibility.
tests/server/auth/test_oauth_proxy_redirect_validation.py:80
Methodtest_synthetic_tools_have_titles
Synthetic search/call tools must carry a title. Some MCP clients (e.g. ChatGPT) drop tools with no `title` field, which breaks tool-s
tests/server/transforms/test_search.py:143
Methodtest_syspath_not_polluted_after_import
sys.path should not contain the file's parent after import_module_from_file returns.
tests/fs/test_discovery.py:526
Methodtest_syspath_not_polluted_after_package_import
sys.path should not contain the package root's parent after a package import.
tests/fs/test_discovery.py:533
Functiontest_tag_filters_with_one_or_multiple_servers
( backend_entry: dict[str, Any], server_count: int, filters: dict[str, list[str]], expected: s
tests/client/transports/test_config_tag_filters.py:67
Functiontest_tagged_resource_metadata
Test that resource metadata is preserved in MCP format.
tests/client/client/test_client.py:856
Functiontest_tagged_template_functionality
Test that tagged templates function correctly when accessed.
tests/client/client/test_client.py:884
Functiontest_tagged_template_metadata
Test that template metadata is preserved in MCP format.
tests/client/client/test_client.py:870
Methodtest_tags_deduplication
Test that tags are deduplicated when passed as a sequence.
tests/utilities/test_components.py:171
Methodtest_tags_with_none_values
Test tags behavior with various input types.
tests/utilities/test_components.py:348
Methodtest_tampered_cookie_is_ignored
Verify tampered approval cookie is ignored and consent page shown.
tests/server/auth/test_oauth_consent_flow.py:1146
Methodtest_tampered_request_state_rejected
A modified requestState echo fails the boundary's integrity check with the frozen wire error, before the tool runs.
tests/server/test_mrtr_guards.py:752
Functiontest_task
(progress: Progress = Progress())
tests/tasks/server/test_progress_dependency.py:41
Functiontest_task_arguments_are_coerced_like_sync_path
()
tests/tasks/server/test_extension.py:234
Functiontest_task_arguments_are_coerced_like_sync_path
A string-for-int arg coerces on the task path exactly as on the sync path.
tests/tasks/server/test_task_tools.py:99
Functiontest_task_basic_types_match_sync
Task mode returns basic types identically to the synchronous path.
tests/tasks/server/test_task_return_types.py:133
Functiontest_task_binary_types_match_sync
Task mode handles binary and special types identically to sync.
tests/tasks/server/test_task_return_types.py:175
Functiontest_task_collection_types_match_sync
Task mode handles collection types identically to sync.
tests/tasks/server/test_task_return_types.py:217
Methodtest_task_config_passed_directly
TaskConfig should be preserved when passed directly.
tests/tasks/server/test_task_config.py:110
Functiontest_task_discovery_lists_one_tool_for_a_shared_name
()
tests/tasks/server/test_task_middleware.py:135
Functiontest_task_discovery_skips_a_registered_tool_shadowed_by_a_synchronous_injected_tool
()
tests/tasks/server/test_task_middleware.py:223
Methodtest_task_enabled_tool_runs_sync_through_proxy
A backend `task=True` tool runs sync through the forbidden proxy.
tests/tasks/server/test_task_proxy.py:82
Functiontest_task_execution_auto_populated_for_task_enabled_tool
Test that execution.task_support is automatically set when tool has task=True.
tests/server/test_tool_annotations.py:224
Functiontest_task_execution_omitted_for_task_disabled_tool
Test that execution is not set when tool has task=False or default.
tests/server/test_tool_annotations.py:245
Methodtest_task_false_normalizes_to_forbidden
task=False should normalize to TaskConfig(mode='forbidden').
tests/tasks/server/test_task_config.py:98
Functiontest_task_handle_carries_the_pinned_call_flag
A tasked pinned call keeps its version through the handle. `call_tool_task` returns before the result exists, so the flag cannot ride on the
tests/tasks/client/test_client_tool_tasks.py:155
Methodtest_task_id_has_docstring
task_id property should have documentation.
tests/tasks/server/test_context_background_task.py:319
Functiontest_task_ids_are_server_generated_and_distinct
()
tests/tasks/server/test_extension.py:168
Functiontest_task_management_routing_headers
(method: str, task_id: str)
tests/tasks/client/test_routing_headers.py:18
Functiontest_task_mcp_content_types_match_sync
Task mode handles MCP content block types identically to sync.
tests/tasks/server/test_task_return_types.py:422
Functiontest_task_media_types_match_sync
Task mode handles media types (Image, Audio, File) identically to sync.
tests/tasks/server/test_task_return_types.py:268
Functiontest_task_metadata_includes_task_id_and_ttl
A submitted task carries a server-generated id and a positive TTL.
tests/tasks/server/test_task_protocol.py:35
Functiontest_task_method_without_capability_raises_missing_capability
tasks/get from a client that did not declare the extension gets -32021.
tests/tasks/server/test_extension.py:425
Functiontest_task_result_matches_the_sync_result
A task runs the generator body once and reports what the sync path does.
tests/tasks/server/test_task_async_generator_tools.py:155
Functiontest_task_started_during_hashed_lookup_resolves_names_normally
()
tests/server/test_hashed_tool_dispatch.py:368
Functiontest_task_structured_types_match_sync
Task mode handles TypedDict, dataclass, union and optional returns.
tests/tasks/server/test_task_return_types.py:340
Functiontest_task_submission_accepts_json_values_under_strict_validation
Strict validation accepts the JSON form of an enum or datetime on the task path.
tests/tasks/server/test_task_tools.py:212
Functiontest_task_submission_honors_field_level_strictness
A lax server still rejects coercion the parameter itself declared strict.
tests/tasks/server/test_task_tools.py:230
Functiontest_task_submission_honors_strict_input_validation
Strict input validation rejects lax coercion on the task path too. With ``strict_input_validation=True`` a lax coercion like ``{"n": "1"}`` for
tests/tasks/server/test_task_tools.py:115
Functiontest_task_submission_rejects_missing_and_unexpected_arguments
A call with a missing or unknown argument is rejected at submission. The synchronous path raises a validation error for both. The task path must
tests/tasks/server/test_task_tools.py:138
Functiontest_task_submission_uses_the_pydantic_definition_of_required
Submission agrees with the synchronous path on what is required. ``Field(default=...)`` inside ``Annotated`` makes a parameter optional even
tests/tasks/server/test_task_tools.py:164
Functiontest_task_teardown_does_not_hang
In-memory transport must tear down in under 2 seconds after a task call. This is a regression test for a teardown ordering bug where the Docket
tests/client/transports/test_memory_transport.py:24
Functiontest_task_tool_added_by_catalog_transform_is_registered
()
tests/tasks/server/test_task_catalog_transforms.py:101
Functiontest_task_tool_coerces_model_arguments
Model-typed args are coerced to model instances on the task path (#4349). The synchronous path validates arguments through the function's TypeAda
tests/tasks/server/test_task_tools.py:74
Functiontest_task_tool_without_extension_fails_at_serve_time
()
tests/tasks/server/test_extension.py:304
Functiontest_task_tools_with_distinct_names_all_run_as_background_tasks
()
tests/tasks/server/test_task_middleware.py:195
Methodtest_task_true_normalizes_to_optional
task=True should normalize to TaskConfig(mode='optional').
tests/tasks/server/test_task_config.py:86
Methodtest_task_true_uses_default_poll_interval
task=True should use default 5 second poll_interval.
tests/tasks/server/test_task_config.py:331
Functiontest_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
Functiontest_tasked_call_creates_client_spans
(trace_exporter: InMemorySpanExporter)
tests/tasks/client/test_task_tracing.py:17
Functiontest_tasked_call_survives_result_inspecting_middleware
()
tests/tasks/server/test_task_middleware.py:22
Methodtest_tasks_app_exists
Test that the tasks app is properly configured.
tests/cli/test_tasks.py:157
Methodtest_tasks_app_has_commands
Test that all expected commands are registered.
tests/cli/test_tasks.py:162
Functiontest_tasks_cancel_leaves_completed_task_completed
Cancelling a finished task keeps its `completed` status and result.
tests/tasks/server/test_task_methods.py:116
Functiontest_tasks_cancel_leaves_failed_task_failed
Cancelling a task that already failed keeps its `failed` status and error.
tests/tasks/server/test_task_methods.py:130
Functiontest_tasks_cancel_transitions_to_cancelled
`tasks/cancel` transitions a running task to cancelled.
tests/tasks/server/test_task_methods.py:92
Functiontest_tasks_extension_does_not_propagate
()
tests/server/test_provider_extensions.py:381
Functiontest_tasks_get_includes_poll_interval
`tasks/get` includes the poll-interval hint.
tests/tasks/server/test_task_methods.py:63
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_tasks_isolated_across_auth_scopes
()
tests/tasks/server/test_extension.py:321
Functiontest_tasks_reconnect_with_rotated_credentials
( redis_backend: Redis, free_port: int, tmp_path: Path, provider_type: type[FileCredentials],
tests/integration_tests/test_task_credentials.py:112
Functiontest_tasks_update_acks_empty
`tasks/update` returns an empty ack.
tests/tasks/server/test_task_methods.py:189
Methodtest_tasks_work_with_multiple_mounts
(self)
tests/tasks/server/test_task_mount.py:276
Functiontest_template
(id: str)
tests/contrib/test_component_manager.py:699
Methodtest_template
Test template for tool management routes.
tests/contrib/test_component_manager.py:41
Functiontest_template_access_via_client
Test that templates can be accessed through a client.
tests/client/client/test_client.py:844
Methodtest_template_added_to_server
Template created by @resource should work when added to a server.
tests/resources/test_standalone_decorator.py:152
Methodtest_template_create_resource_rejects_escape
( self, skill_with_secret: Path, attack: str )
tests/server/providers/test_skills_provider.py:1078
Methodtest_template_creation
Test creating a template from a function.
tests/resources/test_resource_template.py:27
Methodtest_template_decorator
(self)
tests/server/providers/test_local_provider_resources.py:531
Methodtest_template_decorator_async_function
(self)
tests/server/providers/test_local_provider_resources.py:635
Methodtest_template_decorator_classmethod
(self)
tests/server/providers/test_local_provider_resources.py:603
Methodtest_template_decorator_incorrect_usage
(self)
tests/server/providers/test_local_provider_resources.py:546
Methodtest_template_decorator_instance_method
(self)
tests/server/providers/test_local_provider_resources.py:582
Methodtest_template_decorator_staticmethod
(self)
tests/server/providers/test_local_provider_resources.py:623
Methodtest_template_decorator_wildcard_param
(self)
tests/server/providers/test_local_provider_resources.py:182
Methodtest_template_decorator_wildcard_param
(self)
tests/server/providers/test_local_provider_resources.py:657
Methodtest_template_decorator_with_description
(self)
tests/server/providers/test_local_provider_resources.py:571
Methodtest_template_decorator_with_meta
Test that meta parameter is passed through the template decorator.
tests/server/providers/test_local_provider_resources.py:669
Methodtest_template_decorator_with_name
(self)
tests/server/providers/test_local_provider_resources.py:557
Methodtest_template_decorator_with_tags
(self)
tests/server/providers/test_local_provider_resources.py:171
Methodtest_template_decorator_with_tags
Test that the template decorator properly sets tags.
tests/server/providers/test_local_provider_resources.py:645
Methodtest_template_disabled
(self)
tests/server/providers/test_local_provider_resources.py:981
Methodtest_template_enabled_false
Template with enabled=False should add a Visibility transform.
tests/server/providers/test_local_provider.py:469
Methodtest_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:488
Methodtest_template_enabled_false_skips_registration
(self)
tests/contrib/test_mcp_mixin.py:674
Methodtest_template_errors_are_sent_to_client
(self)
tests/client/client/test_error_handling.py:189
Methodtest_template_has_template_prefix
Test that ResourceTemplate has 'template' KEY_PREFIX.
tests/utilities/test_components.py:211
Methodtest_template_icons
Test that resource template icons are extracted.
tests/utilities/test_inspect_icons.py:126
Methodtest_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:838
Methodtest_template_matches
Test matching URIs against a template.
tests/resources/test_resource_template.py:44
Methodtest_template_matches_with_prefix
Test matching URIs against a template with a prefix.
tests/resources/test_resource_template.py:64
← previousnext →14,401–14,500 of 15,974, ranked by callers