MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_prompt
(name: str, greeting: str = "Hello")
tests/server/providers/test_local_provider_prompts.py:119
Methodtest_prompt
(self)
tests/server/providers/test_local_provider_prompts.py:153
Methodtest_prompt
(message: str)
tests/prompts/test_prompt.py:637
Methodtest_prompt_added_to_server
Prompt created by @prompt should work when added to a server.
tests/prompts/test_standalone_decorator.py:139
Functiontest_prompt_argument_completion_returns_candidates
(completion_server, mode)
tests/server/test_completions.py:59
Methodtest_prompt_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:538
Methodtest_prompt_completes_with_responses
Answering the ask renders the prompt on the next round.
tests/server/test_mrtr_guards_components.py:96
Methodtest_prompt_context
(self)
tests/server/providers/test_local_provider_prompts.py:16
Methodtest_prompt_context_with_callable_object
(self)
tests/server/providers/test_local_provider_prompts.py:30
Methodtest_prompt_decorator
(self)
tests/server/providers/test_local_provider_prompts.py:52
Methodtest_prompt_decorator_async_function
(self)
tests/server/providers/test_local_provider_prompts.py:209
Methodtest_prompt_decorator_classmethod
(self)
tests/server/providers/test_local_provider_prompts.py:165
Methodtest_prompt_decorator_classmethod_error
(self)
tests/server/providers/test_local_provider_prompts.py:183
Methodtest_prompt_decorator_conflicting_names_error
Test that providing both positional and keyword names raises an error.
tests/server/providers/test_local_provider_prompts.py:283
Methodtest_prompt_decorator_delegates_to_local_provider
Test that @mcp.prompt registers with the local provider.
tests/server/test_server.py:81
Methodtest_prompt_decorator_instance_method
(self)
tests/server/providers/test_local_provider_prompts.py:146
Methodtest_prompt_decorator_registers
Prompt decorator should register in _components.
tests/server/providers/test_local_provider.py:520
Methodtest_prompt_decorator_staticmethod
(self)
tests/server/providers/test_local_provider_prompts.py:194
Methodtest_prompt_decorator_staticmethod_order
Test that both decorator orders work for static methods
tests/server/providers/test_local_provider_prompts.py:296
Methodtest_prompt_decorator_with_description
(self)
tests/server/providers/test_local_provider_prompts.py:99
Methodtest_prompt_decorator_with_meta
Test that meta parameter is passed through the prompt decorator.
tests/server/providers/test_local_provider_prompts.py:312
Methodtest_prompt_decorator_with_name
(self)
tests/server/providers/test_local_provider_prompts.py:83
Methodtest_prompt_decorator_with_parameters
(self)
tests/server/providers/test_local_provider_prompts.py:115
Methodtest_prompt_decorator_with_string_name
Test that @prompt(\"custom_name\") syntax works correctly.
tests/server/providers/test_local_provider_prompts.py:235
Methodtest_prompt_decorator_with_tags
Test that the prompt decorator properly sets tags.
tests/server/providers/test_local_provider_prompts.py:222
Methodtest_prompt_decorator_without_parentheses
(self)
tests/server/providers/test_local_provider_prompts.py:68
Functiontest_prompt_dependency_cannot_be_overridden_externally
Test that external callers cannot override prompt dependencies. This is a security test - dependencies should NEVER be overridable from outsi
tests/server/test_dependencies.py:612
Methodtest_prompt_direct_function_call
Test that prompts can be registered via direct function call.
tests/server/providers/test_local_provider_prompts.py:253
Methodtest_prompt_disabled
(self)
tests/server/providers/test_local_provider_prompts.py:349
Methodtest_prompt_emits_input_required
The asking round reaches the wire as an InputRequiredResult.
tests/server/test_mrtr_guards_components.py:86
Methodtest_prompt_enable_raises_not_implemented
Test that Prompt.enable() raises NotImplementedError.
tests/utilities/test_components.py:311
Methodtest_prompt_enabled_false
Prompt with enabled=False should add a Visibility transform.
tests/server/providers/test_local_provider.py:541
Methodtest_prompt_enabled_false_not_listed
Disabled prompt should not appear in get_prompts (filtering at server level).
tests/server/providers/test_local_provider.py:560
Methodtest_prompt_enabled_false_skips_registration
(self)
tests/contrib/test_mcp_mixin.py:450
Functiontest_prompt_error_message_reaches_client
A PromptError's message must reach the wire on every era.
tests/server/test_protocol_eras.py:449
Methodtest_prompt_error_with_custom_log_level
PromptError with custom log_level should log at specified level.
tests/client/client/test_error_handling.py:373
Methodtest_prompt_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 prompt.
tests/server/versioning/test_visibility_version_fallback.py:338
Methodtest_prompt_from_function_with_icons
Test creating a prompt from a function with icons.
tests/server/test_icons.py:237
Methodtest_prompt_function_still_callable
Decorated function should still be directly callable.
tests/prompts/test_standalone_decorator.py:92
Methodtest_prompt_guard_rejected_on_handshake_era
The result type only exists at 2026-07-28, so an older connection gets the era named rather than a generic invalid-result failure.
tests/server/test_mrtr_guards_components.py:115
Methodtest_prompt_has_prompt_prefix
Test that Prompt has 'prompt' KEY_PREFIX.
tests/utilities/test_components.py:216
Methodtest_prompt_icons
Test that prompt icons are extracted.
tests/utilities/test_inspect_icons.py:163
Methodtest_prompt_key_property
Test that Prompt.key returns prefixed key with version sentinel.
tests/utilities/test_components.py:226
Methodtest_prompt_meta_parameter
Test that meta parameter is properly handled.
tests/prompts/test_prompt.py:634
Methodtest_prompt_middleware_three_levels
Middleware runs at parent, child, and grandchild levels for prompts.
tests/server/providers/test_fastmcp_provider.py:376
Methodtest_prompt_mixing_rejected
Cannot mix versioned and unversioned prompts with the same name.
tests/server/versioning/test_calls.py:33
Methodtest_prompt_not_found_uses_invalid_params
(self)
tests/test_exceptions.py:89
Methodtest_prompt_prefixes_preserved_after_cache_hit
Prompt names should retain prefix after being served from cache.
tests/server/middleware/test_caching.py:834
Methodtest_prompt_registration
Test prompt registration with prefix and separator variations.
tests/contrib/test_mcp_mixin.py:152
Methodtest_prompt_rejects_classmethod_decorator
@prompt should reject classmethod-decorated functions.
tests/prompts/test_standalone_decorator.py:121
Methodtest_prompt_roundtrip
Prompt should execute correctly via Client.
tests/server/providers/test_local_provider.py:579
Methodtest_prompt_span_includes_auth_attributes_when_authenticated
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:279
Methodtest_prompt_tags_in_meta
Test that prompt tags appear in meta under fastmcp key.
tests/server/test_server.py:344
Methodtest_prompt_toggle_disabled
(self)
tests/server/providers/test_local_provider_prompts.py:375
Methodtest_prompt_toggle_enabled
(self)
tests/server/providers/test_local_provider_prompts.py:360
Methodtest_prompt_valid_kwargs_match_from_function
(self)
tests/contrib/test_mcp_mixin.py:368
Methodtest_prompt_versions_in_meta
Each version has its own version in metadata.
tests/server/versioning/test_calls.py:139
Methodtest_prompt_with_all_metadata
@prompt with all metadata should store it all.
tests/prompts/test_standalone_decorator.py:70
Functiontest_prompt_with_arguments
A prompt that accepts arguments.
tests/conformance/server.py:804
Methodtest_prompt_with_both_name_args_raises
@prompt should raise if both positional and keyword name are given.
tests/prompts/test_standalone_decorator.py:131
Functiontest_prompt_with_context_and_dependency
Test that prompts can use both Context and Depends.
tests/server/test_dependencies.py:310
Methodtest_prompt_with_custom_name_registers
Prompt with custom name should register under that name.
tests/server/providers/test_local_provider.py:530
Functiontest_prompt_with_dependency
Test that prompts support dependency injection.
tests/server/test_dependencies.py:292
Functiontest_prompt_with_embedded_resource
A prompt that returns an embedded resource.
tests/conformance/server.py:810
Methodtest_prompt_with_empty_parens
@prompt() with empty parentheses should attach metadata.
tests/prompts/test_standalone_decorator.py:34
Methodtest_prompt_with_icons
Test that prompts can have icons.
tests/server/test_icons.py:220
Functiontest_prompt_with_image
A prompt that returns an image.
tests/conformance/server.py:827
Methodtest_prompt_with_name_arg
@prompt("name") with name as first arg should work.
tests/prompts/test_standalone_decorator.py:46
Methodtest_prompt_with_name_kwarg
@prompt(name="name") with keyword arg should work.
tests/prompts/test_standalone_decorator.py:58
Methodtest_prompt_with_title_and_meta
Test that title and meta arguments are properly passed through for prompts.
tests/contrib/test_mcp_mixin.py:325
Methodtest_prompt_with_version
Prompt version should work like tool version.
tests/server/versioning/test_versioning.py:345
Methodtest_prompt_without_icons
Test that prompts work without icons.
tests/server/test_icons.py:252
Methodtest_prompt_without_parens
@prompt without parentheses should attach metadata.
tests/prompts/test_standalone_decorator.py:21
Methodtest_promptresult_from_message_list
Test PromptResult accepts list of Messages.
tests/prompts/test_prompt.py:739
Methodtest_promptresult_from_string
Test PromptResult accepts string and wraps as Message.
tests/prompts/test_prompt.py:729
Methodtest_promptresult_rejects_dict
Test PromptResult rejects dict.
tests/prompts/test_prompt.py:756
Methodtest_promptresult_rejects_single_message
Test PromptResult rejects single Message (must be in list).
tests/prompts/test_prompt.py:751
Methodtest_promptresult_to_mcp
Test conversion to MCP GetPromptResult.
tests/prompts/test_prompt.py:773
Methodtest_promptresult_with_description
Test PromptResult with description field.
tests/prompts/test_prompt.py:768
Methodtest_promptresult_with_meta
Test PromptResult with meta field.
tests/prompts/test_prompt.py:761
Methodtest_prompts_constant_cursor_terminates
list_prompts should stop if the server always returns the same cursor.
tests/server/test_pagination.py:433
Methodtest_prompts_filtered
Prompts are filtered by version.
tests/server/versioning/test_filtering.py:294
Methodtest_prompts_list_carries_hint
(self)
tests/server/test_cache_hints.py:89
Methodtest_prompts_pagination_returns_all_prompts
Client should receive all prompts across paginated requests.
tests/server/test_pagination.py:290
Methodtest_prompts_raises_on_auto_pagination_limit
list_prompts should raise RuntimeError after exceeding max_pages.
tests/server/test_pagination.py:618
Functiontest_propagated_interceptor_runs_once_with_root_configuration
(enabled: bool)
tests/server/test_provider_extensions.py:673
Methodtest_propagates_to_server
(self)
tests/server/auth/test_multi_auth.py:671
Methodtest_propagates_to_verifiers
(self)
tests/server/auth/test_multi_auth.py:682
Methodtest_propagation_only_parents_downstream_user_spans
( self, mode, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:203
Methodtest_propagation_only_still_injects
( self, mode, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:190
Methodtest_propagation_only_without_incoming_trace
With no surrounding client span there is no incoming trace. The call must still succeed and emit no FastMCP spans.
tests/telemetry/test_interop.py:236
Methodtest_properties_none_after_disconnect
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:289
Methodtest_properties_none_before_connect
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:282
Methodtest_properties_with_additional_accepts_extra_fields
Test that BaseModel with extra='allow' accepts additional properties
tests/utilities/json_schema_type/test_advanced.py:712
Methodtest_properties_with_additional_returns_basemodel
Test that schema with properties + additionalProperties=True returns BaseModel
tests/utilities/json_schema_type/test_advanced.py:706
Methodtest_properties_with_additional_validates_known_fields
Test that BaseModel still validates known fields
tests/utilities/json_schema_type/test_advanced.py:735
Methodtest_properties_without_additional_ignores_extra_fields
Test that dataclass ignores extra properties (current behavior)
tests/utilities/json_schema_type/test_advanced.py:758
Methodtest_properties_without_additional_is_dataclass
Test that schema with properties but no additionalProperties returns dataclass
tests/utilities/json_schema_type/test_advanced.py:751
Methodtest_property_level_defaults
(self)
tests/utilities/json_schema_type/test_advanced.py:411
Methodtest_property_level_nullable_enum
Test nullable enum in object properties.
tests/utilities/openapi/test_nullable_fields.py:318
← previousnext →10,501–10,600 of 13,374, ranked by callers