MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

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
Methodtest_resources_pagination_returns_all_resources
Client should receive all resources across paginated requests.
tests/server/test_pagination.py:276
Methodtest_resources_raises_on_auto_pagination_limit
list_resources should raise RuntimeError after exceeding max_pages.
tests/server/test_pagination.py:587
Functiontest_resources_work_without_the_extension
()
tests/skills/test_provider.py:69
Functiontest_response_cache_never_serves_stale_skill_bytes
()
tests/server/providers/proxy/test_skills.py:298
Functiontest_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
Methodtest_response_over_limit_is_truncated
Test that responses over the limit are truncated.
tests/server/middleware/test_response_limiting.py:38
Methodtest_response_required_description
Test that response description is required.
tests/utilities/openapi/test_models.py:183
Methodtest_response_size_limit
Verify response size limit is enforced via streaming.
tests/server/auth/test_ssrf_protection.py:344
Functiontest_response_to_create_message_result
()
tests/client/sampling/handlers/test_google_genai_handler.py:192
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Methodtest_response_under_limit_passes_unchanged
Test that responses under the limit pass through unchanged.
tests/server/middleware/test_response_limiting.py:25
Methodtest_response_with_content_schema
Test response with content schema.
tests/utilities/openapi/test_models.py:163
Functiontest_response_without_write_only_properties_is_accepted
()
tests/server/providers/openapi/test_write_only_responses.py:83
Functiontest_restart_installed_app_on_device
()
examples/smart_home/tests/test_fire_tv_device.py:15
Functiontest_restore_does_not_churn_sdk_attribute_limit_evictions
Regression: under a low `OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT`, restoring must not reinsert a key the SDK's bounded attribute map already evicted.
tests/telemetry/test_span_attributes.py:412
Functiontest_restore_failure_is_nonfatal
If deserialization blows up, the task still runs to completion and the snapshot cache stays empty.
tests/tasks/server/test_snapshot_restore.py:199
Functiontest_restore_skipped_for_non_fastmcp_task_keys
The restore dep returns cleanly for keys it doesn't recognize and writes nothing to the snapshot cache.
tests/tasks/server/test_snapshot_restore.py:224
Methodtest_restrict_tag_shortfall_names_scope
(self)
tests/server/auth/test_authorization.py:1488
Functiontest_result_claims_merge_with_extension_claims
Explicit result_claims merge with an advertised extension's own claims.
tests/client/test_client_extensions.py:208
Functiontest_results_carry_the_gateway_server_info_stamp
( operation: str, frontend_mode: str )
tests/server/providers/proxy/test_server_metadata.py:645
Functiontest_results_keep_the_backend_stamp_under_upstream_identity
With identity="upstream", terminal results advertise the backend, matching what discovery advertised, instead of being restamped with the gate
tests/server/providers/proxy/test_server_metadata.py:689
Methodtest_retry_actually_retries_through_server_pipeline
Retry middleware should retry tool calls that raise retryable errors. FastMCP wraps tool exceptions as ToolError(...) from <original>,
tests/server/middleware/test_error_handling.py:643
Methodtest_retry_middleware_with_permanent_failures
A tool error whose cause is not in ``retry_exceptions`` should fail on the first attempt — no retries.
tests/server/middleware/test_error_handling.py:703
Methodtest_retry_sees_cause_through_untransformed_error_handling
ErrorHandlingMiddleware(transform_errors=False) further in must leave the tool error's cause intact for the retry decision.
tests/server/middleware/test_error_handling.py:675
← previousnext →13,401–13,500 of 15,974, ranked by callers