MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,224 in github.com/PrefectHQ/fastmcp

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
Methodtest_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
Methodtest_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
Methodtest_resource_not_found_uses_invalid_params_code
(self)
tests/test_upgrade_from_v3.py:377
Methodtest_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
Methodtest_resource_prefixes_preserved_after_cache_hit
Resource URIs should retain prefix after being served from cache.
tests/server/middleware/test_caching.py:859
Methodtest_resource_read_not_implemented
Test that Resource.read() raises NotImplementedError.
tests/resources/test_resources.py:91
Methodtest_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
Methodtest_resource_registration
Test resource registration with prefix and separator variations.
tests/contrib/test_mcp_mixin.py:106
Methodtest_resource_rejects_classmethod_decorator
@resource should reject classmethod-decorated functions.
tests/resources/test_standalone_decorator.py:121
Functiontest_resource_rejects_negative_size
()
tests/skills/test_models.py:214
Functiontest_resource_rejects_non_integer_size_types
(size: object)
tests/skills/test_models.py:220
Methodtest_resource_rejects_resource_uri
AppConfig with resource_uri raises ValueError on resources.
tests/test_apps.py:365
Methodtest_resource_rejects_visibility
AppConfig with visibility raises ValueError on resources.
tests/test_apps.py:377
Functiontest_resource_requires_canonical_sha256
(digest: str)
tests/skills/test_models.py:209
Methodtest_resource_requires_uri
@resource should require a URI argument.
tests/resources/test_standalone_decorator.py:21
Methodtest_resource_result_meta_received_by_client
Meta set on ResourceResult is received by MCP client.
tests/resources/test_resources.py:317
Methodtest_resource_roundtrip
Resource should execute correctly via Client.
tests/server/providers/test_local_provider.py:507
Methodtest_resource_span_includes_auth_attributes_when_authenticated
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:253
Methodtest_resource_suffix_does_not_reuse_an_existing_name
(self)
tests/server/providers/openapi/test_server.py:433
Methodtest_resource_tagged_by_transform_is_denied_without_scope
(self)
tests/server/auth/test_authorization.py:1589
Methodtest_resource_tags_in_meta
Test that resource tags appear in meta under fastmcp key.
tests/server/test_server.py:302
Functiontest_resource_template
Test using a resource template with InMemoryClient.
tests/client/client/test_client.py:776
Methodtest_resource_template
(self, explicit_default: bool)
tests/server/test_session_provider.py:297
Functiontest_resource_template_completion_returns_candidates
(completion_server, mode)
tests/server/test_completions.py:69
Methodtest_resource_template_context
(self)
tests/server/providers/test_local_provider_resources.py:273
Methodtest_resource_template_context_with_callable_object
(self)
tests/server/providers/test_local_provider_resources.py:288
Functiontest_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
Methodtest_resource_template_defaults_json_mime_type
Resource template defaults to application/json for JSON responses.
tests/server/providers/openapi/test_openapi_features.py:662
Functiontest_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
Methodtest_resource_template_emits_input_required
Templates share the converter, so the ask survives there too.
tests/server/test_mrtr_guards_components.py:179
Methodtest_resource_template_encodes_matched_path_params
( self, path_param_spec: dict[str, Any] )
tests/server/providers/openapi/test_openapi_features.py:747
Methodtest_resource_template_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 template.
tests/server/versioning/test_visibility_version_fallback.py:321
Methodtest_resource_template_from_function_with_icons
Test creating a resource template from a function with icons.
tests/server/test_icons.py:182
Methodtest_resource_template_html_mime_type
Resource template should reflect text/html from OpenAPI spec.
tests/server/providers/openapi/test_openapi_features.py:648
Methodtest_resource_template_ignores_unmatched_query_string
( self, path_param_spec: dict[str, Any] )
tests/server/providers/openapi/test_openapi_features.py:781
Methodtest_resource_template_matches_with_hyphenated_params
(self)
tests/resources/test_resource_template.py:1012
Methodtest_resource_template_middleware_three_levels
Middleware runs at all levels for resource templates.
tests/server/providers/test_fastmcp_provider.py:412
Methodtest_resource_template_preserves_client_defaults
( self, path_param_spec: dict[str, Any] )
tests/server/providers/openapi/test_openapi_features.py:862
Methodtest_resource_template_preserves_hyphenated_path_params
(self)
tests/server/providers/openapi/test_openapi_features.py:808
Methodtest_resource_template_security_via_provider
FileSystemProvider should honor the security policy of @resource templates.
tests/fs/test_provider.py:515
Methodtest_resource_template_tags_in_meta
Test that resource template tags appear in meta under fastmcp key.
tests/server/test_server.py:322
Methodtest_resource_template_text_plain_mime_type
Resource template should reflect text/plain from OpenAPI spec.
tests/server/providers/openapi/test_openapi_features.py:634
Methodtest_resource_template_ui_scheme_defaults_mime_type
Resource templates also apply ui:// MIME default.
tests/test_apps.py:353
Functiontest_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
Methodtest_resource_template_uri_prefixing
Test that resource template URIs are prefixed when mounted (names are NOT prefixed).
tests/server/mount/test_resources.py:157
Methodtest_resource_template_uri_template_bridged
(self)
tests/test_compat.py:88
Methodtest_resource_template_uses_mapped_path_argument_names
(self)
tests/server/providers/openapi/test_openapi_features.py:894
Methodtest_resource_template_uses_path_arg_when_query_param_has_same_name
( self, )
tests/server/providers/openapi/test_openapi_features.py:961
Methodtest_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
Functiontest_resource_template_with_context_and_dependency
Test that resource templates can use both Context and Depends.
tests/server/test_dependencies.py:348
Functiontest_resource_template_with_dependency
Test that resource templates support dependency injection.
tests/server/test_dependencies.py:333
Methodtest_resource_template_with_icons
Test that resource templates can have icons.
tests/server/test_icons.py:165
Methodtest_resource_template_without_icons
Test that resource templates work without icons.
tests/server/test_icons.py:201
Methodtest_resource_templates_constant_cursor_terminates
list_resource_templates should stop if the server always returns the same cursor.
tests/server/test_pagination.py:491
Methodtest_resource_templates_dereferenced
Middleware dereferences resource template schemas.
tests/server/middleware/test_dereference.py:107
Methodtest_resource_templates_list_carries_hint
(self)
tests/server/test_cache_hints.py:118
Methodtest_resource_text_plain_mime_type
Static resource should reflect text/plain from OpenAPI spec.
tests/server/providers/openapi/test_openapi_features.py:1027
Methodtest_resource_toggle_disabled
(self)
tests/server/providers/test_local_provider_resources.py:795
Methodtest_resource_toggle_enabled
(self)
tests/server/providers/test_local_provider_resources.py:780
Methodtest_resource_uri_prefixing
Test that resource URIs are prefixed when mounted (names are NOT prefixed).
tests/server/mount/test_resources.py:131
Methodtest_resource_uri_validation
Test URI validation.
tests/resources/test_resources.py:14
Functiontest_resource_uri_without_usable_name
()
tests/server/providers/openapi/test_default_names.py:56
Methodtest_resource_valid_kwargs_match_from_function
(self)
tests/contrib/test_mcp_mixin.py:409
Methodtest_resource_versions_in_meta
Each version has its own version in metadata.
tests/server/versioning/test_calls.py:118
Methodtest_resource_with_all_metadata
@resource with all metadata should store it all.
tests/resources/test_standalone_decorator.py:66
Functiontest_resource_with_context_and_dependency
Test that resources can use both Context and Depends.
tests/server/test_dependencies.py:273
Methodtest_resource_with_context_annotation_gets_context
(self)
tests/server/providers/test_local_provider_resources.py:27
Methodtest_resource_with_custom_name_registers
Resource with custom name should register with that name.
tests/server/providers/test_local_provider.py:421
Functiontest_resource_with_dependency
Test that resources support dependency injection.
tests/server/test_dependencies.py:258
Methodtest_resource_with_function_params_becomes_template
@resource with function params should attach metadata.
tests/resources/test_standalone_decorator.py:54
Methodtest_resource_with_icons
Test that resources can have icons.
tests/server/test_icons.py:110
Methodtest_resource_with_meta
Test that meta argument is properly passed through for resources.
tests/contrib/test_mcp_mixin.py:301
Methodtest_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
Functiontest_resource_with_path
(x: int)
tests/server/middleware/test_middleware_nested.py:137
Functiontest_resource_with_path
(x: int)
tests/server/middleware/test_middleware.py:135
Methodtest_resource_with_path
(x: int)
tests/server/middleware/test_middleware_nested.py:189
Methodtest_resource_with_template_uri
@resource with template URI should attach metadata.
tests/resources/test_standalone_decorator.py:42
Methodtest_resource_with_ui_scheme_roundtrip
(self)
tests/test_apps.py:548
Methodtest_resource_with_untyped_params
Test that a resource with untyped parameters raises an error
tests/server/providers/test_local_provider_resources.py:71
Methodtest_resource_with_uri
@resource("uri") should attach metadata.
tests/resources/test_standalone_decorator.py:29
Methodtest_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
Methodtest_resource_with_version
Resource version should work like tool version.
tests/server/versioning/test_versioning.py:322
Methodtest_resource_without_icons
Test that resources work without icons.
tests/server/test_icons.py:146
Methodtest_resources_constant_cursor_terminates
list_resources should stop if the server always returns the same cursor.
tests/server/test_pagination.py:462
Methodtest_resources_filtered
Resources are filtered by version.
tests/server/versioning/test_filtering.py:240
Methodtest_resources_import_without_sdk
(self)
tests/resources/test_resource_security.py:153
Methodtest_resources_list_and_read_carry_hint
(self)
tests/server/test_cache_hints.py:102
← previousnext →13,601–13,700 of 16,224, ranked by callers