Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
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
Method
test_resource_requires_uri
@resource should require a URI argument.
tests/resources/test_standalone_decorator.py:21
Method
test_resource_result_meta_received_by_client
Meta set on ResourceResult is received by MCP client.
tests/resources/test_resources.py:317
Method
test_resource_roundtrip
Resource should execute correctly via Client.
tests/server/providers/test_local_provider.py:507
Method
test_resource_span_includes_auth_attributes_when_authenticated
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:253
Method
test_resource_suffix_does_not_reuse_an_existing_name
(self)
tests/server/providers/openapi/test_server.py:433
Method
test_resource_tagged_by_transform_is_denied_without_scope
(self)
tests/server/auth/test_authorization.py:1589
Method
test_resource_tags_in_meta
Test that resource tags appear in meta under fastmcp key.
tests/server/test_server.py:302
Function
test_resource_template
Test using a resource template with InMemoryClient.
tests/client/client/test_client.py:776
Method
test_resource_template
(self, explicit_default: bool)
tests/server/test_session_provider.py:297
Function
test_resource_template_completion_returns_candidates
(completion_server, mode)
tests/server/test_completions.py:69
Method
test_resource_template_context
(self)
tests/server/providers/test_local_provider_resources.py:273
Method
test_resource_template_context_with_callable_object
(self)
tests/server/providers/test_local_provider_resources.py:288
Function
test_resource_template_conversion_error_reaches_client
A bad template argument is a client-input error, not a server fault. This is the path that originally exposed the masking: converting ``item_
tests/server/test_protocol_eras.py:461
Method
test_resource_template_defaults_json_mime_type
Resource template defaults to application/json for JSON responses.
tests/server/providers/openapi/test_openapi_features.py:662
Function
test_resource_template_dependency_cannot_be_overridden_externally
Test that external callers cannot override resource template dependencies. Resource templates extract parameters from the URI path, so there's a
tests/server/test_dependencies.py:665
Method
test_resource_template_emits_input_required
Templates share the converter, so the ask survives there too.
tests/server/test_mrtr_guards_components.py:179
Method
test_resource_template_encodes_matched_path_params
( self, path_param_spec: dict[str, Any] )
tests/server/providers/openapi/test_openapi_features.py:747
Method
test_resource_template_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 template.
tests/server/versioning/test_visibility_version_fallback.py:321
Method
test_resource_template_from_function_with_icons
Test creating a resource template from a function with icons.
tests/server/test_icons.py:182
Method
test_resource_template_html_mime_type
Resource template should reflect text/html from OpenAPI spec.
tests/server/providers/openapi/test_openapi_features.py:648
Method
test_resource_template_ignores_unmatched_query_string
( self, path_param_spec: dict[str, Any] )
tests/server/providers/openapi/test_openapi_features.py:781
Method
test_resource_template_matches_with_hyphenated_params
(self)
tests/resources/test_resource_template.py:1012
Method
test_resource_template_middleware_three_levels
Middleware runs at all levels for resource templates.
tests/server/providers/test_fastmcp_provider.py:412
Method
test_resource_template_preserves_client_defaults
( self, path_param_spec: dict[str, Any] )
tests/server/providers/openapi/test_openapi_features.py:862
Method
test_resource_template_preserves_hyphenated_path_params
(self)
tests/server/providers/openapi/test_openapi_features.py:808
Method
test_resource_template_security_via_provider
FileSystemProvider should honor the security policy of @resource templates.
tests/fs/test_provider.py:515
Method
test_resource_template_tags_in_meta
Test that resource template tags appear in meta under fastmcp key.
tests/server/test_server.py:322
Method
test_resource_template_text_plain_mime_type
Resource template should reflect text/plain from OpenAPI spec.
tests/server/providers/openapi/test_openapi_features.py:634
Method
test_resource_template_ui_scheme_defaults_mime_type
Resource templates also apply ui:// MIME default.
tests/test_apps.py:353
Function
test_resource_template_uri_cannot_match_dependency_name
Test that URI parameters cannot have the same name as dependencies. If a URI template tries to use a parameter name that's also a dependency,
tests/server/test_dependencies.py:690
Method
test_resource_template_uri_prefixing
Test that resource template URIs are prefixed when mounted (names are NOT prefixed).
tests/server/mount/test_resources.py:157
Method
test_resource_template_uri_template_bridged
(self)
tests/test_compat.py:88
Method
test_resource_template_uses_mapped_path_argument_names
(self)
tests/server/providers/openapi/test_openapi_features.py:894
Method
test_resource_template_uses_path_arg_when_query_param_has_same_name
( self, )
tests/server/providers/openapi/test_openapi_features.py:961
Method
test_resource_template_with_annotations
Test that resource template annotations are visible. SDK v2's `Annotations` model is strict (audience/priority/last_modified); arbitr
tests/server/providers/test_local_provider_resources.py:245
Function
test_resource_template_with_context_and_dependency
Test that resource templates can use both Context and Depends.
tests/server/test_dependencies.py:348
Function
test_resource_template_with_dependency
Test that resource templates support dependency injection.
tests/server/test_dependencies.py:333
Method
test_resource_template_with_icons
Test that resource templates can have icons.
tests/server/test_icons.py:165
Method
test_resource_template_without_icons
Test that resource templates work without icons.
tests/server/test_icons.py:201
Method
test_resource_templates_constant_cursor_terminates
list_resource_templates should stop if the server always returns the same cursor.
tests/server/test_pagination.py:491
Method
test_resource_templates_dereferenced
Middleware dereferences resource template schemas.
tests/server/middleware/test_dereference.py:107
Method
test_resource_templates_list_carries_hint
(self)
tests/server/test_cache_hints.py:118
Method
test_resource_text_plain_mime_type
Static resource should reflect text/plain from OpenAPI spec.
tests/server/providers/openapi/test_openapi_features.py:1027
Method
test_resource_toggle_disabled
(self)
tests/server/providers/test_local_provider_resources.py:795
Method
test_resource_toggle_enabled
(self)
tests/server/providers/test_local_provider_resources.py:780
Method
test_resource_uri_prefixing
Test that resource URIs are prefixed when mounted (names are NOT prefixed).
tests/server/mount/test_resources.py:131
Method
test_resource_uri_validation
Test URI validation.
tests/resources/test_resources.py:14
Function
test_resource_uri_without_usable_name
()
tests/server/providers/openapi/test_default_names.py:56
Method
test_resource_valid_kwargs_match_from_function
(self)
tests/contrib/test_mcp_mixin.py:409
Method
test_resource_versions_in_meta
Each version has its own version in metadata.
tests/server/versioning/test_calls.py:118
Method
test_resource_with_all_metadata
@resource with all metadata should store it all.
tests/resources/test_standalone_decorator.py:66
Function
test_resource_with_context_and_dependency
Test that resources can use both Context and Depends.
tests/server/test_dependencies.py:273
Method
test_resource_with_context_annotation_gets_context
(self)
tests/server/providers/test_local_provider_resources.py:27
Method
test_resource_with_custom_name_registers
Resource with custom name should register with that name.
tests/server/providers/test_local_provider.py:421
Function
test_resource_with_dependency
Test that resources support dependency injection.
tests/server/test_dependencies.py:258
Method
test_resource_with_function_params_becomes_template
@resource with function params should attach metadata.
tests/resources/test_standalone_decorator.py:54
Method
test_resource_with_icons
Test that resources can have icons.
tests/server/test_icons.py:110
Method
test_resource_with_meta
Test that meta argument is properly passed through for resources.
tests/contrib/test_mcp_mixin.py:301
Method
test_resource_with_params_not_in_uri
Test that a resource with function parameters raises an error if the URI parameters don't match
tests/server/providers/test_local_provider_resources.py:44
Function
test_resource_with_path
(x: int)
tests/server/middleware/test_middleware_nested.py:137
Function
test_resource_with_path
(x: int)
tests/server/middleware/test_middleware.py:135
Method
test_resource_with_path
(x: int)
tests/server/middleware/test_middleware_nested.py:189
Method
test_resource_with_template_uri
@resource with template URI should attach metadata.
tests/resources/test_standalone_decorator.py:42
Method
test_resource_with_ui_scheme_roundtrip
(self)
tests/test_apps.py:548
Method
test_resource_with_untyped_params
Test that a resource with untyped parameters raises an error
tests/server/providers/test_local_provider_resources.py:71
Method
test_resource_with_uri
@resource("uri") should attach metadata.
tests/resources/test_standalone_decorator.py:29
Method
test_resource_with_uri_params_without_args
Test that a resource with URI parameters is automatically a template
tests/server/providers/test_local_provider_resources.py:58
Method
test_resource_with_version
Resource version should work like tool version.
tests/server/versioning/test_versioning.py:322
Method
test_resource_without_icons
Test that resources work without icons.
tests/server/test_icons.py:146
Method
test_resources_constant_cursor_terminates
list_resources should stop if the server always returns the same cursor.
tests/server/test_pagination.py:462
Method
test_resources_filtered
Resources are filtered by version.
tests/server/versioning/test_filtering.py:240
Method
test_resources_import_without_sdk
(self)
tests/resources/test_resource_security.py:153
Method
test_resources_list_and_read_carry_hint
(self)
tests/server/test_cache_hints.py:102
Method
test_resources_pagination_returns_all_resources
Client should receive all resources across paginated requests.
tests/server/test_pagination.py:276
Method
test_resources_raises_on_auto_pagination_limit
list_resources should raise RuntimeError after exceeding max_pages.
tests/server/test_pagination.py:587
Function
test_resources_work_without_the_extension
()
tests/skills/test_provider.py:69
Function
test_response_cache_never_serves_stale_skill_bytes
()
tests/server/providers/proxy/test_skills.py:298
Function
test_response_drops_a_referenced_write_only_property
Responses never contain writeOnly properties, including one reached through a pointer into a component.
tests/server/providers/openapi/test_component_property_refs.py:87
Method
test_response_over_limit_is_truncated
Test that responses over the limit are truncated.
tests/server/middleware/test_response_limiting.py:38
Method
test_response_required_description
Test that response description is required.
tests/utilities/openapi/test_models.py:183
Method
test_response_size_limit
Verify response size limit is enforced via streaming.
tests/server/auth/test_ssrf_protection.py:344
Function
test_response_to_create_message_result
()
tests/client/sampling/handlers/test_google_genai_handler.py:192
Function
test_response_to_create_message_result_reports_max_tokens
Without tools, a reply cut off at max_tokens must say so too.
tests/client/sampling/handlers/test_google_genai_handler.py:209
Function
test_response_to_result_with_tools_function_call
Test _response_to_result_with_tools with a function call response.
tests/client/sampling/handlers/test_google_genai_handler.py:603
Function
test_response_to_result_with_tools_mixed_content
Test _response_to_result_with_tools with text and function call.
tests/client/sampling/handlers/test_google_genai_handler.py:629
Function
test_response_to_result_with_tools_text_only
Test _response_to_result_with_tools with a text-only response.
tests/client/sampling/handlers/test_google_genai_handler.py:581
← previous
next →
13,501–13,600 of 16,098, ranked by callers