Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,224 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,224
◇
Types & classes
2,249
↳
Endpoints
189
Method
test_prompt_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 prompt.
tests/server/versioning/test_visibility_version_fallback.py:338
Method
test_prompt_from_function_with_icons
Test creating a prompt from a function with icons.
tests/server/test_icons.py:237
Method
test_prompt_function_still_callable
Decorated function should still be directly callable.
tests/prompts/test_standalone_decorator.py:92
Method
test_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
Function
test_prompt_handler_failure_remains_internal
( mode: Literal["auto", "legacy"], mask_error_details: bool, transform_errors: bool )
tests/server/middleware/test_error_handling.py:793
Method
test_prompt_has_prompt_prefix
Test that Prompt has 'prompt' KEY_PREFIX.
tests/utilities/test_components.py:216
Method
test_prompt_icons
Test that prompt icons are extracted.
tests/utilities/test_inspect_icons.py:163
Function
test_prompt_json_preserves_embedded_resource
( capsys: pytest.CaptureFixture[str], )
tests/cli/test_content_json.py:133
Method
test_prompt_key_property
Test that Prompt.key returns prefixed key with version sentinel.
tests/utilities/test_components.py:226
Method
test_prompt_meta_parameter
Test that meta parameter is properly handled.
tests/prompts/test_prompt.py:682
Method
test_prompt_middleware_three_levels
Middleware runs at parent, child, and grandchild levels for prompts.
tests/server/providers/test_fastmcp_provider.py:376
Method
test_prompt_mixing_rejected
Cannot mix versioned and unversioned prompts with the same name.
tests/server/versioning/test_calls.py:33
Method
test_prompt_not_found_uses_invalid_params
(self)
tests/test_exceptions.py:89
Method
test_prompt_prefixes_preserved_after_cache_hit
Prompt names should retain prefix after being served from cache.
tests/server/middleware/test_caching.py:881
Method
test_prompt_reaches_azure_not_the_consent_url
With the consent screen in the loop, prompt belongs on the Azure URL.
tests/server/auth/providers/test_azure.py:876
Method
test_prompt_registration
Test prompt registration with prefix and separator variations.
tests/contrib/test_mcp_mixin.py:152
Method
test_prompt_rejects_classmethod_decorator
@prompt should reject classmethod-decorated functions.
tests/prompts/test_standalone_decorator.py:121
Method
test_prompt_roundtrip
Prompt should execute correctly via Client.
tests/server/providers/test_local_provider.py:580
Method
test_prompt_sent_once_when_consent_disabled
Without the consent screen, authorize() returns the Azure URL directly.
tests/server/auth/providers/test_azure.py:912
Method
test_prompt_span_includes_auth_attributes_when_authenticated
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:281
Method
test_prompt_tagged_by_transform_is_denied_without_scope
(self)
tests/server/auth/test_authorization.py:1633
Method
test_prompt_tags_in_meta
Test that prompt tags appear in meta under fastmcp key.
tests/server/test_server.py:344
Method
test_prompt_toggle_disabled
(self)
tests/server/providers/test_local_provider_prompts.py:375
Method
test_prompt_toggle_enabled
(self)
tests/server/providers/test_local_provider_prompts.py:360
Method
test_prompt_valid_kwargs_match_from_function
(self)
tests/contrib/test_mcp_mixin.py:419
Method
test_prompt_versions_in_meta
Each version has its own version in metadata.
tests/server/versioning/test_calls.py:139
Method
test_prompt_with_all_metadata
@prompt with all metadata should store it all.
tests/prompts/test_standalone_decorator.py:70
Function
test_prompt_with_arguments
A prompt that accepts arguments.
tests/conformance/server.py:804
Method
test_prompt_with_both_name_args_raises
@prompt should raise if both positional and keyword name are given.
tests/prompts/test_standalone_decorator.py:131
Function
test_prompt_with_context_and_dependency
Test that prompts can use both Context and Depends.
tests/server/test_dependencies.py:310
Method
test_prompt_with_custom_name_registers
Prompt with custom name should register under that name.
tests/server/providers/test_local_provider.py:531
Function
test_prompt_with_dependency
Test that prompts support dependency injection.
tests/server/test_dependencies.py:292
Function
test_prompt_with_embedded_resource
A prompt that returns an embedded resource.
tests/conformance/server.py:810
Method
test_prompt_with_empty_parens
@prompt() with empty parentheses should attach metadata.
tests/prompts/test_standalone_decorator.py:34
Method
test_prompt_with_icons
Test that prompts can have icons.
tests/server/test_icons.py:220
Function
test_prompt_with_image
A prompt that returns an image.
tests/conformance/server.py:827
Method
test_prompt_with_name_arg
@prompt("name") with name as first arg should work.
tests/prompts/test_standalone_decorator.py:46
Method
test_prompt_with_name_kwarg
@prompt(name="name") with keyword arg should work.
tests/prompts/test_standalone_decorator.py:58
Method
test_prompt_with_title_and_meta
Test that title and meta arguments are properly passed through for prompts.
tests/contrib/test_mcp_mixin.py:325
Method
test_prompt_with_version
Prompt version should work like tool version.
tests/server/versioning/test_versioning.py:345
Method
test_prompt_without_icons
Test that prompts work without icons.
tests/server/test_icons.py:252
Method
test_prompt_without_parens
@prompt without parentheses should attach metadata.
tests/prompts/test_standalone_decorator.py:21
Method
test_promptresult_from_message_list
Test PromptResult accepts list of Messages.
tests/prompts/test_prompt.py:832
Method
test_promptresult_from_string
Test PromptResult accepts string and wraps as Message.
tests/prompts/test_prompt.py:822
Method
test_promptresult_rejects_dict
Test PromptResult rejects dict.
tests/prompts/test_prompt.py:849
Method
test_promptresult_rejects_single_message
Test PromptResult rejects single Message (must be in list).
tests/prompts/test_prompt.py:844
Method
test_promptresult_to_mcp
Test conversion to MCP GetPromptResult.
tests/prompts/test_prompt.py:866
Method
test_promptresult_with_description
Test PromptResult with description field.
tests/prompts/test_prompt.py:861
Method
test_promptresult_with_meta
Test PromptResult with meta field.
tests/prompts/test_prompt.py:854
Method
test_prompts_constant_cursor_terminates
list_prompts should stop if the server always returns the same cursor.
tests/server/test_pagination.py:433
Method
test_prompts_filtered
Prompts are filtered by version.
tests/server/versioning/test_filtering.py:338
Method
test_prompts_list_carries_hint
(self)
tests/server/test_cache_hints.py:89
Method
test_prompts_pagination_returns_all_prompts
Client should receive all prompts across paginated requests.
tests/server/test_pagination.py:290
Method
test_prompts_raises_on_auto_pagination_limit
list_prompts should raise RuntimeError after exceeding max_pages.
tests/server/test_pagination.py:618
Function
test_propagated_interceptor_runs_once_with_root_configuration
(enabled: bool)
tests/server/test_provider_extensions.py:673
Method
test_propagates_to_server
(self)
tests/server/auth/test_multi_auth.py:750
Method
test_propagates_to_verifiers
(self)
tests/server/auth/test_multi_auth.py:761
Method
test_propagation_only_parents_downstream_user_spans
( self, mode, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:203
Method
test_propagation_only_still_injects
( self, mode, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:190
Method
test_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
Method
test_properties_none_after_disconnect
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:289
Method
test_properties_none_before_connect
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:282
Method
test_properties_with_additional_accepts_extra_fields
Test that BaseModel with extra='allow' accepts additional properties
tests/utilities/json_schema_type/test_advanced.py:1351
Method
test_properties_with_additional_returns_basemodel
Test that schema with properties + additionalProperties=True returns BaseModel
tests/utilities/json_schema_type/test_advanced.py:1345
Method
test_properties_with_additional_validates_known_fields
Test that BaseModel still validates known fields
tests/utilities/json_schema_type/test_advanced.py:1374
Method
test_properties_without_additional_ignores_extra_fields
Test that dataclass ignores extra properties (current behavior)
tests/utilities/json_schema_type/test_advanced.py:1397
Method
test_properties_without_additional_is_dataclass
Test that schema with properties but no additionalProperties returns dataclass
tests/utilities/json_schema_type/test_advanced.py:1390
Method
test_property_level_defaults
(self)
tests/utilities/json_schema_type/test_advanced.py:1034
Method
test_property_level_nullable_enum
Test nullable enum in object properties.
tests/utilities/openapi/test_nullable_fields.py:318
Method
test_property_level_nullable_fields
Test nullable fields in properties.
tests/utilities/openapi/test_nullable_fields.py:40
Method
test_property_level_oneof_with_nullable
Test nullable handling with oneOf in properties.
tests/utilities/openapi/test_nullable_fields.py:243
Method
test_property_level_union_with_nullable
Test nullable handling with union types in properties.
tests/utilities/openapi/test_nullable_fields.py:169
Function
test_property_referencing_write_only_schema_is_excluded
( password: dict[str, Any], )
tests/server/providers/openapi/test_write_only_responses.py:299
Method
test_propertyless_variant_is_still_named
A variant adding no fields remains a legal discriminator value.
tests/server/providers/openapi/test_openapi_discriminator.py:258
Method
test_prose_without_sections_unchanged_no_params
(self)
tests/utilities/test_docstring_parsing.py:345
Method
test_protected_resource_metadata
(self, valid_oidc_configuration_dict)
tests/server/auth/providers/test_auth0_mcp.py:372
Method
test_protected_resource_metadata_endpoint_authorization_servers_field
Test that the protected resource metadata endpoint returns correct authorization_servers field.
tests/server/auth/test_remote_auth_provider.py:291
Method
test_protected_resource_metadata_endpoint_resource_field
Test that the protected resource metadata endpoint returns correct resource field.
tests/server/auth/test_remote_auth_provider.py:273
Method
test_protected_resource_metadata_endpoint_status_code
Test that the protected resource metadata endpoint returns 200.
tests/server/auth/test_remote_auth_provider.py:258
Method
test_protected_resource_metadata_points_at_base_url
(self)
tests/server/auth/test_issuer_url_identity.py:244
Method
test_protected_resource_metadata_points_at_issuer_url
(self)
tests/server/auth/test_issuer_url_identity.py:114
Method
test_protected_resource_metadata_points_at_issuer_url
(self)
tests/server/auth/test_issuer_url_identity.py:270
Method
test_protected_resource_metadata_preserves_authkit_issuer
( self, authkit_domain: str )
tests/server/auth/providers/test_workos.py:349
Method
test_protected_resource_metadata_serves_discovered_scopes
The protected resource metadata endpoint advertises discovered scopes.
tests/server/auth/providers/test_descope.py:592
Function
test_protected_routes_report_a_rejected_credential
()
tests/cli/deploy/test_horizon_client.py:216
Function
test_protected_routes_require_a_credential
()
tests/cli/deploy/test_horizon_client.py:208
Function
test_protocol_error_fails_the_task_with_inlined_error
SEP-2663 reserves `failed` for protocol faults: an `MCPError` raised by the body is inlined as a JSON-RPC error rather than reported as a complete
tests/tasks/server/test_guard_reentrant.py:423
Function
test_provide_tool_annotations_as_dict_to_decorator
Test that tool annotations are correctly accessible via client API.
tests/server/test_tool_annotations.py:86
Method
test_provided_name_takes_precedence_over_uri
Test that provided name takes precedence over URI.
tests/resources/test_resources.py:56
Method
test_provided_output_schema_takes_precedence_over_complex_annotation
Test that provided output_schema takes precedence over inferred schema from complex annotation.
tests/tools/tool/test_output_schema.py:267
Method
test_provided_output_schema_takes_precedence_over_converted_annotation
Test that provided output_schema takes precedence over converted schema from Image/Audio/File annotations.
tests/tools/tool/test_output_schema.py:317
Method
test_provided_output_schema_takes_precedence_over_json_compatible_annotation
Test that provided output_schema takes precedence over inferred schema from JSON-compatible annotation.
tests/tools/tool/test_output_schema.py:253
Method
test_provided_output_schema_takes_precedence_over_no_annotation
Test that provided output_schema takes precedence over None schema from no annotation.
tests/tools/tool/test_output_schema.py:302
Method
test_provided_output_schema_takes_precedence_over_pydantic_annotation
Test that provided output_schema takes precedence over inferred schema from Pydantic model annotation.
tests/tools/tool/test_output_schema.py:346
Method
test_provided_output_schema_takes_precedence_over_union_annotation
Test that provided output_schema takes precedence over inferred schema from union annotation.
tests/tools/tool/test_output_schema.py:334
Method
test_provided_output_schema_takes_precedence_over_unserializable_annotation
Test that provided output_schema takes precedence over None schema from unserializable annotation.
tests/tools/tool/test_output_schema.py:281
Function
test_provider_add_transform_drops_seeded_schemas
()
tests/server/test_mcp_param_schema_cache.py:358
Function
test_provider_added_in_user_lifespan_is_discovered
()
tests/server/test_provider_extensions.py:310
Function
test_provider_and_url_credentials_are_rejected
()
tests/server/test_server_docket.py:211
Method
test_provider_creates_default_client_from_spec
Test that omitting client creates one from the spec's servers URL.
tests/server/providers/openapi/test_server.py:203
← previous
next →
12,801–12,900 of 16,224, ranked by callers