MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

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:364
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_rest_commit_authors_include_noreply_coauthors
()
tests/scripts/test_release_contributor_credit.py:304
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
Methodtest_retry_skipped_with_static_creds
When static creds are rejected, should raise immediately, not retry.
tests/client/auth/test_oauth_static_client.py:160
Methodtest_retry_still_works_without_static_creds
Without static creds, the retry behavior should be preserved.
tests/client/auth/test_oauth_static_client.py:180
Methodtest_return_exceptions_collects_exceptions
(self)
tests/utilities/test_async_utils.py:133
Methodtest_returned_error_preserves_content_when_not_raising
(self)
tests/tools/tool/test_results.py:112
Methodtest_returned_error_raises_on_client_by_default
(self)
tests/tools/tool/test_results.py:97
Methodtest_returns_azure_provider_directly
When auth is an AzureProvider, return it directly.
tests/server/auth/providers/test_azure_scopes.py:819
Methodtest_returns_cached_version_if_fresh
Uses cached version if cache is fresh.
tests/utilities/test_version_check.py:183
Methodtest_returns_copy_for_matching
Marking returns a copy to avoid mutating shared provider objects.
tests/server/transforms/test_visibility.py:123
Methodtest_returns_empty_dict_when_no_context
(self)
tests/telemetry/test_module.py:34
Methodtest_returns_false_when_no_session
(self)
tests/test_apps.py:439
Methodtest_returns_false_with_missing_scope
(self)
tests/server/auth/test_authorization.py:93
Methodtest_returns_false_with_partial_scopes
(self)
tests/server/auth/test_authorization.py:99
Methodtest_returns_false_without_token
(self)
tests/server/auth/test_authorization.py:105
Methodtest_returns_fastmcp_namespace_when_dict
(self)
tests/utilities/test_components.py:262
Methodtest_returns_first_failing_param_name
(self)
tests/resources/test_resource_security.py:132
Methodtest_returns_highest_version_only
(self)
tests/server/transforms/test_catalog.py:135
Methodtest_returns_image
(self)
tests/tools/test_tool_future_annotations.py:106
Methodtest_returns_manifest_with_files
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:196
Methodtest_returns_none_for_multiauth_without_azure_server
When MultiAuth has no server or a non-Azure server, return None.
tests/server/auth/providers/test_azure_scopes.py:848
Methodtest_returns_none_for_no_auth
When auth is None, return None.
tests/server/auth/providers/test_azure_scopes.py:844
Methodtest_returns_none_if_current
Returns None if current version is latest.
tests/utilities/test_version_check.py:256
Methodtest_returns_none_if_disabled
Returns None if check_for_updates is off.
tests/utilities/test_version_check.py:247
Methodtest_returns_none_if_older_available
Returns None if pypi version is older than current (dev version).
tests/utilities/test_version_check.py:282
Methodtest_returns_none_when_refresh_fails
If the upstream refresh call fails, load_access_token returns None.
tests/server/auth/oauth_proxy/test_tokens.py:1799
Methodtest_returns_none_when_refreshed_token_still_invalid
If the refreshed token also fails validation, returns None.
tests/server/auth/oauth_proxy/test_tokens.py:1815
Methodtest_returns_paths_to_downloaded_skills
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:512
Methodtest_returns_results_in_input_order
(self)
tests/utilities/test_async_utils.py:92
Methodtest_returns_section_excluded
(self)
tests/utilities/test_docstring_parsing.py:47
Methodtest_returns_section_excluded_no_params
A parameterless function's Returns section must not bleed into the description, same as it doesn't for functions with Args.
tests/utilities/test_docstring_parsing.py:289
Methodtest_returns_skill_summary_objects
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:139
← previousnext →14,101–14,200 of 16,725, ranked by callers