MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,224 in github.com/PrefectHQ/fastmcp

Methodtest_required_scopes_satisfied
Token with required scopes passes the scope check.
tests/server/auth/providers/test_google.py:433
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:222
Methodtest_requires_all_roles
(self)
tests/server/auth/test_authorization.py:141
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:75
Methodtest_requires_trusted_issuers
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:176
Functiontest_reseed_after_removal_sorts_versions_semantically
Regression (#5666 review repro 2): re-seeding after a version-scoped removal must pick the surviving version the way dispatch does (PEP 440),
tests/server/test_mcp_param_schema_cache.py:259
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:145
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:248
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:352
Methodtest_resolver_receives_effective_timeout
A `None` per-call timeout falls back to the client timeout.
tests/client/test_client_extensions.py:304
Methodtest_resolves_self_referential_model
Test resolving schema for self-referential models like Issue.
tests/utilities/test_json_schema.py:1111
Methodtest_resolves_simple_root_ref
Test that simple $ref at root is resolved.
tests/utilities/test_json_schema.py:1084
Functiontest_resource
()
tests/contrib/test_component_manager.py:695
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:35
Methodtest_resource
Test resource for auth testing.
tests/contrib/test_component_manager.py:273
Methodtest_resource
()
tests/contrib/test_component_manager.py:478
Methodtest_resource
()
tests/contrib/test_component_manager.py:557
Methodtest_resource
()
tests/utilities/test_inspect.py:250
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:541
Methodtest_resource
A test resource for logging.
tests/server/middleware/test_logging.py:462
Methodtest_resource
()
tests/server/providers/test_local_provider.py:89
Methodtest_resource
()
tests/server/providers/test_local_provider.py:203
Methodtest_resource
()
tests/server/providers/local_provider_tools/test_context.py:98
Functiontest_resource_accepts_integral_json_number
()
tests/skills/test_models.py:227
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:314
Methodtest_resource_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:574
Methodtest_resource_base_url_from_server
(self)
tests/server/auth/test_multi_auth.py:123
Methodtest_resource_base_url_override
(self)
tests/server/auth/test_multi_auth.py:134
Functiontest_resource_cache_accepts_existing_text_entries
()
tests/server/middleware/test_caching.py:916
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:496
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:474
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:516
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:315
Methodtest_resource_decorator_async_function
(self)
tests/server/providers/test_local_provider_resources.py:436
Methodtest_resource_decorator_classmethod
(self)
tests/server/providers/test_local_provider_resources.py:394
Methodtest_resource_decorator_classmethod_error
(self)
tests/server/providers/test_local_provider_resources.py:413
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:325
Methodtest_resource_decorator_instance_method
(self)
tests/server/providers/test_local_provider_resources.py:373
Methodtest_resource_decorator_registers
Resource decorator should register in _components.
tests/server/providers/test_local_provider.py:411
Methodtest_resource_decorator_staticmethod
(self)
tests/server/providers/test_local_provider_resources.py:424
Methodtest_resource_decorator_staticmethod_order
Test that both decorator orders work for static methods
tests/server/providers/test_local_provider_resources.py:446
Methodtest_resource_decorator_with_description
(self)
tests/server/providers/test_local_provider_resources.py:350
Methodtest_resource_decorator_with_meta
Test that meta parameter is passed through the resource decorator.
tests/server/providers/test_local_provider_resources.py:459
Methodtest_resource_decorator_with_name
(self)
tests/server/providers/test_local_provider_resources.py:336
Methodtest_resource_decorator_with_tags
Test that the resource decorator properly sets tags.
tests/server/providers/test_local_provider_resources.py:361
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:766
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:516
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:431
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:450
Methodtest_resource_enabled_false_skips_registration
(self)
tests/contrib/test_mcp_mixin.py:483
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:406
Methodtest_resource_errors_are_sent_to_client
(self)
tests/client/client/test_error_handling.py:143
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
Functiontest_resource_http_429_returns_rate_limit_message
()
tests/server/providers/openapi/test_http_errors.py:122
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:163
Methodtest_resource_link_survives_cache
(self)
tests/server/middleware/test_caching.py:751
← previousnext →13,501–13,600 of 16,224, ranked by callers