MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_required_scopes_support
Test that required_scopes are supported and passed to JWT verifier.
tests/server/auth/providers/test_descope.py:519
Methodtest_required_scopes_validation
Test that required scopes are validated.
tests/server/auth/providers/test_introspection.py:215
Methodtest_required_scopes_validation_success
Test successful validation with required scopes.
tests/server/auth/providers/test_introspection.py:236
Methodtest_required_scopes_with_oidc_filters_validation
Test that OIDC scopes in required_scopes are filtered from token validation.
tests/server/auth/providers/test_azure_scopes.py:142
Methodtest_required_scopes_with_old_api
Test that required_scopes work with the old API (project_id + descope_base_url).
tests/server/auth/providers/test_descope.py:531
Methodtest_required_task_tool_refuses_nested_call
(self)
tests/tasks/server/test_task_catalog_transforms.py:157
Methodtest_required_tool_exposes_task_support
Tools with mode=required expose task_support='required'.
tests/tasks/server/test_task_config.py:231
Functiontest_required_tool_tasks_when_opted_in
()
tests/tasks/server/test_extension.py:141
Functiontest_required_tool_without_opt_in_raises_missing_capability
()
tests/tasks/server/test_extension.py:151
Methodtest_requirements_path_resolution
Test that requirements path is resolved correctly.
tests/cli/test_mcp_server_config_integration.py:221
Methodtest_requires_all_roles
(self)
tests/server/auth/test_authorization.py:124
Methodtest_requires_config_url_or_project_id_and_descope_base_url
Test that either config_url or both project_id and descope_base_url are required.
tests/server/auth/providers/test_descope.py:303
Methodtest_requires_server_or_verifiers
MultiAuth with neither server nor verifiers raises ValueError.
tests/server/auth/test_multi_auth.py:36
Methodtest_requires_trusted_issuers
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:176
Methodtest_reserved_names_become_aliased_fields
(self, name: str)
tests/utilities/json_schema_type/test_generated_classes.py:286
Functiontest_resolve_allowed_hosts_for_run_merges_configured_hosts_with_loopback_host
()
tests/server/test_transport.py:26
Functiontest_resolve_allowed_hosts_for_run_preserves_configured_hosts_when_disabled
()
tests/server/test_transport.py:35
Functiontest_resolve_allowed_hosts_for_run_preserves_explicit_hosts
()
tests/server/test_transport.py:44
Methodtest_resolve_callable_no_context
Without context, callables resolve to their bare __name__.
tests/test_fastmcp_app.py:305
Methodtest_resolve_hostname_preserves_resolver_order
Resolved addresses should keep getaddrinfo order after deduplication.
tests/server/auth/test_ssrf_protection.py:143
Methodtest_resolve_owning_server_recovers_mounted_child
(self, parent_server)
tests/tasks/server/test_task_mount.py:124
Methodtest_resolve_owning_server_respects_version
Two versions of a mounted tool name resolve to their own child server.
tests/tasks/server/test_task_mount.py:160
Functiontest_resolve_param_hints_handles_partials
Resolve partials via their function when direct introspection is empty. Argument coercion must not raise for partial-wrapped callables — it shoul
tests/tasks/server/test_task_tools.py:166
Methodtest_resolve_string_no_context
Without a running Context the resolver returns bare names.
tests/test_fastmcp_app.py:291
Methodtest_resolve_string_with_app_name
With an app name the resolver produces a hashed backend name.
tests/test_fastmcp_app.py:297
Methodtest_resolve_unresolvable_raises
(self)
tests/test_fastmcp_app.py:315
Methodtest_resolved_session_exposes_its_id
A session resolved from a `session_id` argument carries that id.
tests/server/test_session_provider.py:299
Methodtest_resolves_self_referential_model
Test resolving schema for self-referential models like Issue.
tests/utilities/test_json_schema.py:916
Methodtest_resolves_simple_root_ref
Test that simple $ref at root is resolved.
tests/utilities/test_json_schema.py:889
Functiontest_resource
()
tests/contrib/test_component_manager.py:643
Functiontest_resource
()
tests/server/middleware/test_middleware_nested.py:133
Functiontest_resource
()
tests/server/middleware/test_middleware.py:131
Functiontest_resource
A resource that takes time to read.
tests/server/middleware/test_timing.py:167
Functiontest_resource
A test resource for logging.
tests/server/middleware/test_logging.py:424
Methodtest_resource
Test resource for tool management routes.
tests/contrib/test_component_manager.py:34
Methodtest_resource
Test resource for auth testing.
tests/contrib/test_component_manager.py:221
Methodtest_resource
()
tests/contrib/test_component_manager.py:426
Methodtest_resource
()
tests/contrib/test_component_manager.py:505
Methodtest_resource
()
tests/utilities/test_inspect.py:248
Methodtest_resource
(self)
tests/server/middleware/test_caching_guards.py:102
Methodtest_resource
()
tests/server/middleware/test_middleware_nested.py:185
Methodtest_resource
()
tests/server/middleware/test_middleware.py:512
Methodtest_resource
A test resource for logging.
tests/server/middleware/test_logging.py:462
Methodtest_resource
()
tests/server/providers/test_local_provider.py:88
Methodtest_resource
()
tests/server/providers/test_local_provider.py:202
Methodtest_resource
()
tests/server/providers/local_provider_tools/test_context.py:98
Methodtest_resource_added_to_server
Resource created by @resource should work when added to a server.
tests/resources/test_standalone_decorator.py:132
Methodtest_resource_and_prompt_get_task_tool_result
(self)
tests/tasks/server/test_task_catalog_transforms.py:172
Methodtest_resource_app_metadata
(self)
tests/test_apps.py:313
Methodtest_resource_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:523
Methodtest_resource_base_url_from_server
(self)
tests/server/auth/test_multi_auth.py:84
Methodtest_resource_base_url_override
(self)
tests/server/auth/test_multi_auth.py:95
Functiontest_resource_cache_accepts_existing_text_entries
()
tests/server/middleware/test_caching.py:869
Methodtest_resource_completes_with_responses
(self)
tests/server/test_mrtr_guards_components.py:166
Methodtest_resource_content_binary
Test returning ResourceContent with binary content.
tests/resources/test_function_resources.py:203
Methodtest_resource_content_binary_with_meta
Test that ResourceContent with binary content and meta works.
tests/server/providers/test_local_provider_resources.py:495
Methodtest_resource_content_meta_received_by_client
Meta set on ResourceContent is received by MCP client.
tests/resources/test_resources.py:329
Methodtest_resource_content_text
Test returning ResourceContent with text content.
tests/resources/test_function_resources.py:182
Methodtest_resource_content_with_meta_in_response
Test that ResourceContent meta is passed through.
tests/server/providers/test_local_provider_resources.py:473
Methodtest_resource_content_without_meta
Test that ResourceContent auto-sets mime_type defaults.
tests/resources/test_function_resources.py:223
Methodtest_resource_content_without_meta
Test that ResourceContent without meta works (meta is None).
tests/server/providers/test_local_provider_resources.py:515
Methodtest_resource_contents_survive_cache
( self, caching_server: FastMCP, contents: str | bytes | list[ResourceContent], )
tests/server/middleware/test_caching.py:429
Methodtest_resource_decorator
(self)
tests/server/providers/test_local_provider_resources.py:314
Methodtest_resource_decorator_async_function
(self)
tests/server/providers/test_local_provider_resources.py:435
Methodtest_resource_decorator_classmethod
(self)
tests/server/providers/test_local_provider_resources.py:393
Methodtest_resource_decorator_classmethod_error
(self)
tests/server/providers/test_local_provider_resources.py:412
Methodtest_resource_decorator_delegates_to_local_provider
Test that @mcp.resource registers with the local provider.
tests/server/test_server.py:69
Methodtest_resource_decorator_incorrect_usage
(self)
tests/server/providers/test_local_provider_resources.py:324
Methodtest_resource_decorator_instance_method
(self)
tests/server/providers/test_local_provider_resources.py:372
Methodtest_resource_decorator_registers
Resource decorator should register in _components.
tests/server/providers/test_local_provider.py:410
Methodtest_resource_decorator_staticmethod
(self)
tests/server/providers/test_local_provider_resources.py:423
Methodtest_resource_decorator_staticmethod_order
Test that both decorator orders work for static methods
tests/server/providers/test_local_provider_resources.py:445
Methodtest_resource_decorator_with_description
(self)
tests/server/providers/test_local_provider_resources.py:349
Methodtest_resource_decorator_with_meta
Test that meta parameter is passed through the resource decorator.
tests/server/providers/test_local_provider_resources.py:458
Methodtest_resource_decorator_with_name
(self)
tests/server/providers/test_local_provider_resources.py:335
Methodtest_resource_decorator_with_tags
Test that the resource decorator properly sets tags.
tests/server/providers/test_local_provider_resources.py:360
Functiontest_resource_dependency_cannot_be_overridden_externally
Test that external callers cannot override resource dependencies.
tests/server/test_dependencies.py:646
Methodtest_resource_disabled
(self)
tests/server/providers/test_local_provider_resources.py:765
Methodtest_resource_documentation_field
Test that RemoteAuthProvider correctly returns the resource_documentation. This test confirms that RemoteAuthProvider works correctly and ret
tests/server/auth/test_remote_auth_provider.py:514
Methodtest_resource_emits_input_required
(self)
tests/server/test_mrtr_guards_components.py:157
Methodtest_resource_enabled_false
Resource with enabled=False should add a Visibility transform.
tests/server/providers/test_local_provider.py:430
Methodtest_resource_enabled_false_not_listed
Disabled resource should not appear in get_resources (filtering at server level).
tests/server/providers/test_local_provider.py:449
Methodtest_resource_enabled_false_skips_registration
(self)
tests/contrib/test_mcp_mixin.py:432
Functiontest_resource_error_masked_when_masking_enabled
Masking still applies: resources leak no more than tools already do.
tests/server/test_protocol_eras.py:478
Functiontest_resource_error_message_reaches_client
A ResourceError's message must reach the wire on every era. The modern runner masks any handler exception that is not an MCPError or a Valida
tests/server/test_protocol_eras.py:432
Methodtest_resource_error_with_custom_log_level
ResourceError with custom log_level should log at specified level.
tests/client/client/test_error_handling.py:328
Methodtest_resource_errors_are_sent_to_client
(self)
tests/client/client/test_error_handling.py:122
Methodtest_resource_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 resource.
tests/server/versioning/test_visibility_version_fallback.py:304
Methodtest_resource_from_function_with_icons
Test creating a resource from a function with icons.
tests/server/test_icons.py:127
Methodtest_resource_function_still_callable
Decorated function should still be directly callable.
tests/resources/test_standalone_decorator.py:92
Methodtest_resource_guard_rejected_on_handshake_era
(self)
tests/server/test_mrtr_guards_components.py:189
Methodtest_resource_has_resource_prefix
Test that Resource has 'resource' KEY_PREFIX.
tests/utilities/test_components.py:206
Methodtest_resource_icons
Test that resource icons are extracted.
tests/utilities/test_inspect_icons.py:93
Functiontest_resource_isolates_token_storage
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:154
Methodtest_resource_matching_params
Test that a resource with matching URI and function parameters works
tests/server/providers/test_local_provider_resources.py:78
Methodtest_resource_meta_parameter
Test that meta parameter is properly handled.
tests/resources/test_resources.py:101
Methodtest_resource_middleware_three_levels
Middleware runs at parent, child, and grandchild levels for resources.
tests/server/providers/test_fastmcp_provider.py:340
Methodtest_resource_mime_type
Test mime type handling.
tests/resources/test_resources.py:70
Methodtest_resource_mime_type_bridged
(self)
tests/test_compat.py:83
Methodtest_resource_mime_type_without_schema
Resource with media type but no schema still infers MIME type.
tests/server/providers/openapi/test_openapi_features.py:1061
← previousnext →11,101–11,200 of 13,374, ranked by callers