MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_nullable_false_ignored
Test that nullable: false is ignored (removed but no type change).
tests/utilities/openapi/test_nullable_fields.py:86
Methodtest_nullable_in_definitions
Test nullable field inside $defs.
tests/utilities/openapi/test_nullable_fields.py:358
Methodtest_nullable_in_nested_properties
Test nullable field in deeply nested properties.
tests/utilities/openapi/test_nullable_fields.py:389
Methodtest_nullable_in_request_body_defs_converted
Nullable field inside $defs referenced by request body should be converted.
tests/utilities/openapi/test_nullable_fields.py:504
Methodtest_nullable_integer_enum
Test nullable enum with integer values.
tests/utilities/openapi/test_nullable_fields.py:344
Methodtest_nullable_query_param_converted_in_tool_input_schema
Nullable query parameter should produce type union in tool input schema.
tests/utilities/openapi/test_nullable_fields.py:464
Methodtest_nullable_string_validates
Test that nullable string validates both null and string values.
tests/utilities/openapi/test_nullable_fields.py:426
Methodtest_nullable_without_type_removes_nullable
Test that nullable field is removed even without type.
tests/utilities/openapi/test_nullable_fields.py:103
Methodtest_number
(self)
tests/cli/test_client_commands.py:46
Methodtest_number_accepts_float
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:53
Methodtest_number_accepts_integer
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:57
Methodtest_number_accepts_numeric_string
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:61
Methodtest_number_const_invalid
(self, number_const)
tests/utilities/json_schema_type/test_advanced.py:249
Methodtest_number_const_valid
(self, number_const)
tests/utilities/json_schema_type/test_advanced.py:245
Methodtest_number_default_preserved
Test that number defaults are preserved in the schema.
tests/client/test_elicitation_enums.py:427
Methodtest_number_integer_value
(self)
tests/cli/test_client_commands.py:49
Methodtest_number_invalid
(self)
tests/cli/test_client_commands.py:52
Methodtest_number_rejects_invalid_string
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:66
Methodtest_numeric_values_become_float_seconds
(self)
tests/utilities/test_timeout.py:18
Methodtest_numeric_values_become_timedeltas
(self)
tests/utilities/test_timeout.py:44
Methodtest_numeric_values_still_work
(self, director, path_route)
tests/utilities/openapi/test_director.py:1211
Methodtest_numpy_style_integration
(self)
tests/utilities/test_docstring_parsing.py:333
Methodtest_oauth_authorization_server_metadata_path_aware_discovery
Test RFC 8414 path-aware discovery when issuer_url has a path. This validates the fix for issue #2527 where authorization server metadata
tests/server/auth/test_oauth_mounting.py:270
Methodtest_oauth_authorization_server_metadata_root_issuer
Test that root-level issuer_url still uses root discovery path. When issuer_url is explicitly set to root (no path), the authorization
tests/server/auth/test_oauth_mounting.py:353
Methodtest_oauth_authorization_server_metadata_with_base_url_and_issuer_url
Test OAuth authorization server metadata when base_url and issuer_url differ. This validates the fix for issue #2287 where operational OAuth
tests/server/auth/test_oauth_mounting.py:200
Methodtest_oauth_brackets_ipv6_callback_host_in_redirect_uri
( self, callback_host: str )
tests/client/auth/test_oauth_client.py:293
Functiontest_oauth_callback_handler_propagates_iss_to_authorization_code_result
RFC 9207: `OAuth.callback_handler()` (the production, non-headless path) must carry `iss` from the callback query string all the way into the
tests/client/auth/test_oauth_client.py:195
Functiontest_oauth_callback_options_pass_to_fastmcp_oauth
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:129
Functiontest_oauth_callback_result_captures_iss
RFC 9207: the `iss` query parameter must survive from the raw callback request through to `OAuthCallbackResult`, the same as `code` and `state`.
tests/client/test_oauth_callback_race.py:65
Functiontest_oauth_callback_result_captures_iss_on_error
RFC 9207 applies to error redirects too -- the server emits `iss` on them, so the callback server must not silently drop it while building the
tests/client/test_oauth_callback_race.py:110
Functiontest_oauth_callback_result_ignores_subsequent_callbacks
Only the first callback should be captured in shared OAuth callback state.
tests/client/test_oauth_callback_race.py:23
Functiontest_oauth_callback_server_uses_configured_host
()
tests/client/test_oauth_callback_race.py:59
Methodtest_oauth_custom_factory_preserved_with_verify
(self)
tests/client/transports/test_transports.py:263
Methodtest_oauth_discovery_endpoints_integration
Test OAuth discovery endpoints work correctly together.
tests/integration_tests/auth/test_keycloak_provider_integration.py:20
Methodtest_oauth_endpoints_configured_correctly
Test that OAuth endpoints are derived from the domain.
tests/server/auth/providers/test_clerk.py:59
Methodtest_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_google.py:71
Methodtest_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_discord.py:49
Methodtest_oauth_endpoints_configured_correctly
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:61
Methodtest_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_azure.py:101
Methodtest_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_workos.py:181
Methodtest_oauth_error_response_raises
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:129
Methodtest_oauth_finds_available_port_on_callback_host
( self, monkeypatch: pytest.MonkeyPatch )
tests/client/auth/test_oauth_client.py:308
Methodtest_oauth_insufficient_scope_challenge_excludes_optional_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:793
Methodtest_oauth_literal_pass_direct_to_transport
(self)
tests/client/client/test_auth.py:31
Methodtest_oauth_literal_pass_direct_to_transport_sse
(self)
tests/client/client/test_auth.py:43
Methodtest_oauth_literal_sets_up_oauth_shttp
(self)
tests/client/client/test_auth.py:24
Methodtest_oauth_literal_sets_up_oauth_sse
(self)
tests/client/client/test_auth.py:38
Methodtest_oauth_missing_auth_challenge_excludes_optional_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:780
Methodtest_oauth_normalizes_trailing_slash
OAuth client should normalize trailing slashes for consistency.
tests/client/auth/test_oauth_client.py:260
Methodtest_oauth_preserves_full_url_with_path
OAuth client should preserve the full MCP URL including path components. This is critical for servers hosted under path-based endpoints like
tests/client/auth/test_oauth_client.py:236
Methodtest_oauth_preserves_root_url
OAuth client should work correctly with root-level URLs.
tests/client/auth/test_oauth_client.py:252
Functiontest_oauth_server_metadata_discovery
Test that we can discover OAuth metadata from the running server.
tests/client/auth/test_oauth_client.py:154
Methodtest_oauth_token_storage_uses_full_url
Token storage should use the full URL to separate tokens per endpoint.
tests/client/auth/test_oauth_client.py:270
Methodtest_oauth_uses_configured_callback_host_port_and_timeout
(self)
tests/client/auth/test_oauth_client.py:278
Functiontest_oauth_uses_same_client_as_transport_sse
()
tests/client/transports/test_transports.py:62
Functiontest_oauth_uses_same_client_as_transport_streamable_http
()
tests/client/transports/test_transports.py:44
Methodtest_object
(self)
tests/cli/test_client_commands.py:75
Methodtest_object
(self)
tests/cli/test_generate_cli.py:748
Methodtest_object_accepts_extra_properties
(self, simple_object)
tests/utilities/json_schema_type/test_containers.py:178
Methodtest_object_accepts_valid
(self, simple_object)
tests/utilities/json_schema_type/test_containers.py:172
Methodtest_object_consts_invalid
(self, object_with_consts)
tests/utilities/json_schema_type/test_advanced.py:281
Methodtest_object_consts_valid
(self, object_with_consts)
tests/utilities/json_schema_type/test_advanced.py:272
Functiontest_object_json_body_reaches_http_endpoint
( openapi_version: str, use_ref: bool, schema: dict[str, Any], arguments: dict[str, Any],
tests/server/providers/openapi/test_object_request_bodies.py:92
Methodtest_object_output_schema_not_wrapped
Test that object-type output schemas are never wrapped.
tests/tools/tool/test_output_schema.py:456
Functiontest_object_query_defaults_preserve_existing_behavior
( style: str, expected: list[tuple[str, str]] )
tests/server/providers/openapi/test_query_array_defaults.py:83
Methodtest_object_with_underscore_names
(self)
tests/utilities/json_schema_type/test_containers.py:209
Methodtest_object_with_unsupported_pattern_field
An object schema containing a field with an unsupported pattern should not crash TypeAdapter construction.
tests/utilities/json_schema_type/test_json_schema_type.py:372
Methodtest_oci_provider_defaults_to_bounded_timeout
OCIProvider exposes and defaults the discovery timeout.
tests/server/auth/test_oidc_proxy.py:969
Methodtest_off_does_not_inject
(self, mode, trace_exporter: InMemorySpanExporter)
tests/telemetry/test_interop.py:185
Methodtest_off_ignores_incoming_parent
`off` is a full pass-through: the incoming context is not applied.
tests/telemetry/test_interop.py:179
Methodtest_off_switch_leaves_enclosing_span_current
Disabling telemetry must be a transparent pass-through. The stock OpenTelemetry `NoOpTracer.start_as_current_span` attaches a `NonRec
tests/server/telemetry/test_server_tracing.py:666
Methodtest_off_switch_suppresses_spans
With telemetry disabled, no spans are created even with an SDK configured (the exporter fixture installs one).
tests/server/telemetry/test_server_tracing.py:611
Methodtest_off_switch_suppresses_spans_via_client
The off-switch suppresses every FastMCP span on the full request path (seam SERVER span and FastMCP CLIENT span alike). The SDK's own
tests/server/telemetry/test_server_tracing.py:632
Methodtest_offline_access_automatically_included
Test that offline_access is automatically added to get refresh tokens.
tests/server/auth/providers/test_azure.py:69
Methodtest_offline_access_not_duplicated
Test that offline_access is not duplicated if already specified.
tests/server/auth/providers/test_azure.py:84
Methodtest_oidc_discovery_alias_path_aware
Test that /.well-known/openid-configuration aliases are added for path-aware issuers. RFC 8414 §5 allows servers to expose OAuth metadata at
tests/server/auth/test_oauth_mounting.py:385
Methodtest_oidc_discovery_alias_root
Test that /.well-known/openid-configuration alias is added for root issuers.
tests/server/auth/test_oauth_mounting.py:417
Methodtest_oidc_discovery_integration
Test that OIDC discovery endpoints are used correctly.
tests/server/auth/providers/test_aws.py:89
Methodtest_oidc_discovery_returns_auth_server_metadata
Test that /.well-known/openid-configuration returns valid OAuth server metadata. The response must include the core RFC 8414 fields so that O
tests/server/auth/test_oauth_mounting.py:437
Methodtest_oidc_proxy_defaults_to_bounded_timeout
OIDCProxy applies a bounded discovery timeout when none is given.
tests/server/auth/test_oidc_proxy.py:900
Methodtest_oidc_proxy_forwards_explicit_timeout
An explicit timeout (including None as an escape hatch) is forwarded.
tests/server/auth/test_oidc_proxy.py:917
Methodtest_oidc_scopes_constant
Verify OIDC_SCOPES contains the standard OIDC scopes.
tests/server/auth/providers/test_azure_scopes.py:41
Methodtest_oidc_scopes_not_prefixed
(self)
tests/server/auth/providers/test_azure_scopes.py:544
Methodtest_old_api_accepts_every_issuer_form
project_id + descope_base_url derive the same project-scoped issuers.
tests/server/auth/providers/test_descope.py:455
Methodtest_omitting_response_type_raises_type_error
(self)
tests/client/test_elicitation.py:654
Methodtest_on_call_tool
Test timing tool calls.
tests/server/middleware/test_timing.py:78
Functiontest_on_discover_forwards_modified_params
()
tests/server/middleware/test_discovery_middleware.py:42
Functiontest_on_discover_preserves_extension_owned_result
()
tests/server/middleware/test_discovery_middleware.py:78
Functiontest_on_discover_receives_and_transforms_typed_result
()
tests/server/middleware/test_discovery_middleware.py:12
Methodtest_on_get_prompt
Test timing prompt retrieval.
tests/server/middleware/test_timing.py:102
Methodtest_on_list_tools
Test timing tool listing.
tests/server/middleware/test_timing.py:114
Methodtest_on_message_error_transform
Test error handling with transformation.
tests/server/middleware/test_error_handling.py:208
Methodtest_on_message_error_transform_tool_error
Test error handling with transformation and cause type.
tests/server/middleware/test_error_handling.py:222
Methodtest_on_message_failure
Test logging failed messages.
tests/server/middleware/test_logging.py:203
Methodtest_on_message_failure
Test structured logging of failed messages.
tests/server/middleware/test_logging.py:257
Methodtest_on_message_success
Test successful message handling.
tests/server/middleware/test_error_handling.py:199
Methodtest_on_message_success
Test logging successful messages.
tests/server/middleware/test_logging.py:182
Methodtest_on_message_with_custom_serializer_applied
Ensure a custom serializer is used for non-JSONable payloads.
tests/server/middleware/test_logging.py:364
Methodtest_on_message_with_nonserializable_payload_falls_back_to_str
Ensure non-JSONable objects fall back to string serialization in payload.
tests/server/middleware/test_logging.py:332
Methodtest_on_message_with_pydantic_types_in_payload
Ensure Pydantic AnyUrl in payload serializes correctly when include_payloads=True.
tests/server/middleware/test_logging.py:275
← previousnext →10,001–10,100 of 13,374, ranked by callers