MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,224 in github.com/PrefectHQ/fastmcp

Functiontest_tool_inherits_server_default_false
A tool inherits the server's tasks=False default and runs synchronously.
tests/tasks/server/test_server_tasks_parameter.py:43
Functiontest_tool_inherits_server_default_true
A tool inherits the server's tasks=True default and tasks when opted in.
tests/tasks/server/test_server_tasks_parameter.py:29
Methodtest_tool_input_schema_bridged
(self)
tests/test_compat.py:45
Methodtest_tool_int_coercion
Test that string ints are coerced by default.
tests/server/providers/local_provider_tools/test_parameters.py:126
Functiontest_tool_json_preserves_resource
()
tests/cli/test_content_json.py:108
Methodtest_tool_json_schema_generation
Verify Tool.model_json_schema() works without errors.
tests/test_json_schema_generation.py:18
Methodtest_tool_key_property
Test that Tool.key returns prefixed key with version sentinel.
tests/utilities/test_components.py:221
Methodtest_tool_list_changed_evicts
A `notifications/tools/list_changed` routed through the composed message handler evicts the cached tools/list entry.
tests/client/client/test_response_cache.py:119
Methodtest_tool_middleware_three_levels
Middleware runs at parent, child, and grandchild levels for tools.
tests/server/providers/test_fastmcp_provider.py:305
Methodtest_tool_mixed_content
(self, tool_server: FastMCP)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:172
Methodtest_tool_mixed_list_with_audio
Test that lists containing Audio objects and other types are handled correctly. Items now preserve their original order.
tests/server/providers/local_provider_tools/test_local_provider_tools.py:220
Methodtest_tool_mixed_list_with_file
Test that lists containing File objects and other types are handled correctly. Items now preserve their original order.
tests/server/providers/local_provider_tools/test_local_provider_tools.py:247
Methodtest_tool_mixed_list_with_image
Test that lists containing Image objects and other types are handled correctly. Items now preserve their original order.
tests/server/providers/local_provider_tools/test_local_provider_tools.py:193
Methodtest_tool_model_visibility
(self)
tests/test_fastmcp_app.py:135
Functiontest_tool_name_collisions_are_rejected
()
tests/client/group/test_client_group.py:243
Methodtest_tool_name_conflict_raises
(self)
tests/test_fastmcp_app.py:80
Methodtest_tool_name_derived_from_model
(self)
tests/apps/test_form.py:40
Functiontest_tool_name_falls_back_to_method_and_path
(operation: dict[str, Any])
tests/server/providers/openapi/test_default_names.py:34
Methodtest_tool_name_is_shell_quoted_in_invocation
(self)
tests/cli/test_generate_cli.py:979
Methodtest_tool_name_kwarg
(self)
tests/test_fastmcp_app.py:71
Methodtest_tool_name_newlines_are_flattened_in_heading
(self)
tests/cli/test_generate_cli.py:1002
Methodtest_tool_name_too_long_warns
Tool names exceeding 128 characters should produce a warning.
tests/tools/tool/test_tool.py:635
Methodtest_tool_name_with_invalid_chars_warns
Tool names with invalid characters should produce a warning.
tests/tools/tool/test_tool.py:624
Methodtest_tool_name_with_leading_dash_warns
Tool names starting with dash should produce a warning.
tests/tools/tool/test_tool.py:647
Methodtest_tool_name_with_spaces_warns
Tool names with spaces should produce a warning.
tests/tools/tool/test_tool.py:613
Functiontest_tool_named_like_a_script_global
(name: str)
tests/cli/test_generate_cli_tool_names.py:12
Methodtest_tool_names_override_applied_in_list_tools
Test that tool_names override is reflected in list_tools().
tests/server/mount/test_advanced.py:414
Methodtest_tool_names_override_via_transforms
Test that tool_names renames tools via ToolTransform layer. Tool renames are applied first, then namespace prefixing. So original_too
tests/server/mount/test_advanced.py:386
Methodtest_tool_not_found_falls_through_to_static
Test that unknown tool name falls through to static tools.
tests/server/test_providers.py:273
Functiontest_tool_not_ignored_is_callable_by_hashed_name
()
tests/cli/test_fastmcp_remote.py:323
Functiontest_tool_only_server_transform_keeps_discovery
The 4.2 recipe: a skills directory plus ResourcesAsTools for tool-only clients.
tests/skills/test_composition.py:145
Functiontest_tool_only_server_transform_keeps_mounted_skills
()
tests/skills/test_composition.py:163
Methodtest_tool_output_schema_bridged
(self)
tests/test_compat.py:50
Methodtest_tool_output_with_any_title
(self, title: str)
tests/utilities/json_schema_type/test_generated_classes.py:163
Methodtest_tool_output_with_reserved_property_names
(self)
tests/utilities/json_schema_type/test_generated_classes.py:179
Methodtest_tool_output_with_self_reference
(self)
tests/utilities/json_schema_type/test_generated_classes.py:147
Methodtest_tool_prefixes_preserved_after_cache_hit
Tool names should retain prefix after being served from cache.
tests/server/middleware/test_caching.py:841
Methodtest_tool_raised_tool_error_logs_without_traceback
(self, caplog)
tests/server/test_input_validation.py:755
Methodtest_tool_registers_in_provider
(self)
tests/test_fastmcp_app.py:89
Methodtest_tool_registration
Test tool registration with prefix and separator variations.
tests/contrib/test_mcp_mixin.py:61
Methodtest_tool_rejects_classmethod_decorator
@tool should reject classmethod-decorated functions.
tests/tools/test_standalone_decorator.py:169
Methodtest_tool_rename
Test tool renaming with ToolTransform.
tests/server/providers/test_transforming_provider.py:88
Functiontest_tool_resolves_annotated_dependency_outside_its_schema
()
tests/server/test_annotated_dependencies.py:20
Functiontest_tool_result_images_reject_unsupported_sdk
(monkeypatch, missing)
tests/client/sampling/handlers/test_google_genai_handler.py:505
Methodtest_tool_result_passthrough
ToolResult without prefab structured_content passes through unchanged.
tests/test_apps_prefab.py:92
Methodtest_tool_result_preserves_invalid_schema_default
(self)
tests/utilities/json_schema_type/test_advanced.py:225
Methodtest_tool_result_return_annotation_no_output_schema
(self)
tests/tools/tool/test_output_schema.py:136
Methodtest_tool_result_structured_content_rejects_non_finite
(self)
tests/tools/tool/test_nonfinite_serialization.py:156
Methodtest_tool_result_subclass_return_annotation_no_output_schema
(self)
tests/tools/tool/test_output_schema.py:150
Methodtest_tool_result_with_component_structured_content
ToolResult with bare Component as structured_content.
tests/test_apps_prefab.py:78
Methodtest_tool_result_with_prefab_structured_content
ToolResult with PrefabApp as structured_content preserves custom text.
tests/test_apps_prefab.py:62
Methodtest_tool_roundtrip
Tool should execute correctly via Client.
tests/server/providers/test_local_provider.py:397
Methodtest_tool_run_by_call_tool
(self, server: FastMCP)
tests/server/test_context.py:540
Methodtest_tool_schema_generation
Test that tools have correct input schemas.
tests/server/providers/openapi/test_end_to_end_compatibility.py:99
Functiontest_tool_schema_structure
Test tool schema structure
examples/testing_demo/tests/test_server.py:149
Functiontest_tool_schemas_use_the_referenced_property
The pointer used to be cut to its last segment, so it named a `status` definition: missing, or an unrelated component of that name.
tests/server/providers/openapi/test_component_property_refs.py:77
Methodtest_tool_sections
(self)
tests/cli/test_generate_cli.py:831
Methodtest_tool_serializer_kwarg_removed
(self)
tests/test_upgrade_from_v3.py:300
Methodtest_tool_span_includes_auth_attributes_when_authenticated
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:225
Methodtest_tool_still_created_despite_warnings
Tools with invalid names should still be created (SHOULD not MUST).
tests/tools/tool/test_tool.py:658
Methodtest_tool_sync_execution_works
A tool called without opting in works through the proxy.
tests/tasks/server/test_task_proxy.py:66
Methodtest_tool_tagged_by_transform_is_allowed_with_scope
(self)
tests/server/auth/test_authorization.py:1578
Methodtest_tool_tagged_by_transform_is_denied_without_scope
(self)
tests/server/auth/test_authorization.py:1566
Methodtest_tool_tags_in_meta
Test that tool tags appear in meta under fastmcp key.
tests/server/test_server.py:284
Functiontest_tool_task_await_syntax
(tool_task_server: FastMCP)
tests/tasks/client/test_client_tool_tasks.py:61
Functiontest_tool_task_cancel
A long-running task can be cancelled through the handle.
tests/tasks/client/test_client_tool_tasks.py:120
Functiontest_tool_task_executes_in_background
A submitted task runs in the background and can be polled to completion.
tests/tasks/server/test_task_tools.py:301
Functiontest_tool_task_result_is_cached
Repeated result() calls return the same cached object without re-polling.
tests/tasks/client/test_client_tool_tasks.py:80
Functiontest_tool_task_result_returns_parsed_result
(tool_task_server: FastMCP)
tests/tasks/client/test_client_tool_tasks.py:54
Functiontest_tool_task_returns_metadata_immediately
Submitting a task returns task metadata with a server-generated id.
tests/tasks/server/test_task_tools.py:290
Functiontest_tool_task_status_and_wait
(tool_task_server: FastMCP)
tests/tasks/client/test_client_tool_tasks.py:68
Methodtest_tool_timeout_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:550
Methodtest_tool_title_priority
Test that explicit title takes priority over annotations.title.
tests/tools/tool/test_title.py:88
Methodtest_tool_toggle_disabled
(self)
tests/server/providers/local_provider_tools/test_enabled.py:91
Methodtest_tool_toggle_enabled
(self)
tests/server/providers/local_provider_tools/test_enabled.py:79
Functiontest_tool_transform_chaining
Test that transformed tools can be transformed again.
tests/tools/tool_transform/test_args.py:36
Functiontest_tool_transform_config_enabled_defaults_to_true
Test that enabled defaults to True and no visibility metadata is set.
tests/tools/tool_transform/test_metadata.py:215
Functiontest_tool_transform_config_enabled_false_hides_tool
Test that ToolTransformConfig with enabled=False hides the tool from list_tools.
tests/server/test_tool_transformation.py:131
Functiontest_tool_transform_config_enabled_false_merges_with_config_meta
Test that enabled=False works with explicit meta override.
tests/tools/tool_transform/test_metadata.py:270
Functiontest_tool_transform_config_enabled_false_preserves_existing_meta
Test that enabled=False preserves existing meta while adding visibility.
tests/tools/tool_transform/test_metadata.py:255
Functiontest_tool_transform_config_enabled_false_sets_visibility_metadata
Test that enabled=False sets visibility metadata to hide the tool.
tests/tools/tool_transform/test_metadata.py:226
Functiontest_tool_transform_config_enabled_false_with_rename
Test that enabled=False works together with other transformations like rename.
tests/server/test_tool_transformation.py:155
Functiontest_tool_transform_config_enabled_true_explicit_sets_visibility
Test that enabled=True explicitly sets visibility metadata to allow overriding earlier disables.
tests/tools/tool_transform/test_metadata.py:241
Functiontest_tool_transform_config_enabled_true_keeps_tool_visible
Test that ToolTransformConfig with enabled=True (explicit) keeps the tool visible.
tests/server/test_tool_transformation.py:178
Functiontest_tool_transform_config_enabled_true_overrides_earlier_disable
Test that ToolTransformConfig with enabled=True can re-enable a previously disabled tool.
tests/server/test_tool_transformation.py:195
Functiontest_tool_transform_config_inherits_meta
Test that ToolTransformConfig inherits meta when unset.
tests/tools/tool_transform/test_metadata.py:149
Functiontest_tool_transform_config_overrides_meta
Test that ToolTransformConfig can override meta.
tests/tools/tool_transform/test_metadata.py:157
Functiontest_tool_transform_config_removes_meta
Test that ToolTransformConfig can remove meta with None.
tests/tools/tool_transform/test_metadata.py:167
Functiontest_tool_transform_config_that_cannot_apply_hides_only_its_tool
()
tests/server/test_tool_transformation.py:309
Functiontest_tool_transform_config_version_is_callable_by_new_version
A tool re-versioned by a transform is called by the version it is listed under.
tests/server/test_tool_transformation.py:220
Functiontest_tool_transform_config_version_keeps_matching_source
A source whose own version matches the request is still the one called.
tests/server/test_tool_transformation.py:263
Functiontest_tool_transform_config_version_satisfies_outer_version_filter
A VersionFilter above the transform sees the transformed version.
tests/server/test_tool_transformation.py:244
Functiontest_tool_transform_that_cannot_apply_frees_its_new_name
()
tests/server/test_tool_transformation.py:340
Functiontest_tool_transform_without_version_keeps_requested_version
A transform that doesn't set a version still resolves the requested version.
tests/server/test_tool_transformation.py:282
Functiontest_tool_transformation_via_layer
Test that tool transformations work via add_transform(ToolTransform(...)).
tests/server/test_tool_transformation.py:14
Methodtest_tool_valid_kwargs_match_from_function
(self)
tests/contrib/test_mcp_mixin.py:401
Methodtest_tool_version_as_int
Tool version as int should be coerced to string.
tests/server/versioning/test_versioning.py:222
Methodtest_tool_version_dict_rejected
Tool with version={'major': 1} should raise TypeError.
tests/server/versioning/test_versioning.py:391
Methodtest_tool_version_list_rejected
Tool with version=[1, 2] should raise TypeError.
tests/server/versioning/test_versioning.py:382
Methodtest_tool_version_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:562
← previousnext →15,001–15,100 of 16,224, ranked by callers