Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Method
test_resolve_unresolvable_raises
(self)
tests/test_fastmcp_app.py:315
Method
test_resolved_session_exposes_its_id
A session resolved from a `session_id` argument carries that id.
tests/server/test_session_provider.py:352
Method
test_resolver_receives_effective_timeout
A `None` per-call timeout falls back to the client timeout.
tests/client/test_client_extensions.py:304
Method
test_resolves_self_referential_model
Test resolving schema for self-referential models like Issue.
tests/utilities/test_json_schema.py:1111
Method
test_resolves_simple_root_ref
Test that simple $ref at root is resolved.
tests/utilities/test_json_schema.py:1084
Function
test_resource
()
tests/contrib/test_component_manager.py:695
Function
test_resource
()
tests/server/middleware/test_middleware_nested.py:133
Function
test_resource
()
tests/server/middleware/test_middleware.py:131
Function
test_resource
A resource that takes time to read.
tests/server/middleware/test_timing.py:167
Function
test_resource
A test resource for logging.
tests/server/middleware/test_logging.py:424
Method
test_resource
Test resource for tool management routes.
tests/contrib/test_component_manager.py:35
Method
test_resource
Test resource for auth testing.
tests/contrib/test_component_manager.py:273
Method
test_resource
()
tests/contrib/test_component_manager.py:478
Method
test_resource
()
tests/contrib/test_component_manager.py:557
Method
test_resource
()
tests/utilities/test_inspect.py:250
Method
test_resource
(self)
tests/server/middleware/test_caching_guards.py:102
Method
test_resource
()
tests/server/middleware/test_middleware_nested.py:185
Method
test_resource
()
tests/server/middleware/test_middleware.py:541
Method
test_resource
A test resource for logging.
tests/server/middleware/test_logging.py:462
Method
test_resource
()
tests/server/providers/test_local_provider.py:89
Method
test_resource
()
tests/server/providers/test_local_provider.py:203
Method
test_resource
()
tests/server/providers/local_provider_tools/test_context.py:98
Function
test_resource_accepts_integral_json_number
()
tests/skills/test_models.py:227
Method
test_resource_added_to_server
Resource created by @resource should work when added to a server.
tests/resources/test_standalone_decorator.py:132
Method
test_resource_and_prompt_get_task_tool_result
(self)
tests/tasks/server/test_task_catalog_transforms.py:172
Method
test_resource_app_metadata
(self)
tests/test_apps.py:314
Method
test_resource_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:574
Method
test_resource_base_url_from_server
(self)
tests/server/auth/test_multi_auth.py:123
Method
test_resource_base_url_override
(self)
tests/server/auth/test_multi_auth.py:134
Function
test_resource_cache_accepts_existing_text_entries
()
tests/server/middleware/test_caching.py:916
Method
test_resource_completes_with_responses
(self)
tests/server/test_mrtr_guards_components.py:166
Method
test_resource_content_binary
Test returning ResourceContent with binary content.
tests/resources/test_function_resources.py:203
Method
test_resource_content_binary_with_meta
Test that ResourceContent with binary content and meta works.
tests/server/providers/test_local_provider_resources.py:496
Method
test_resource_content_meta_received_by_client
Meta set on ResourceContent is received by MCP client.
tests/resources/test_resources.py:329
Method
test_resource_content_text
Test returning ResourceContent with text content.
tests/resources/test_function_resources.py:182
Method
test_resource_content_with_meta_in_response
Test that ResourceContent meta is passed through.
tests/server/providers/test_local_provider_resources.py:474
Method
test_resource_content_without_meta
Test that ResourceContent auto-sets mime_type defaults.
tests/resources/test_function_resources.py:223
Method
test_resource_content_without_meta
Test that ResourceContent without meta works (meta is None).
tests/server/providers/test_local_provider_resources.py:516
Method
test_resource_contents_survive_cache
( self, caching_server: FastMCP, contents: str | bytes | list[ResourceContent], )
tests/server/middleware/test_caching.py:429
Method
test_resource_decorator
(self)
tests/server/providers/test_local_provider_resources.py:315
Method
test_resource_decorator_async_function
(self)
tests/server/providers/test_local_provider_resources.py:436
Method
test_resource_decorator_classmethod
(self)
tests/server/providers/test_local_provider_resources.py:394
Method
test_resource_decorator_classmethod_error
(self)
tests/server/providers/test_local_provider_resources.py:413
Method
test_resource_decorator_delegates_to_local_provider
Test that @mcp.resource registers with the local provider.
tests/server/test_server.py:69
Method
test_resource_decorator_incorrect_usage
(self)
tests/server/providers/test_local_provider_resources.py:325
Method
test_resource_decorator_instance_method
(self)
tests/server/providers/test_local_provider_resources.py:373
Method
test_resource_decorator_registers
Resource decorator should register in _components.
tests/server/providers/test_local_provider.py:411
Method
test_resource_decorator_staticmethod
(self)
tests/server/providers/test_local_provider_resources.py:424
Method
test_resource_decorator_staticmethod_order
Test that both decorator orders work for static methods
tests/server/providers/test_local_provider_resources.py:446
Method
test_resource_decorator_with_description
(self)
tests/server/providers/test_local_provider_resources.py:350
Method
test_resource_decorator_with_meta
Test that meta parameter is passed through the resource decorator.
tests/server/providers/test_local_provider_resources.py:459
Method
test_resource_decorator_with_name
(self)
tests/server/providers/test_local_provider_resources.py:336
Method
test_resource_decorator_with_tags
Test that the resource decorator properly sets tags.
tests/server/providers/test_local_provider_resources.py:361
Function
test_resource_dependency_cannot_be_overridden_externally
Test that external callers cannot override resource dependencies.
tests/server/test_dependencies.py:646
Method
test_resource_disabled
(self)
tests/server/providers/test_local_provider_resources.py:766
Method
test_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
Method
test_resource_emits_input_required
(self)
tests/server/test_mrtr_guards_components.py:157
Method
test_resource_enabled_false
Resource with enabled=False should add a Visibility transform.
tests/server/providers/test_local_provider.py:431
Method
test_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
Method
test_resource_enabled_false_skips_registration
(self)
tests/contrib/test_mcp_mixin.py:483
Function
test_resource_error_masked_when_masking_enabled
Masking still applies: resources leak no more than tools already do.
tests/server/test_protocol_eras.py:478
Function
test_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
Method
test_resource_error_with_custom_log_level
ResourceError with custom log_level should log at specified level.
tests/client/client/test_error_handling.py:406
Method
test_resource_errors_are_sent_to_client
(self)
tests/client/client/test_error_handling.py:143
Method
test_resource_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 resource.
tests/server/versioning/test_visibility_version_fallback.py:304
Method
test_resource_from_function_with_icons
Test creating a resource from a function with icons.
tests/server/test_icons.py:127
Method
test_resource_function_still_callable
Decorated function should still be directly callable.
tests/resources/test_standalone_decorator.py:92
Method
test_resource_guard_rejected_on_handshake_era
(self)
tests/server/test_mrtr_guards_components.py:189
Method
test_resource_has_resource_prefix
Test that Resource has 'resource' KEY_PREFIX.
tests/utilities/test_components.py:206
Function
test_resource_http_429_returns_rate_limit_message
()
tests/server/providers/openapi/test_http_errors.py:122
Method
test_resource_icons
Test that resource icons are extracted.
tests/utilities/test_inspect_icons.py:93
Function
test_resource_isolates_token_storage
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:163
Method
test_resource_link_survives_cache
(self)
tests/server/middleware/test_caching.py:751
Method
test_resource_matching_params
Test that a resource with matching URI and function parameters works
tests/server/providers/test_local_provider_resources.py:79
Method
test_resource_meta_parameter
Test that meta parameter is properly handled.
tests/resources/test_resources.py:101
Method
test_resource_middleware_three_levels
Middleware runs at parent, child, and grandchild levels for resources.
tests/server/providers/test_fastmcp_provider.py:340
Method
test_resource_mime_type
Test mime type handling.
tests/resources/test_resources.py:70
Method
test_resource_mime_type_bridged
(self)
tests/test_compat.py:83
Method
test_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
Method
test_resource_mismatch_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion, )
tests/server/auth/oauth_proxy/test_identity_assertion.py:731
Method
test_resource_mismatched_params
Test that mismatched parameters raise an error
tests/server/providers/test_local_provider_resources.py:90
Method
test_resource_mixing_rejected
Cannot mix versioned and unversioned resources with the same URI.
tests/server/versioning/test_calls.py:17
Method
test_resource_multiple_mismatched_params
Test that mismatched parameters raise an error
tests/server/providers/test_local_provider_resources.py:114
Method
test_resource_multiple_params
Test that multiple parameters work correctly
tests/server/providers/test_local_provider_resources.py:103
Method
test_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
Method
test_resource_name_from_uri
Test name is extracted from URI if not provided.
tests/resources/test_resources.py:44
Method
test_resource_not_found_echoes_uri_in_data
SEP-2164 SHOULD: the error names which URI was missing. A client that pipelined several reads cannot otherwise tell which one failed
tests/test_exceptions.py:75
Method
test_resource_not_found_uses_invalid_params
Resource-not-found is INVALID_PARAMS (-32602), not -32002. SEP-2164 corrected this: the SDK's mcpserver maps ResourceNotFoundError to
tests/test_exceptions.py:60
Method
test_resource_not_found_uses_invalid_params_code
(self)
tests/test_upgrade_from_v3.py:377
Method
test_resource_plus_json_response_is_text
A +json response is read as JSON text, not a binary blob.
tests/server/providers/openapi/test_openapi_features.py:1095
Method
test_resource_prefixes_preserved_after_cache_hit
Resource URIs should retain prefix after being served from cache.
tests/server/middleware/test_caching.py:859
Method
test_resource_read_not_implemented
Test that Resource.read() raises NotImplementedError.
tests/resources/test_resources.py:91
Method
test_resource_read_propagates_meta_to_content_items
resources/read must include _meta on content items so hosts can read CSP.
tests/test_apps.py:670
Method
test_resource_registration
Test resource registration with prefix and separator variations.
tests/contrib/test_mcp_mixin.py:106
Method
test_resource_rejects_classmethod_decorator
@resource should reject classmethod-decorated functions.
tests/resources/test_standalone_decorator.py:121
Function
test_resource_rejects_negative_size
()
tests/skills/test_models.py:214
Function
test_resource_rejects_non_integer_size_types
(size: object)
tests/skills/test_models.py:220
Method
test_resource_rejects_resource_uri
AppConfig with resource_uri raises ValueError on resources.
tests/test_apps.py:365
Method
test_resource_rejects_visibility
AppConfig with visibility raises ValueError on resources.
tests/test_apps.py:377
Function
test_resource_requires_canonical_sha256
(digest: str)
tests/skills/test_models.py:209
← previous
next →
13,301–13,400 of 15,974, ranked by callers