MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_tool
A test tool.
tests/utilities/test_inspect_icons.py:371
Methodtest_tool
()
tests/utilities/test_inspect.py:244
Methodtest_tool
()
tests/utilities/test_inspect.py:543
Methodtest_tool
()
tests/server/test_session_visibility.py:320
Methodtest_tool
(self)
tests/server/middleware/test_caching_guards.py:90
Methodtest_tool
(message: str)
tests/server/auth/test_oauth_mounting.py:130
Methodtest_tool
()
tests/server/auth/test_enhanced_error_responses.py:681
Methodtest_tool_added_after_first_call_is_reachable
Tools added to an already-mounted app after the first call are still reachable via their hashed name — get_tool_by_hash does a live wa
tests/server/providers/test_prefab_roundtrip.py:642
Methodtest_tool_added_to_server
Tool created by @tool should work when added to a server.
tests/tools/test_standalone_decorator.py:187
Methodtest_tool_annotations_bridged
(self, camel, snake, value)
tests/test_compat.py:68
Functiontest_tool_annotations_in_client_api
Test that tool annotations are correctly accessible via client API.
tests/server/test_tool_annotations.py:60
Functiontest_tool_annotations_in_mcp_protocol
Test that tool annotations are correctly propagated to MCP tools list.
tests/server/test_tool_annotations.py:36
Functiontest_tool_annotations_in_tool_manager
Test that tool annotations are correctly stored in the tool manager.
tests/server/test_tool_annotations.py:12
Methodtest_tool_annotations_title_fallback
Test that annotations.title is used when no explicit title is provided.
tests/tools/tool/test_title.py:112
Methodtest_tool_auth_allows_injected_tool_with_scope
(self)
tests/server/middleware/test_tool_injection.py:343
Methodtest_tool_auth_denies_injected_tool_call_without_scope
(self)
tests/server/middleware/test_tool_injection.py:336
Methodtest_tool_auth_hides_injected_tool_without_scope
(self)
tests/server/middleware/test_tool_injection.py:328
Methodtest_tool_auth_on_injected_tool_matches_registered_tool
An injected tool and a registered tool with the same auth agree.
tests/server/middleware/test_tool_injection.py:353
Methodtest_tool_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:484
Methodtest_tool_bare_decorator
(self)
tests/test_fastmcp_app.py:44
Methodtest_tool_bool_coercion
Test that string bools are coerced by default.
tests/server/providers/local_provider_tools/test_parameters.py:137
Methodtest_tool_call_emits_single_server_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:369
Functiontest_tool_call_fails_when_parameter_map_cannot_be_built
( monkeypatch: pytest.MonkeyPatch, )
tests/server/providers/openapi/test_undeclared_arguments.py:134
Methodtest_tool_call_filtering
Test tool filtering logic.
tests/server/middleware/test_caching.py:279
Methodtest_tool_call_returns_prefab_structured_content
(self)
tests/test_apps_prefab.py:380
Methodtest_tool_call_span_has_protocol_version
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:723
Methodtest_tool_call_with_custom_text
(self)
tests/test_apps_prefab.py:397
Methodtest_tool_call_with_overridden_name
Test that overridden tool can be called by its new name.
tests/server/mount/test_advanced.py:434
Methodtest_tool_calling_task_tool_gets_its_result
(self)
tests/tasks/server/test_task_catalog_transforms.py:144
Functiontest_tool_change_arg_description
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:155
Functiontest_tool_change_arg_name
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:144
Methodtest_tool_custom_name
(self)
tests/test_fastmcp_app.py:62
Methodtest_tool_custom_name_in_provider
(self)
tests/test_fastmcp_app.py:100
Methodtest_tool_decorator
(self)
tests/server/providers/local_provider_tools/test_decorator.py:50
Methodtest_tool_decorator_async_function
(self)
tests/server/providers/local_provider_tools/test_decorator.py:137
Methodtest_tool_decorator_classmethod
(self)
tests/server/providers/local_provider_tools/test_decorator.py:111
Methodtest_tool_decorator_classmethod_async_function
(self)
tests/server/providers/local_provider_tools/test_decorator.py:158
Methodtest_tool_decorator_classmethod_error
(self)
tests/server/providers/local_provider_tools/test_decorator.py:147
Methodtest_tool_decorator_conflicting_names_error
Test that providing both positional and keyword name raises an error.
tests/server/providers/local_provider_tools/test_decorator.py:303
Methodtest_tool_decorator_delegates_to_local_provider
Test that @mcp.tool registers with the local provider.
tests/server/test_server.py:56
Methodtest_tool_decorator_instance_method
(self)
tests/server/providers/local_provider_tools/test_decorator.py:96
Methodtest_tool_decorator_registers
Tool decorator should register in _components.
tests/server/providers/test_local_provider.py:306
Methodtest_tool_decorator_staticmethod
(self)
tests/server/providers/local_provider_tools/test_decorator.py:125
Methodtest_tool_decorator_staticmethod_async_function
(self)
tests/server/providers/local_provider_tools/test_decorator.py:172
Methodtest_tool_decorator_staticmethod_order
Test that the recommended decorator order works for static methods
tests/server/providers/local_provider_tools/test_decorator.py:184
Methodtest_tool_decorator_with_custom_name_registers
Tool with custom name should register under that name.
tests/server/providers/test_local_provider.py:317
Methodtest_tool_decorator_with_description
(self)
tests/server/providers/local_provider_tools/test_decorator.py:84
Methodtest_tool_decorator_with_meta
Test that meta parameter is passed through the tool decorator.
tests/server/providers/local_provider_tools/test_decorator.py:327
Methodtest_tool_decorator_with_name
(self)
tests/server/providers/local_provider_tools/test_decorator.py:74
Methodtest_tool_decorator_with_output_schema
(self)
tests/server/providers/local_provider_tools/test_decorator.py:316
Methodtest_tool_decorator_with_string_name
Test that @tool("custom_name") syntax works correctly.
tests/server/providers/local_provider_tools/test_decorator.py:287
Methodtest_tool_decorator_with_tags
Test that the tool decorator properly sets tags.
tests/server/providers/local_provider_tools/test_decorator.py:197
Methodtest_tool_decorator_with_tags
Test that the tool decorator properly sets tags.
tests/server/providers/local_provider_tools/test_context.py:113
Methodtest_tool_decorator_without_parentheses
Test that @tool decorator works without parentheses.
tests/server/providers/local_provider_tools/test_decorator.py:60
Methodtest_tool_default_visibility_app_only
(self)
tests/test_fastmcp_app.py:123
Functiontest_tool_defaults_are_maintained_on_mapped_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:135
Functiontest_tool_defaults_are_maintained_on_unmapped_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:126
Methodtest_tool_direct_call
provider.tool(fn) should register the function.
tests/server/providers/test_local_provider.py:328
Methodtest_tool_direct_function_call
Test that tools can be registered via direct function call.
tests/server/providers/local_provider_tools/test_decorator.py:259
Methodtest_tool_disable_raises_not_implemented
Test that Tool.disable() raises NotImplementedError.
tests/utilities/test_components.py:304
Methodtest_tool_disabled_via_server
(self)
tests/server/providers/local_provider_tools/test_enabled.py:65
Functiontest_tool_drop_arg
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:162
Methodtest_tool_empty_parens
(self)
tests/test_fastmcp_app.py:53
Methodtest_tool_enable_raises_not_implemented
Test that Tool.enable() raises NotImplementedError.
tests/utilities/test_components.py:297
Methodtest_tool_enabled_false
Tool with enabled=False should add a Visibility transform.
tests/server/providers/test_local_provider.py:339
Methodtest_tool_enabled_false_not_listed
Disabled tool should not appear in get_tools (filtering happens at server level).
tests/server/providers/test_local_provider.py:358
Methodtest_tool_enabled_false_skips_registration
(self)
tests/contrib/test_mcp_mixin.py:414
Methodtest_tool_enabled_true_registers_normally
(self)
tests/contrib/test_mcp_mixin.py:468
Methodtest_tool_error_with_custom_log_level
ToolError with custom log_level should log at specified level.
tests/client/client/test_error_handling.py:283
Methodtest_tool_exclude_args_kwarg_removed
(self)
tests/test_upgrade_from_v3.py:309
Methodtest_tool_execution_forbidden_mode
Test that Tool can store forbidden execution mode.
tests/tools/tool/test_tool.py:649
Methodtest_tool_execution_parameter_mapping
Test that tool execution with collisions works correctly.
tests/server/providers/openapi/test_end_to_end_compatibility.py:165
Methodtest_tool_execution_required_mode
Test that Tool can store required execution mode.
tests/tools/tool/test_tool.py:636
Methodtest_tool_execution_with_serialization_alias
Test that tool execution works correctly with serialization aliases.
tests/tools/tool/test_results.py:236
Methodtest_tool_fallback_allows_authorized_user
Fallback should return auth-protected v1 to authorized users.
tests/server/versioning/test_visibility_version_fallback.py:281
Methodtest_tool_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 to unauthorized users.
tests/server/versioning/test_visibility_version_fallback.py:263
Methodtest_tool_filtering
Test that tool filtering only applies to specified tools.
tests/server/middleware/test_response_limiting.py:53
Methodtest_tool_from_function_with_icons
Test creating a tool from a function with icons.
tests/server/test_icons.py:76
Functiontest_tool_from_tool_no_change
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:38
Methodtest_tool_function_still_callable
Decorated function should still be directly callable.
tests/tools/test_standalone_decorator.py:144
Functiontest_tool_functionality_with_annotations
Test that tool functionality is preserved when using annotations.
tests/server/test_tool_annotations.py:197
Methodtest_tool_has_app_name_in_meta
(self)
tests/test_fastmcp_app.py:111
Methodtest_tool_has_output_schema
Test that tools have output schemas from response definitions.
tests/server/providers/openapi/test_openapi_features.py:408
Methodtest_tool_has_tool_prefix
Test that Tool has 'tool' KEY_PREFIX.
tests/utilities/test_components.py:201
Methodtest_tool_icons
Test that tool icons are extracted.
tests/utilities/test_inspect_icons.py:56
Methodtest_tool_inherits_poll_interval
Tool should inherit poll_interval from TaskConfig.
tests/tasks/server/test_task_config.py:319
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
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:229
← previousnext →12,301–12,400 of 13,374, ranked by callers