MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_on_message_with_resource_template_in_payload
Ensure ResourceTemplate in payload serializes via pydantic conversion without errors.
tests/server/middleware/test_logging.py:304
Methodtest_on_read_resource
Test timing resource reads.
tests/server/middleware/test_timing.py:90
Methodtest_on_request_async_get_client_id
Test per-client rate limiting with an async get_client_id.
tests/server/middleware/test_rate_limiting.py:312
Methodtest_on_request_async_get_client_id
Test sliding window rate limiting with an async get_client_id.
tests/server/middleware/test_rate_limiting.py:375
Methodtest_on_request_failure
Test timing failed requests.
tests/server/middleware/test_timing.py:57
Methodtest_on_request_max_retries_exceeded
Test request failing after max retries.
tests/server/middleware/test_error_handling.py:366
Methodtest_on_request_non_retryable_error
Test non-retryable error is not retried.
tests/server/middleware/test_error_handling.py:380
Methodtest_on_request_rate_limited
Test request rejection due to rate limiting.
tests/server/middleware/test_rate_limiting.py:265
Methodtest_on_request_rate_limited
Test request rejection due to rate limiting.
tests/server/middleware/test_rate_limiting.py:364
Methodtest_on_request_success
Test timing successful requests.
tests/server/middleware/test_timing.py:46
Methodtest_on_request_success
Test successful request within rate limit.
tests/server/middleware/test_rate_limiting.py:256
Methodtest_on_request_success
Test successful request within rate limit.
tests/server/middleware/test_rate_limiting.py:355
Methodtest_on_request_success_after_retries
Test successful request after retries.
tests/server/middleware/test_error_handling.py:346
Methodtest_on_request_success_first_try
Test successful request on first try.
tests/server/middleware/test_error_handling.py:337
Methodtest_one_pad
(self)
tests/apps/test_file_upload.py:28
Functiontest_one_provider_can_be_used_by_independent_servers
()
tests/server/test_provider_extensions.py:187
Methodtest_one_request_with_a_fit_question_per_tool
(self)
tests/experimental/transforms/test_jev_search.py:286
Methodtest_oneof_reference_dereferenced
Test that schemas referenced in oneOf are preserved and unused defs pruned.
tests/utilities/openapi/test_schemas.py:651
Methodtest_oneof_with_nullable
Test nullable handling with oneOf constructs.
tests/utilities/openapi/test_nullable_fields.py:194
Functiontest_only_empty_array_preserves_multipart_content_type
()
tests/server/providers/openapi/test_multipart_array_defaults.py:109
Methodtest_only_first_occurrence_is_replaced
A key appearing twice in the input is left with one replaced occurrence and one untouched -- callers must not feed this function an al
tests/server/auth/test_redirect_validation.py:97
Methodtest_only_oidc_scopes_raises_value_error
Test that various OIDC-only scope combinations raise ValueError.
tests/server/auth/providers/test_azure_scopes.py:200
Methodtest_only_special_chars
(self)
tests/cli/test_goose.py:29
Methodtest_only_unstructured_content
(self, client)
tests/tools/tool/test_results.py:37
Methodtest_opaque_denial_in_chain_stays_opaque
(self)
tests/server/auth/test_authorization.py:1363
Methodtest_open_deeplink_command_not_found
Test handling when open command is not found.
tests/cli/test_cursor.py:218
Methodtest_open_deeplink_empty_url
Test handling of empty URL.
tests/cli/test_cursor.py:246
Methodtest_open_deeplink_failure
Test handling of deeplink opening failure.
tests/cli/test_cursor.py:206
Methodtest_open_deeplink_invalid_scheme
Test that non-cursor:// URLs are rejected.
tests/cli/test_cursor.py:227
Methodtest_open_deeplink_linux
Test opening deeplink on Linux.
tests/cli/test_cursor.py:193
Methodtest_open_deeplink_macos
Test opening deeplink on macOS.
tests/cli/test_cursor.py:169
Methodtest_open_deeplink_valid_cursor_scheme
Test that cursor:// URLs are accepted.
tests/cli/test_cursor.py:238
Methodtest_open_deeplink_windows
Test opening deeplink on Windows.
tests/cli/test_cursor.py:181
Methodtest_open_deeplink_windows_oserror
Test handling of OSError on Windows.
tests/cli/test_cursor.py:251
Methodtest_open_resource_still_accessible
Non-auth-protected resources can still be read.
tests/server/transforms/test_resources_as_tools.py:301
Methodtest_openapi_31_compatibility
Test that OpenAPI 3.1 specs work correctly.
tests/server/providers/openapi/test_comprehensive.py:406
Functiontest_openapi_path_params_not_duplicated_in_description
Path parameter details should live in inputSchema, not the description. Regression test for https://github.com/PrefectHQ/fastmcp/issues/3130 — hi
tests/server/test_tool_transformation.py:218
Methodtest_opencode_skills_provider_path
Test OpenCodeSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:69
Methodtest_operation_failure
Test timing failed operations.
tests/server/middleware/test_timing.py:125
Functiontest_optional_call_argument_yields_none
CallArgument(optional=True) yields None for a name the tool lacks.
tests/server/test_call_arguments.py:105
Methodtest_optional_component_no_output_schema
(self)
tests/test_apps_prefab.py:347
Methodtest_optional_context
(self)
tests/tools/test_tool_future_annotations.py:90
Methodtest_optional_context
Test that context is optional.
tests/server/providers/local_provider_tools/test_context.py:82
Methodtest_optional_context_degrades_to_none_without_active_context
Optional Context should resolve to None when no context is active.
tests/server/test_dependencies_advanced.py:37
Methodtest_optional_context_still_injected_in_foreground_requests
Optional Context should still be injected for normal MCP requests.
tests/server/test_dependencies_advanced.py:54
Methodtest_optional_fields_omitted_when_none
Optional fields like scope, client_uri, logo_uri are omitted if not given.
tests/cli/test_cimd_cli.py:138
Methodtest_optional_mode_sync_through_mount
(self, parent_with_modes)
tests/tasks/server/test_task_mount.py:418
Methodtest_optional_mode_task_through_mount
(self, parent_with_modes)
tests/tasks/server/test_task_mount.py:425
Methodtest_optional_mode_with_opt_in_tasks
Optional mode tasks when the caller opts in.
tests/tasks/server/test_task_config.py:199
Methodtest_optional_mode_without_opt_in_runs_sync
Optional mode runs synchronously without a tasks opt-in.
tests/tasks/server/test_task_config.py:191
Methodtest_optional_non_string_still_decodes_json_null
(self)
tests/prompts/test_prompt.py:343
Methodtest_optional_param
(self)
tests/cli/test_generate_cli.py:164
Methodtest_optional_param
(self)
tests/cli/test_generate_cli.py:805
Methodtest_optional_param_with_default
(self)
tests/cli/test_client_commands.py:188
Methodtest_optional_param_without_default
(self)
tests/cli/test_client_commands.py:194
Methodtest_optional_parameter_handling
Test that optional parameters are handled correctly.
tests/server/providers/openapi/test_end_to_end_compatibility.py:195
Methodtest_optional_parameter_nullable_behavior
Test that optional parameters are not made nullable - they can simply be omitted.
tests/utilities/openapi/test_legacy_compatibility.py:18
Methodtest_optional_parameters_with_coercion
Optional parameters should work with coercion.
tests/server/test_input_validation.py:355
Methodtest_optional_prefab_app_inferred
(self)
tests/test_apps_prefab.py:264
Methodtest_optional_sections
Test that all config sections are optional except source.
tests/cli/test_config.py:402
Methodtest_optional_session_is_none_without_auth
`session: UserSession | None = None` injects `None` on an unauthenticated request instead of raising.
tests/server/test_session_provider.py:176
Methodtest_optional_session_is_present_with_auth
The same optional parameter injects a real `UserSession` when the request is authenticated.
tests/server/test_session_provider.py:191
Methodtest_optional_session_not_in_input_schema
An optional injected session is still excluded from the schema.
tests/server/test_session_provider.py:207
Methodtest_optional_tool_exposes_task_support
Tools with mode=optional expose task_support='optional'.
tests/tasks/server/test_task_config.py:216
Methodtest_optional_tool_result_subclass_no_output_schema
(self)
tests/tools/tool/test_output_schema.py:161
Functiontest_optional_tool_runs_sync_without_opt_in
()
tests/tasks/server/test_extension.py:120
Functiontest_optional_tool_tasks_when_opted_in
()
tests/tasks/server/test_extension.py:108
Methodtest_optional_vs_required_parameters
Test handling of optional vs required parameters.
tests/server/providers/openapi/test_comprehensive.py:693
Methodtest_options_survive_the_per_request_client_copy
The proxy builds a fresh client per request via `new()`.
tests/server/providers/proxy/test_proxy_server.py:1355
Methodtest_order_independent_hash
(self)
tests/utilities/json_schema_type/test_advanced.py:347
Functiontest_organization_memberships_preserve_zero_one_and_many
(count: int)
tests/cli/deploy/test_horizon_client.py:172
Functiontest_origin_change_clears_credentials_before_writing_configuration
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_configuration.py:58
Methodtest_other_cookie_values_are_not_a_session
(self, cookie: str)
tests/cli/test_apps_dev_server.py:149
Methodtest_other_executables_receive_argument_list
( self, installer: Installer, run: Mock, monkeypatch: pytest.MonkeyPatch,
tests/cli/test_install_cli_arguments.py:378
Methodtest_other_filters_do_not_warn
Only `keys` is subject to this validation.
tests/server/transforms/test_visibility.py:317
Methodtest_other_host_headers_are_rejected
(self, host: str)
tests/cli/test_apps_dev_server.py:173
Methodtest_other_mcp_errors_still_become_tool_errors
(self)
tests/test_exceptions.py:136
Methodtest_other_names_keep_their_field_name
(self, name: str)
tests/utilities/json_schema_type/test_generated_classes.py:311
Methodtest_other_optimizations_still_apply_without_dereference
(self)
tests/utilities/test_json_schema.py:864
Methodtest_other_parameters_initialization
Test other parameters initialization.
tests/server/auth/test_oidc_proxy.py:547
Methodtest_other_validation_logs_omit_client_data
(self, caplog, raw_pydantic)
tests/server/test_input_validation.py:512
Methodtest_output_schema_complex_type
Test complex type output schema.
tests/server/providers/local_provider_tools/test_output_schema.py:200
Methodtest_output_schema_dataclass
Test dataclass output schema.
tests/server/providers/local_provider_tools/test_output_schema.py:225
Methodtest_output_schema_dereferenced
Middleware also dereferences output_schema when present.
tests/server/middleware/test_dereference.py:90
Methodtest_output_schema_explicit_object
Test explicit object output schema.
tests/server/providers/local_provider_tools/test_output_schema.py:147
Methodtest_output_schema_false_allows_automatic_structured_content
Test that output_schema=False still allows automatic structured content for dict-like objects.
tests/tools/tool/test_output_schema.py:367
Methodtest_output_schema_inferred_when_not_specified
Test that output schema is inferred when not explicitly specified.
tests/tools/tool/test_output_schema.py:398
Methodtest_output_schema_mixed_content_types
Test tools with mixed content and output schemas.
tests/server/providers/local_provider_tools/test_output_schema.py:249
Methodtest_output_schema_none
Test that output_schema=None works correctly.
tests/server/providers/local_provider_tools/test_output_schema.py:129
Methodtest_output_schema_none_disables_structured_content
Test that output_schema=None explicitly disables structured content.
tests/tools/tool/test_output_schema.py:383
Methodtest_output_schema_respects_serialization_alias
Test that Tool.from_function generates output schema using serialization alias.
tests/tools/tool/test_results.py:194
Methodtest_output_schema_serialization_edge_cases
Test edge cases in output schema serialization.
tests/server/providers/local_provider_tools/test_output_schema.py:295
Methodtest_output_schema_wrapped_primitive
Test wrapped primitive output schema.
tests/server/providers/local_provider_tools/test_output_schema.py:179
Methodtest_output_schema_wraps_non_object_ref_schema
Root $ref schemas should only skip wrapping when they resolve to objects.
tests/server/providers/local_provider_tools/test_output_schema.py:311
Functiontest_overlapping_property_applies_both_schemas
()
tests/server/providers/openapi/test_body_ref_siblings.py:97
Methodtest_overlapping_renders_both_submittable
Two renders in flight at once must both survive. Sequential renders are the common case, but nothing serialises them. Two handlers ca
tests/server/auth/test_oauth_consent_flow.py:663
Functiontest_overlapping_standalone_aggregate_lifespans_keep_independent_scopes
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:244
Methodtest_overwrite_does_not_evict
Overwriting an existing key should not evict another entry.
tests/utilities/test_token_cache.py:196
Methodtest_overwrite_file
(self)
tests/apps/test_file_upload.py:113
Methodtest_overwrites_with_flag
(self, skills_server: FastMCP, tmp_path: Path)
tests/utilities/test_skills.py:330
← previousnext →10,101–10,200 of 13,374, ranked by callers