Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
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:668
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:613
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:634
Method
test_offline_access_automatically_included
Test that offline_access is automatically added to get refresh tokens.
tests/server/auth/providers/test_azure.py:70
Method
test_offline_access_not_duplicated
Test that offline_access is not duplicated if already specified.
tests/server/auth/providers/test_azure.py:85
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
Function
test_oidc_provider_forwards_identity_assertion
( provider: type, kwargs: dict )
tests/server/auth/providers/test_identity_assertion_forwarding.py:126
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
Function
test_old_client_helpers_warn_and_keep_working
(tmp_path: Path)
tests/skills/test_deprecated_paths.py:167
Function
test_old_directory_provider_warns_and_keeps_serving
(tmp_path: Path)
tests/skills/test_deprecated_paths.py:28
Function
test_old_skill_provider_warns_with_the_fix_and_keeps_serving
( tmp_path: Path, )
tests/skills/test_deprecated_paths.py:125
Function
test_older_listing_cannot_replace_newer_cache
(upstream_client, kind)
tests/server/providers/proxy/test_cache_refresh_races.py:75
Function
test_omitted_and_explicit_none_reuse_default_timeout
()
tests/client/test_stdio_session_kwargs.py:185
Method
test_omitted_arguments_keep_existing_command
(self, tmp_path: Path)
tests/client/test_stdio.py:1065
Function
test_omitted_client_id_keeps_claim_validation
( token_client: TestClient, rsa_key_pair: RSAKeyPair, overrides: AssertionOverrides )
tests/server/auth/test_private_key_jwt_auth.py:110
Function
test_omitted_client_id_keeps_replay_validation
( token_client: TestClient, rsa_key_pair: RSAKeyPair )
tests/server/auth/test_private_key_jwt_auth.py:128
Function
test_omitted_client_id_keeps_signature_validation
( token_client: TestClient, rsa_key_pair_2: RSAKeyPair )
tests/server/auth/test_private_key_jwt_auth.py:120
Method
test_omitting_response_type_raises_type_error
(self)
tests/client/test_elicitation.py:681
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:230
Method
test_on_message_error_transform_tool_error
Test error handling with transformation and cause type.
tests/server/middleware/test_error_handling.py:244
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:221
Method
test_on_message_success
Test logging successful messages.
tests/server/middleware/test_logging.py:182
Method
test_on_message_transformed_error_is_caused_by_original
A transformed error still chains to the error it replaces.
tests/server/middleware/test_error_handling.py:282
Method
test_on_message_untransformed_error_keeps_its_cause
An error re-raised as-is must not become its own cause.
tests/server/middleware/test_error_handling.py:267
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
Method
test_on_message_with_resource_template_in_payload
Ensure ResourceTemplate in payload serializes via pydantic conversion without errors.
tests/server/middleware/test_logging.py:304
Method
test_on_read_resource
Test timing resource reads.
tests/server/middleware/test_timing.py:90
Method
test_on_request_async_get_client_id
Test per-client rate limiting with an async get_client_id.
tests/server/middleware/test_rate_limiting.py:346
Method
test_on_request_async_get_client_id
Test sliding window rate limiting with an async get_client_id.
tests/server/middleware/test_rate_limiting.py:470
Method
test_on_request_failure
Test timing failed requests.
tests/server/middleware/test_timing.py:57
Method
test_on_request_max_retries_exceeded
Test request failing after max retries.
tests/server/middleware/test_error_handling.py:437
Method
test_on_request_non_retryable_error
Test non-retryable error is not retried.
tests/server/middleware/test_error_handling.py:451
Method
test_on_request_rate_limited
Test request rejection due to rate limiting.
tests/server/middleware/test_rate_limiting.py:299
Method
test_on_request_rate_limited
Test request rejection due to rate limiting.
tests/server/middleware/test_rate_limiting.py:459
Method
test_on_request_success
Test timing successful requests.
tests/server/middleware/test_timing.py:46
Method
test_on_request_success
Test successful request within rate limit.
tests/server/middleware/test_rate_limiting.py:290
Method
test_on_request_success
Test successful request within rate limit.
tests/server/middleware/test_rate_limiting.py:450
Method
test_on_request_success_after_retries
Test successful request after retries.
tests/server/middleware/test_error_handling.py:417
Method
test_on_request_success_first_try
Test successful request on first try.
tests/server/middleware/test_error_handling.py:408
Function
test_one_authorization_per_configured_server
Two proxy rebuilds must not send the user through the flow twice. This is the behaviour the fix exists for: `auth="oauth"` is resolved inside
tests/client/transports/test_oauth_transport_reuse.py:143
Method
test_one_of_object_union_parses_json
Discriminated unions produce ``oneOf``; objects are still decoded.
tests/cli/test_client_commands.py:199
Method
test_one_pad
(self)
tests/apps/test_file_upload.py:28
Function
test_one_provider_can_be_used_by_independent_servers
()
tests/server/test_provider_extensions.py:187
Method
test_one_request_with_a_fit_question_per_tool
(self)
tests/experimental/transforms/test_jev_search.py:286
Method
test_oneof_reference_dereferenced
Test that schemas referenced in oneOf are preserved and unused defs pruned.
tests/utilities/openapi/test_schemas.py:653
Method
test_oneof_with_nullable
Test nullable handling with oneOf constructs.
tests/utilities/openapi/test_nullable_fields.py:194
Function
test_only_a_reloading_provider_claims_unknown_skill_uris
(tmp_path: Path)
tests/skills/test_directory_provider.py:211
Method
test_only_bodiless_success_response
(self)
tests/utilities/openapi/test_schemas.py:745
Function
test_only_empty_array_preserves_multipart_content_type
()
tests/server/providers/openapi/test_multipart_array_defaults.py:109
Method
test_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:98
Method
test_only_oidc_scopes_raises_value_error
Test that various OIDC-only scope combinations raise ValueError.
tests/server/auth/providers/test_azure_scopes.py:200
Method
test_only_primary_and_bodiless_success_responses_are_extracted
(self)
tests/utilities/openapi/test_parser.py:556
Method
test_only_special_chars
(self)
tests/cli/test_goose.py:29
Method
test_only_unstructured_content
(self, client)
tests/tools/tool/test_results.py:38
Method
test_opaque_denial_in_chain_stays_opaque
(self)
tests/server/auth/test_authorization.py:1380
Function
test_opaque_sources_are_stable_and_duplicates_require_names
()
tests/server/auth/test_auth_source_identities.py:111
Method
test_open_deeplink_command_not_found
Test handling when open command is not found.
tests/cli/test_cursor.py:218
Method
test_open_deeplink_empty_url
Test handling of empty URL.
tests/cli/test_cursor.py:246
Method
test_open_deeplink_failure
Test handling of deeplink opening failure.
tests/cli/test_cursor.py:206
Method
test_open_deeplink_invalid_scheme
Test that non-cursor:// URLs are rejected.
tests/cli/test_cursor.py:227
Method
test_open_deeplink_linux
Test opening deeplink on Linux.
tests/cli/test_cursor.py:193
Method
test_open_deeplink_macos
Test opening deeplink on macOS.
tests/cli/test_cursor.py:169
Method
test_open_deeplink_valid_cursor_scheme
Test that cursor:// URLs are accepted.
tests/cli/test_cursor.py:238
Method
test_open_deeplink_windows
Test opening deeplink on Windows.
tests/cli/test_cursor.py:181
Method
test_open_deeplink_windows_oserror
Test handling of OSError on Windows.
tests/cli/test_cursor.py:251
Method
test_open_resource_still_accessible
Non-auth-protected resources can still be read.
tests/server/transforms/test_resources_as_tools.py:345
Method
test_openapi_31_compatibility
Test that OpenAPI 3.1 specs work correctly.
tests/server/providers/openapi/test_comprehensive.py:406
Function
test_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:309
Method
test_opencode_skills_provider_path
Test OpenCodeSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:77
Method
test_operation_failure
Test timing failed operations.
tests/server/middleware/test_timing.py:125
Method
test_operational_failure_allows_successful_fallback
A later successful verifier still wins after an operational failure.
tests/server/auth/test_multi_auth.py:364
Method
test_operational_failure_raises_without_successful_fallback
Operational failure is re-raised if no later source validates.
tests/server/auth/test_multi_auth.py:354
Method
test_optional_array_parsed_as_json
(self)
tests/cli/test_client_commands.py:259
Function
test_optional_call_argument_yields_none
CallArgument(optional=True) yields None for a name the tool lacks.
tests/server/test_call_arguments.py:105
Method
test_optional_component_no_output_schema
(self)
tests/test_apps_prefab.py:346
Method
test_optional_context
(self)
tests/tools/test_tool_future_annotations.py:90
Method
test_optional_context
Test that context is optional.
tests/server/providers/local_provider_tools/test_context.py:82
Method
test_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
Method
test_optional_context_still_injected_in_foreground_requests
Optional Context should still be injected for normal MCP requests.
tests/server/test_dependencies_advanced.py:54
Method
test_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
Method
test_optional_invalid_value
(self)
tests/cli/test_client_commands.py:116
Function
test_optional_json_array_preserves_explicit_override
(value: str)
tests/cli/test_generate_cli_empty_arrays.py:42
Function
test_optional_json_parameter_distinguishes_null_from_omission
( use_default_factory: bool, arguments: list[str], expected: dict[str, str] | None, )
tests/cli/test_generate_cli_arguments.py:59
← previous
next →
12,001–12,100 of 15,974, ranked by callers