MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_decode_header_with_kid
Test decoding header with key ID for JWKS lookup.
tests/utilities/test_auth.py:38
Methodtest_decode_invalid_base64_raises
Invalid base64 should raise ValueError.
tests/server/test_pagination.py:34
Methodtest_decode_invalid_json_raises
Valid base64 but invalid JSON should raise ValueError.
tests/server/test_pagination.py:39
Methodtest_decode_missing_offset_raises
JSON missing the offset key should raise ValueError.
tests/server/test_pagination.py:62
Methodtest_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
Methodtest_decode_payload_with_claims
Test decoding payload with various claims.
tests/utilities/test_auth.py:93
Methodtest_decode_payload_with_padding_edge_cases
Test that base64 padding is handled correctly.
tests/utilities/test_auth.py:120
Methodtest_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
Methodtest_decode_rejects_another_keys_payload
(self)
tests/tasks/server/test_snapshot_encryption.py:98
Methodtest_decode_rejects_plaintext
A snapshot written before the key was set must not be trusted.
tests/tasks/server/test_snapshot_encryption.py:103
Methodtest_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
Methodtest_decorator_mode_setting_removed
(self)
tests/test_upgrade_from_v3.py:318
Functiontest_deduplicates_reporters_and_renders_oxford_comma
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:125
Functiontest_deep_composition_chain_retains_leaf_members
()
tests/utilities/openapi/test_composition_graphs.py:14
Methodtest_deep_nesting
(self)
tests/utilities/test_json_schema.py:1365
Methodtest_deep_object_explode_true_uses_bracket_notation
(self, director)
tests/utilities/openapi/test_director.py:945
Methodtest_deep_object_parameters
Test deepObject parameter handling.
tests/server/providers/openapi/test_comprehensive.py:453
Methodtest_deeply_nested_custom_routes_forwarded
Test that custom routes from deeply nested mounts are collected.
tests/server/mount/test_advanced.py:196
Methodtest_deeply_nested_models_still_convert
(self)
tests/utilities/json_schema_type/test_generated_classes.py:547
Methodtest_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
Methodtest_deeply_nested_version_forwarding
Verify version is correctly forwarded through multiple mount levels.
tests/server/versioning/test_mounting.py:312
Methodtest_deepobject_explode_false_handling
Test deepObject with explode=false parameter handling.
tests/server/providers/openapi/test_deepobject_style.py:248
Methodtest_deepobject_explode_true_handling
Test deepObject with explode=true parameter handling.
tests/server/providers/openapi/test_deepobject_style.py:223
Methodtest_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
Methodtest_deepobject_tool_functionality
Test that tools with deepObject parameters maintain basic functionality.
tests/server/providers/openapi/test_deepobject_style.py:320
Methodtest_def_to_def_escaped_reference_keeps_both_defs
(self)
tests/utilities/test_json_schema.py:1004
Methodtest_default_absent_still_renders_blank_form
Sanity: omitting `default` keeps the existing blank-form behavior.
tests/apps/test_form.py:174
Methodtest_default_allows_dcr_compatible_redirects
None preserves broad DCR compatibility for ordinary redirect URIs.
tests/server/auth/test_redirect_validation.py:372
Methodtest_default_allows_untrusted_host_for_compatibility
(self)
tests/server/http/test_http_auth_middleware.py:273
Methodtest_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
Methodtest_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
Methodtest_default_auth_is_none
(self)
tests/client/client/test_auth.py:16
Methodtest_default_base_model_policy_still_nulls_silently
A plain BaseModel's embedded config wins over the outer constants policy. pydantic's per-model default (`ser_json_inf_nan="null"`) rewrites t
tests/tools/tool/test_nonfinite_serialization.py:168
Methodtest_default_cache_settings
Test that caching is disabled by default.
tests/server/auth/providers/test_introspection.py:553
Methodtest_default_code_for_unmapped_errors
Operation errors without a dedicated mapping use the default code.
tests/test_exceptions.py:42
Methodtest_default_configuration
Test default configuration with valid dict.
tests/server/auth/test_oidc_proxy.py:264
Methodtest_default_configuration_raises_error
Test default configuration with invalid dict.
tests/server/auth/test_oidc_proxy.py:291
Methodtest_default_configuration_with_issuer_trailing_slash
Test default configuration with valid dict and issuer trailing slash.
tests/server/auth/test_oidc_proxy.py:269
Methodtest_default_constant
(self)
tests/server/auth/oauth_proxy/test_tokens.py:629
Methodtest_default_constants
Verify the default expiry constants are set correctly.
tests/server/auth/oauth_proxy/test_tokens.py:568
Methodtest_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:470
Methodtest_default_encoding_is_utf8
FileResource defaults to UTF-8, reading non-ASCII without explicit encoding.
tests/resources/test_file_resources.py:140
Methodtest_default_field_is_still_required_if_no_default_specified
(self)
tests/server/providers/local_provider_tools/test_parameters.py:181
Methodtest_default_field_validation
(self)
tests/server/providers/local_provider_tools/test_parameters.py:166
Methodtest_default_get_tool_falls_back_to_list
Test that BaseToolProvider's default get_tool calls list_tools.
tests/server/test_providers.py:229
Methodtest_default_get_tool_works
Test that the default get_tool implementation works.
tests/server/test_providers.py:298
Methodtest_default_handler_routes_to_correct_levels
Test that default_log_handler routes server logs to appropriate Python log levels.
tests/client/test_logs.py:290
Methodtest_default_handler_with_dict_data
Test that default_log_handler handles dict data correctly.
tests/client/test_logs.py:364
Methodtest_default_handler_with_list_data
Test that default_log_handler handles list data correctly.
tests/client/test_logs.py:390
Methodtest_default_handler_with_number_data
Test that default_log_handler handles numeric data correctly.
tests/client/test_logs.py:415
Methodtest_default_handler_without_logger_name
Test that default_log_handler works when logger name is None.
tests/client/test_logs.py:341
Functiontest_default_http_app_does_not_load_legacy_httpx
()
tests/test_no_legacy_httpx.py:84
Functiontest_default_http_app_does_not_load_opt_in_integrations
()
tests/server/http/test_startup_imports.py:58
Methodtest_default_http_client_is_none
(self)
tests/server/auth/providers/test_http_client.py:34
Methodtest_default_http_client_is_none
(self)
tests/server/auth/providers/test_http_client.py:138
Methodtest_default_http_port_accepts_host_without_port
(self)
tests/cli/test_apps_dev_server.py:367
Methodtest_default_identifier_uri_uses_client_id
(self)
tests/server/auth/providers/test_azure_scopes.py:581
Methodtest_default_initialization
Test default initialization.
tests/server/auth/test_oidc_proxy.py:448
Methodtest_default_is_client_secret_basic
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:28
Methodtest_default_is_not_error
(self)
tests/tools/tool/test_results.py:93
Methodtest_default_is_not_strict
By default, strict_input_validation should be False.
tests/server/test_input_validation.py:107
Methodtest_default_is_true
Default behavior dereferences $ref.
tests/server/middleware/test_dereference.py:56
Methodtest_default_issuer_is_derived
Without token_issuer, the issuer is derived from base_authority/tenant_id.
tests/server/auth/providers/test_azure.py:1025
Methodtest_default_level_allows_all
Without calling set_logging_level, all messages are sent.
tests/client/test_logs.py:135
Methodtest_default_matches_auto
Omitting mode= is identical to mode='auto': modern via server/discover.
tests/client/client/test_mode_negotiation.py:81
Methodtest_default_max_rounds
(self)
tests/client/client/test_input_required_driver.py:85
Methodtest_default_max_size_is_1mb
Test that the default max size is 1MB.
tests/server/middleware/test_response_limiting.py:160
Methodtest_default_method_follows_client_secret
( self, client_secret: str | None, method: str | None, expected: str )
tests/server/auth/oauth_proxy/test_upstream_client.py:51
Methodtest_default_mime_types
Test default mime types are applied correctly.
tests/resources/test_function_resources.py:281
Methodtest_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
Methodtest_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
Methodtest_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:882
Methodtest_default_mode_is_auto
The default is 'auto': probe server/discover, fall back to the handshake.
tests/client/client/test_mode_negotiation.py:34
Methodtest_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:853
Methodtest_default_name_without_title
(self)
tests/utilities/json_schema_type/test_advanced.py:1107
Methodtest_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
Methodtest_default_output_path
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_generate_cli.py:629
Methodtest_default_path_matches_transport
(self)
tests/utilities/test_asgi_transport.py:191
Methodtest_default_patterns_exist
Test that default patterns are defined.
tests/server/auth/test_redirect_validation.py:619
Methodtest_default_patterns_include_localhost
Test that default patterns include localhost variations.
tests/server/auth/test_redirect_validation.py:624
Methodtest_default_poll_interval_is_5_seconds
Default poll_interval should be 5 seconds.
tests/tasks/server/test_task_config.py:309
Methodtest_default_prefills_form_fields
(self)
tests/apps/test_form.py:159
Methodtest_default_priority
(self)
tests/utilities/json_schema_type/test_advanced.py:990
Functiontest_default_progress_handler_handles_zero_total
()
tests/client/test_progress.py:73
Methodtest_default_registry_is_public_npm
(self)
tests/cli/test_apps_dev_server.py:776
Methodtest_default_rejects_unsafe_browser_schemes
Default DCR compatibility must not allow active browser schemes.
tests/server/auth/test_redirect_validation.py:386
Methodtest_default_rejects_unsafe_registered_redirect_scheme
Stored DCR metadata cannot preserve unsafe browser schemes.
tests/server/auth/test_oauth_proxy_redirect_validation.py:96
Methodtest_default_repr_uses_subclass_name
(self)
tests/client/transports/test_transports.py:29
Methodtest_default_root_is_claude_skills_dir
(self, tmp_path: Path, monkeypatch)
tests/server/providers/test_skills_provider.py:985
Methodtest_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
Methodtest_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:550
Methodtest_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
Methodtest_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
Methodtest_default_scopes
Test that default required scopes are openid, email, profile.
tests/server/auth/providers/test_clerk.py:114
Methodtest_default_serializer_rewrites_non_finite_to_null
`default_serializer` (the text-content path) still nulls non-finites. It goes through pydantic's default JSON policy, so it can disagree with
tests/tools/tool/test_nonfinite_serialization.py:198
Methodtest_default_session_class_is_version_aware
(self)
tests/client/client/test_session.py:332
Methodtest_default_session_id_is_none
(self)
tests/client/transports/test_transports.py:32
Methodtest_default_sets_renderer_uri
(self)
tests/test_apps.py:698
Methodtest_default_silent_on_older_prefab
When the sniff says False, `default` is accepted but no-ops. This test's real value is that `default` is part of the tool signature r
tests/apps/test_form.py:184
Functiontest_default_sse_event_size_still_rejects_large_results
()
tests/client/transports/test_sse_event_size.py:37
← previousnext →8,801–8,900 of 15,974, ranked by callers