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_dcr_adds_jwt_bearer_when_enabled
(self, config: IdentityAssertion)
tests/server/auth/oauth_proxy/test_identity_assertion.py:961
Method
test_dcr_client_accepts_registered_external_redirect_uri
Open DCR still accepts arbitrary redirect URIs that clients register.
tests/server/auth/oauth_proxy/test_client_registration.py:200
Method
test_dcr_client_rejects_unregistered_redirect_uri
DCR clients honor their registered redirect_uris by default.
tests/server/auth/oauth_proxy/test_client_registration.py:177
Method
test_dcr_does_not_add_jwt_bearer_when_disabled
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:976
Method
test_dcr_registered_client_can_exchange
A client that registers via DCR without the jwt-bearer grant can still exchange an ID-JAG, because the enabled-path adds the grant on registra
tests/server/auth/oauth_proxy/test_identity_assertion.py:991
Method
test_dcr_response_is_public_client
The DCR response must describe the public client the proxy actually stores — never a confidential method / secret the proxy does not enforce
tests/server/auth/oauth_proxy/test_client_registration.py:277
Method
test_declared_mime_type_is_served_on_read
A string return honors the template's declared mime_type.
tests/resources/test_resource_template.py:1359
Method
test_declined_answer_shape
A client that declines delivers an ElicitResult with action='decline' and no content into ctx.input_responses (not an error).
tests/server/test_mrtr_guards.py:360
Method
test_decode_accepts_bytes
Redis hands back bytes on some backends.
tests/tasks/server/test_snapshot_encryption.py:113
Method
test_decode_basic_header
Test decoding a basic JWT header.
tests/utilities/test_auth.py:26
Method
test_decode_basic_payload
Test decoding a basic JWT payload.
tests/utilities/test_auth.py:81
Method
test_decode_header_length_divisible_by_4
Test decoding when base64 length is divisible by 4 (no padding needed). This tests the edge case where len(part) % 4 == 0. The paddin
tests/utilities/test_auth.py:63
Method
test_decode_header_with_kid
Test decoding header with key ID for JWKS lookup.
tests/utilities/test_auth.py:38
Method
test_decode_invalid_base64_raises
Invalid base64 should raise ValueError.
tests/server/test_pagination.py:34
Method
test_decode_invalid_json_raises
Valid base64 but invalid JSON should raise ValueError.
tests/server/test_pagination.py:39
Method
test_decode_missing_offset_raises
JSON missing the offset key should raise ValueError.
tests/server/test_pagination.py:62
Method
test_decode_payload_length_divisible_by_4
Test decoding when base64 length is divisible by 4 (no padding needed). This tests the edge case where len(part) % 4 == 0. The paddin
tests/utilities/test_auth.py:129
Method
test_decode_payload_with_claims
Test decoding payload with various claims.
tests/utilities/test_auth.py:93
Method
test_decode_payload_with_padding_edge_cases
Test that base64 padding is handled correctly.
tests/utilities/test_auth.py:120
Method
test_decode_rejects_a_malformed_offset
An offset that is not a whole non-negative count is an invalid cursor. A string or a float reached the slice and raised TypeError, which the
tests/server/test_pagination.py:48
Method
test_decode_rejects_another_keys_payload
(self)
tests/tasks/server/test_snapshot_encryption.py:98
Method
test_decode_rejects_plaintext
A snapshot written before the key was set must not be trusted.
tests/tasks/server/test_snapshot_encryption.py:103
Method
test_decorated_tool_with_functools_wraps
Regression test for #2524: @mcp.tool with functools.wraps decorator.
tests/server/providers/local_provider_tools/test_context.py:139
Method
test_decorator_mode_setting_removed
(self)
tests/test_upgrade_from_v3.py:318
Function
test_deduplicates_reporters_and_renders_oxford_comma
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:125
Method
test_deep_nesting
(self)
tests/utilities/test_json_schema.py:1170
Method
test_deep_object_explode_true_uses_bracket_notation
(self, director)
tests/utilities/openapi/test_director.py:914
Method
test_deep_object_parameters
Test deepObject parameter handling.
tests/server/providers/openapi/test_comprehensive.py:453
Method
test_deeply_nested_custom_routes_forwarded
Test that custom routes from deeply nested mounts are collected.
tests/server/mount/test_advanced.py:196
Method
test_deeply_nested_models_still_convert
(self)
tests/utilities/json_schema_type/test_generated_classes.py:547
Method
test_deeply_nested_transitive_refs_preserved
Deeply nested transitive refs (A→B→C→D→E) must all be preserved.
tests/utilities/openapi/test_transitive_references.py:395
Method
test_deeply_nested_version_forwarding
Verify version is correctly forwarded through multiple mount levels.
tests/server/versioning/test_mounting.py:312
Method
test_deepobject_explode_false_handling
Test deepObject with explode=false parameter handling.
tests/server/providers/openapi/test_deepobject_style.py:248
Method
test_deepobject_explode_true_handling
Test deepObject with explode=true parameter handling.
tests/server/providers/openapi/test_deepobject_style.py:223
Method
test_deepobject_style_parsing_from_spec
Test that deepObject style parameters are correctly parsed from OpenAPI spec.
tests/server/providers/openapi/test_deepobject_style.py:190
Method
test_deepobject_tool_functionality
Test that tools with deepObject parameters maintain basic functionality.
tests/server/providers/openapi/test_deepobject_style.py:320
Method
test_default_absent_still_renders_blank_form
Sanity: omitting `default` keeps the existing blank-form behavior.
tests/apps/test_form.py:173
Method
test_default_allows_dcr_compatible_redirects
None preserves broad DCR compatibility for ordinary redirect URIs.
tests/server/auth/test_redirect_validation.py:312
Method
test_default_allows_untrusted_host_for_compatibility
(self)
tests/server/http/test_http_auth_middleware.py:164
Method
test_default_application_type_is_native
Omitting application_type defaults to native (the SDK default), so a loopback redirect URI registers successfully.
tests/server/auth/oauth_proxy/test_client_registration.py:306
Method
test_default_application_type_is_native_over_http
Omitting application_type over HTTP defaults to native, so a loopback redirect is accepted (preserving pre-SEP-837 behavior).
tests/server/auth/oauth_proxy/test_client_registration.py:498
Method
test_default_auth_is_none
(self)
tests/client/client/test_auth.py:16
Method
test_default_cache_settings
Test that caching is disabled by default.
tests/server/auth/providers/test_introspection.py:553
Method
test_default_code_for_unmapped_errors
Operation errors without a dedicated mapping use the default code.
tests/test_exceptions.py:42
Method
test_default_configuration
Test default configuration with valid dict.
tests/server/auth/test_oidc_proxy.py:264
Method
test_default_configuration_raises_error
Test default configuration with invalid dict.
tests/server/auth/test_oidc_proxy.py:291
Method
test_default_configuration_with_issuer_trailing_slash
Test default configuration with valid dict and issuer trailing slash.
tests/server/auth/test_oidc_proxy.py:269
Method
test_default_constant
(self)
tests/server/auth/oauth_proxy/test_tokens.py:507
Method
test_default_constants
Verify the default expiry constants are set correctly.
tests/server/auth/oauth_proxy/test_tokens.py:446
Method
test_default_csp_omits_form_action
Test that default CSP omits form-action to avoid Chrome redirect chain issues.
tests/server/auth/test_oauth_consent_page.py:308
Method
test_default_encoding_is_utf8
FileResource defaults to UTF-8, reading non-ASCII without explicit encoding.
tests/resources/test_file_resources.py:140
Method
test_default_field_is_still_required_if_no_default_specified
(self)
tests/server/providers/local_provider_tools/test_parameters.py:181
Method
test_default_field_validation
(self)
tests/server/providers/local_provider_tools/test_parameters.py:166
Method
test_default_get_tool_falls_back_to_list
Test that BaseToolProvider's default get_tool calls list_tools.
tests/server/test_providers.py:229
Method
test_default_get_tool_works
Test that the default get_tool implementation works.
tests/server/test_providers.py:298
Method
test_default_handler_routes_to_correct_levels
Test that default_log_handler routes server logs to appropriate Python log levels.
tests/client/test_logs.py:198
Method
test_default_handler_with_dict_data
Test that default_log_handler handles dict data correctly.
tests/client/test_logs.py:272
Method
test_default_handler_with_list_data
Test that default_log_handler handles list data correctly.
tests/client/test_logs.py:298
Method
test_default_handler_with_number_data
Test that default_log_handler handles numeric data correctly.
tests/client/test_logs.py:323
Method
test_default_handler_without_logger_name
Test that default_log_handler works when logger name is None.
tests/client/test_logs.py:249
Function
test_default_http_app_does_not_load_legacy_httpx
()
tests/test_no_legacy_httpx.py:84
Function
test_default_http_app_does_not_load_opt_in_integrations
()
tests/server/http/test_startup_imports.py:58
Method
test_default_http_client_is_none
(self)
tests/server/auth/providers/test_http_client.py:34
Method
test_default_http_client_is_none
(self)
tests/server/auth/providers/test_http_client.py:138
Method
test_default_http_port_accepts_host_without_port
(self)
tests/cli/test_apps_dev_server.py:304
Method
test_default_identifier_uri_uses_client_id
(self)
tests/server/auth/providers/test_azure_scopes.py:581
Method
test_default_initialization
Test default initialization.
tests/server/auth/test_oidc_proxy.py:448
Method
test_default_is_client_secret_basic
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:28
Method
test_default_is_not_error
(self)
tests/tools/tool/test_results.py:92
Method
test_default_is_not_strict
By default, strict_input_validation should be False.
tests/server/test_input_validation.py:92
Method
test_default_is_true
Default behavior dereferences $ref.
tests/server/middleware/test_dereference.py:56
Method
test_default_issuer_is_derived
Without token_issuer, the issuer is derived from base_authority/tenant_id.
tests/server/auth/providers/test_azure.py:856
Method
test_default_level_allows_all
Without calling set_logging_level, all messages are sent.
tests/client/test_logs.py:133
Method
test_default_matches_auto
Omitting mode= is identical to mode='auto': modern via server/discover.
tests/client/client/test_mode_negotiation.py:81
Method
test_default_max_rounds
(self)
tests/client/client/test_input_required_driver.py:84
Method
test_default_max_size_is_1mb
Test that the default max size is 1MB.
tests/server/middleware/test_response_limiting.py:147
Method
test_default_mime_types
Test default mime types are applied correctly.
tests/resources/test_function_resources.py:281
Method
test_default_mode_does_not_set_approval_cookie
Approving in default (True) mode must NOT set a long-lived approval cookie. In 'always prompt' mode there's no reason to remember approvals,
tests/server/auth/test_oauth_consent_flow.py:1221
Method
test_default_mode_ignores_existing_approval_cookie
A valid approval cookie is ignored in default (True) mode — always prompts. Uses the 'remember' proxy to generate a legitimately-signed cooki
tests/server/auth/test_oauth_consent_flow.py:1249
Method
test_default_mode_ignores_proxy_env_vars
Regression: proxy env vars — including a hostile NO_PROXY that previously caused non-deterministic failures — must not affect the default (non
tests/server/auth/test_ssrf_protection.py:859
Method
test_default_mode_is_auto
The default is 'auto': probe server/discover, fall back to the handshake.
tests/client/client/test_mode_negotiation.py:34
Method
test_default_mode_still_resolves_and_pins
Regression: with the flag off, resolution + blocklist + IP pinning still apply, and no explicit proxy is passed to the client.
tests/server/auth/test_ssrf_protection.py:830
Method
test_default_name_without_title
(self)
tests/utilities/json_schema_type/test_advanced.py:560
Method
test_default_not_applied_when_custom_patterns_supplied
Test that default validation is not applied when custom patterns are supplied.
tests/server/auth/test_oauth_proxy_redirect_validation.py:131
Method
test_default_output_path
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_generate_cli.py:611
Method
test_default_path_matches_transport
(self)
tests/utilities/test_asgi_transport.py:191
Method
test_default_patterns_exist
Test that default patterns are defined.
tests/server/auth/test_redirect_validation.py:559
Method
test_default_patterns_include_localhost
Test that default patterns include localhost variations.
tests/server/auth/test_redirect_validation.py:564
Method
test_default_poll_interval_is_5_seconds
Default poll_interval should be 5 seconds.
tests/tasks/server/test_task_config.py:309
Method
test_default_prefills_form_fields
(self)
tests/apps/test_form.py:158
Method
test_default_priority
(self)
tests/utilities/json_schema_type/test_advanced.py:443
Function
test_default_progress_handler_handles_zero_total
()
tests/client/test_progress.py:73
Method
test_default_rejects_unsafe_browser_schemes
Default DCR compatibility must not allow active browser schemes.
tests/server/auth/test_redirect_validation.py:326
Method
test_default_rejects_unsafe_registered_redirect_scheme
Stored DCR metadata cannot preserve unsafe browser schemes.
tests/server/auth/test_oauth_proxy_redirect_validation.py:96
Method
test_default_repr_uses_subclass_name
(self)
tests/client/transports/test_transports.py:28
Method
test_default_root_is_claude_skills_dir
(self, tmp_path: Path, monkeypatch)
tests/server/providers/test_skills_provider.py:871
Method
test_default_sampling_capabilities_omit_tools
Default sampling capabilities should not include tools field. When serialized with exclude_none=True (as the MCP session does), the c
tests/client/test_sampling.py:194
Method
test_default_scope_applied_when_doc_has_no_scope
When the CIMD document omits scope, the manager's default_scope is used.
tests/server/auth/test_cimd_validators.py:440
Method
test_default_scope_str_falls_back_to_required_scopes
Without valid_scopes, _default_scope_str falls back to required_scopes.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:93
Method
test_default_scope_str_prefers_valid_scopes
When valid_scopes is provided, _default_scope_str should use it instead of required_scopes. This ensures CIMD clients (which bypass Re
tests/server/auth/oauth_proxy/test_oauth_proxy.py:75
← previous
next →
7,401–7,500 of 13,374, ranked by callers