Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Method
test_nullable_false_ignored
Test that nullable: false is ignored (removed but no type change).
tests/utilities/openapi/test_nullable_fields.py:86
Method
test_nullable_in_definitions
Test nullable field inside $defs.
tests/utilities/openapi/test_nullable_fields.py:358
Method
test_nullable_in_nested_properties
Test nullable field in deeply nested properties.
tests/utilities/openapi/test_nullable_fields.py:389
Method
test_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
Method
test_nullable_integer_enum
Test nullable enum with integer values.
tests/utilities/openapi/test_nullable_fields.py:344
Method
test_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
Method
test_nullable_string_validates
Test that nullable string validates both null and string values.
tests/utilities/openapi/test_nullable_fields.py:426
Method
test_nullable_without_type_removes_nullable
Test that nullable field is removed even without type.
tests/utilities/openapi/test_nullable_fields.py:103
Method
test_number
(self)
tests/cli/test_client_commands.py:46
Method
test_number_accepts_float
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:53
Method
test_number_accepts_integer
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:57
Method
test_number_accepts_numeric_string
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:61
Method
test_number_const_invalid
(self, number_const)
tests/utilities/json_schema_type/test_advanced.py:249
Method
test_number_const_valid
(self, number_const)
tests/utilities/json_schema_type/test_advanced.py:245
Method
test_number_default_preserved
Test that number defaults are preserved in the schema.
tests/client/test_elicitation_enums.py:427
Method
test_number_integer_value
(self)
tests/cli/test_client_commands.py:49
Method
test_number_invalid
(self)
tests/cli/test_client_commands.py:52
Method
test_number_rejects_invalid_string
(self, simple_number)
tests/utilities/json_schema_type/test_json_schema_type.py:66
Method
test_numeric_values_become_float_seconds
(self)
tests/utilities/test_timeout.py:18
Method
test_numeric_values_become_timedeltas
(self)
tests/utilities/test_timeout.py:44
Method
test_numeric_values_still_work
(self, director, path_route)
tests/utilities/openapi/test_director.py:1211
Method
test_numpy_style_integration
(self)
tests/utilities/test_docstring_parsing.py:333
Method
test_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
Method
test_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
Method
test_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
Method
test_oauth_brackets_ipv6_callback_host_in_redirect_uri
( self, callback_host: str )
tests/client/auth/test_oauth_client.py:293
Function
test_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
Function
test_oauth_callback_options_pass_to_fastmcp_oauth
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:129
Function
test_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
Function
test_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
Function
test_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
Function
test_oauth_callback_server_uses_configured_host
()
tests/client/test_oauth_callback_race.py:59
Method
test_oauth_custom_factory_preserved_with_verify
(self)
tests/client/transports/test_transports.py:263
Method
test_oauth_discovery_endpoints_integration
Test OAuth discovery endpoints work correctly together.
tests/integration_tests/auth/test_keycloak_provider_integration.py:20
Method
test_oauth_endpoints_configured_correctly
Test that OAuth endpoints are derived from the domain.
tests/server/auth/providers/test_clerk.py:59
Method
test_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_google.py:71
Method
test_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_discord.py:49
Method
test_oauth_endpoints_configured_correctly
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:61
Method
test_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_azure.py:101
Method
test_oauth_endpoints_configured_correctly
Test that OAuth endpoints are configured correctly.
tests/server/auth/providers/test_workos.py:181
Method
test_oauth_error_response_raises
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:129
Method
test_oauth_finds_available_port_on_callback_host
( self, monkeypatch: pytest.MonkeyPatch )
tests/client/auth/test_oauth_client.py:308
Method
test_oauth_insufficient_scope_challenge_excludes_optional_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:793
Method
test_oauth_literal_pass_direct_to_transport
(self)
tests/client/client/test_auth.py:31
Method
test_oauth_literal_pass_direct_to_transport_sse
(self)
tests/client/client/test_auth.py:43
Method
test_oauth_literal_sets_up_oauth_shttp
(self)
tests/client/client/test_auth.py:24
Method
test_oauth_literal_sets_up_oauth_sse
(self)
tests/client/client/test_auth.py:38
Method
test_oauth_missing_auth_challenge_excludes_optional_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:780
Method
test_oauth_normalizes_trailing_slash
OAuth client should normalize trailing slashes for consistency.
tests/client/auth/test_oauth_client.py:260
Method
test_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
Method
test_oauth_preserves_root_url
OAuth client should work correctly with root-level URLs.
tests/client/auth/test_oauth_client.py:252
Function
test_oauth_server_metadata_discovery
Test that we can discover OAuth metadata from the running server.
tests/client/auth/test_oauth_client.py:154
Method
test_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
Method
test_oauth_uses_configured_callback_host_port_and_timeout
(self)
tests/client/auth/test_oauth_client.py:278
Function
test_oauth_uses_same_client_as_transport_sse
()
tests/client/transports/test_transports.py:62
Function
test_oauth_uses_same_client_as_transport_streamable_http
()
tests/client/transports/test_transports.py:44
Method
test_object
(self)
tests/cli/test_client_commands.py:75
Method
test_object
(self)
tests/cli/test_generate_cli.py:748
Method
test_object_accepts_extra_properties
(self, simple_object)
tests/utilities/json_schema_type/test_containers.py:178
Method
test_object_accepts_valid
(self, simple_object)
tests/utilities/json_schema_type/test_containers.py:172
Method
test_object_consts_invalid
(self, object_with_consts)
tests/utilities/json_schema_type/test_advanced.py:281
Method
test_object_consts_valid
(self, object_with_consts)
tests/utilities/json_schema_type/test_advanced.py:272
Function
test_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
Method
test_object_output_schema_not_wrapped
Test that object-type output schemas are never wrapped.
tests/tools/tool/test_output_schema.py:456
Function
test_object_query_defaults_preserve_existing_behavior
( style: str, expected: list[tuple[str, str]] )
tests/server/providers/openapi/test_query_array_defaults.py:83
Method
test_object_with_underscore_names
(self)
tests/utilities/json_schema_type/test_containers.py:209
Method
test_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
Method
test_oci_provider_defaults_to_bounded_timeout
OCIProvider exposes and defaults the discovery timeout.
tests/server/auth/test_oidc_proxy.py:969
Method
test_off_does_not_inject
(self, mode, trace_exporter: InMemorySpanExporter)
tests/telemetry/test_interop.py:185
Method
test_off_ignores_incoming_parent
`off` is a full pass-through: the incoming context is not applied.
tests/telemetry/test_interop.py:179
Method
test_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
Method
test_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
Method
test_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
Method
test_offline_access_automatically_included
Test that offline_access is automatically added to get refresh tokens.
tests/server/auth/providers/test_azure.py:69
Method
test_offline_access_not_duplicated
Test that offline_access is not duplicated if already specified.
tests/server/auth/providers/test_azure.py:84
Method
test_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
Method
test_oidc_discovery_alias_root
Test that /.well-known/openid-configuration alias is added for root issuers.
tests/server/auth/test_oauth_mounting.py:417
Method
test_oidc_discovery_integration
Test that OIDC discovery endpoints are used correctly.
tests/server/auth/providers/test_aws.py:89
Method
test_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
Method
test_oidc_proxy_defaults_to_bounded_timeout
OIDCProxy applies a bounded discovery timeout when none is given.
tests/server/auth/test_oidc_proxy.py:900
Method
test_oidc_proxy_forwards_explicit_timeout
An explicit timeout (including None as an escape hatch) is forwarded.
tests/server/auth/test_oidc_proxy.py:917
Method
test_oidc_scopes_constant
Verify OIDC_SCOPES contains the standard OIDC scopes.
tests/server/auth/providers/test_azure_scopes.py:41
Method
test_oidc_scopes_not_prefixed
(self)
tests/server/auth/providers/test_azure_scopes.py:544
Method
test_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
Method
test_omitting_response_type_raises_type_error
(self)
tests/client/test_elicitation.py:654
Method
test_on_call_tool
Test timing tool calls.
tests/server/middleware/test_timing.py:78
Function
test_on_discover_forwards_modified_params
()
tests/server/middleware/test_discovery_middleware.py:42
Function
test_on_discover_preserves_extension_owned_result
()
tests/server/middleware/test_discovery_middleware.py:78
Function
test_on_discover_receives_and_transforms_typed_result
()
tests/server/middleware/test_discovery_middleware.py:12
Method
test_on_get_prompt
Test timing prompt retrieval.
tests/server/middleware/test_timing.py:102
Method
test_on_list_tools
Test timing tool listing.
tests/server/middleware/test_timing.py:114
Method
test_on_message_error_transform
Test error handling with transformation.
tests/server/middleware/test_error_handling.py:208
Method
test_on_message_error_transform_tool_error
Test error handling with transformation and cause type.
tests/server/middleware/test_error_handling.py:222
Method
test_on_message_failure
Test logging failed messages.
tests/server/middleware/test_logging.py:203
Method
test_on_message_failure
Test structured logging of failed messages.
tests/server/middleware/test_logging.py:257
Method
test_on_message_success
Test successful message handling.
tests/server/middleware/test_error_handling.py:199
Method
test_on_message_success
Test logging successful messages.
tests/server/middleware/test_logging.py:182
Method
test_on_message_with_custom_serializer_applied
Ensure a custom serializer is used for non-JSONable payloads.
tests/server/middleware/test_logging.py:364
Method
test_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
Method
test_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
← previous
next →
10,001–10,100 of 13,374, ranked by callers