MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,098 in github.com/PrefectHQ/fastmcp

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
Methodtest_resource_matching_params
Test that a resource with matching URI and function parameters works
tests/server/providers/test_local_provider_resources.py:79
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:1062
Methodtest_resource_mismatch_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion, )
tests/server/auth/oauth_proxy/test_identity_assertion.py:731
Methodtest_resource_mismatched_params
Test that mismatched parameters raise an error
tests/server/providers/test_local_provider_resources.py:90
Methodtest_resource_mixing_rejected
Cannot mix versioned and unversioned resources with the same URI.
tests/server/versioning/test_calls.py:17
Methodtest_resource_multiple_mismatched_params
Test that mismatched parameters raise an error
tests/server/providers/test_local_provider_resources.py:114
Methodtest_resource_multiple_params
Test that multiple parameters work correctly
tests/server/providers/test_local_provider_resources.py:103
Methodtest_resource_name_field
Test that RemoteAuthProvider correctly returns the resource_name. This test confirms that RemoteAuthProvider works correctly and returns
tests/server/auth/test_remote_auth_provider.py:480
Methodtest_resource_name_from_uri
Test name is extracted from URI if not provided.
tests/resources/test_resources.py:44
← previousnext →13,401–13,500 of 16,098, ranked by callers