MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

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:149
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_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_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
Methodtest_tool_version_zero_is_truthy
Version 0 should become "0" (truthy string), not empty.
tests/server/versioning/test_versioning.py:235
Methodtest_tool_versions_in_meta
Each version has its own version in metadata.
tests/server/versioning/test_calls.py:97
Methodtest_tool_visible_rejection_before_handler_still_spans
A tool-visible error raised in middleware is returned as an error result (correct MCP semantics, so the span status is unset), but the
tests/server/telemetry/test_server_tracing.py:547
Methodtest_tool_visible_to_model
(self)
tests/apps/test_choice.py:17
Methodtest_tool_visible_to_model
(self)
tests/apps/test_approval.py:26
Methodtest_tool_with_all_metadata
@tool with all metadata should store it all.
tests/tools/test_standalone_decorator.py:95
Methodtest_tool_with_annotated_arguments
Test that tools with annotated arguments work correctly.
tests/server/providers/local_provider_tools/test_decorator.py:227
Methodtest_tool_with_app_roundtrip
App metadata flows through to clients — no server-side stripping.
tests/test_apps.py:528
Methodtest_tool_with_audio_return
(self)
tests/tools/tool/test_tool.py:245
Methodtest_tool_with_auth
(self)
tests/test_fastmcp_app.py:154
Methodtest_tool_with_auth_hidden_without_token
(self)
tests/server/auth/test_authorization.py:455
Methodtest_tool_with_auth_visible_with_token
(self)
tests/server/auth/test_authorization.py:466
Functiontest_tool_with_boolean_exclusive_bound_is_callable
()
tests/utilities/openapi/test_exclusive_bounds.py:76
Methodtest_tool_with_both_name_args_raises
@tool should raise if both positional and keyword name are given.
tests/tools/test_standalone_decorator.py:179
Methodtest_tool_with_bytes_input
(self)
tests/server/providers/local_provider_tools/test_parameters.py:97
Methodtest_tool_with_description
(self)
tests/test_fastmcp_app.py:147
Methodtest_tool_with_empty_parens
@tool() with empty parentheses should attach metadata.
tests/tools/test_standalone_decorator.py:59
Methodtest_tool_with_execution_field
Test that Tool can store and return execution metadata.
tests/tools/tool/test_tool.py:674
Methodtest_tool_with_field_defaults
Test that tools with annotated arguments work correctly.
tests/server/providers/local_provider_tools/test_decorator.py:243
Methodtest_tool_with_file_return
(self)
tests/tools/tool/test_tool.py:256
Methodtest_tool_with_icons
Test that tools can have icons.
tests/server/test_icons.py:57
Methodtest_tool_with_image_return
(self)
tests/tools/tool/test_tool.py:234
Methodtest_tool_with_invalid_input
(self)
tests/server/providers/local_provider_tools/test_parameters.py:111
Methodtest_tool_with_keyword_capable_parameters
(self)
tests/tools/tool/test_tool.py:468
Functiontest_tool_with_logging
Sends log notifications during execution.
tests/conformance/server.py:155
Methodtest_tool_with_name_arg
@tool("name") with name as first arg should work.
tests/tools/test_standalone_decorator.py:71
Methodtest_tool_with_name_kwarg
@tool(name="name") with keyword arg should work.
tests/tools/test_standalone_decorator.py:83
Methodtest_tool_with_output_schema
Test that output_schema is properly extracted and included.
tests/utilities/test_inspect_icons.py:509
Methodtest_tool_with_positional_only_parameters_not_allowed
(self)
tests/tools/tool/test_tool.py:455
Functiontest_tool_with_progress
Reports progress notifications.
tests/conformance/server.py:166
Methodtest_tool_with_scope_auth_hidden_without_scope
(self)
tests/server/auth/test_authorization.py:483
Methodtest_tool_with_scope_auth_visible_with_scope
(self)
tests/server/auth/test_authorization.py:499
Functiontest_tool_with_task
Gathers input over MRTR, then escalates the final round to a task. The composition is the point: round 1 is a plain `InputRequiredResult` wit
tests/conformance/server.py:707
Methodtest_tool_with_timeout
(self)
tests/test_fastmcp_app.py:162
Methodtest_tool_with_title
Test that tools can have titles and they appear in MCP conversion.
tests/tools/tool/test_title.py:14
Methodtest_tool_with_title_and_meta
Test that title (via annotations) and meta arguments are properly passed through.
tests/contrib/test_mcp_mixin.py:277
Methodtest_tool_with_varargs_not_allowed
(self)
tests/tools/tool/test_tool.py:445
← previousnext →14,801–14,900 of 15,974, ranked by callers