Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
17,519 in github.com/PrefectHQ/fastmcp
⨍
Functions
17,519
◇
Types & classes
2,390
↳
Endpoints
196
Function
test_custom_tool_raising_tool_error_completes_with_is_error
A custom Tool that raises `ToolError` is a completed, is_error task. Same contract as a raising `FunctionTool`: a raised tool error is a comp
tests/tasks/server/test_custom_subclass_tasks.py:148
Function
test_custom_tool_registers_with_docket
A task-capable custom tool registers its `run` entry point with Docket.
tests/tasks/server/test_custom_subclass_tasks.py:192
Function
test_custom_tool_result_matches_legacy_advertised_wrapper
( mode: str, transform_results: bool, raw_output: bool, schema: dict[str, Any], )
tests/server/providers/proxy/test_non_object_outputs.py:300
Function
test_custom_tool_sync_execution
Custom tool executes synchronously without a tasks opt-in.
tests/tasks/server/test_custom_subclass_tasks.py:103
Function
test_custom_tool_with_arguments
Custom tool receives arguments correctly in background execution.
tests/tasks/server/test_custom_subclass_tasks.py:120
Function
test_custom_transform_does_not_mutate_schema_default
()
tests/tools/tool_transform/test_args.py:95
Method
test_custom_truncation_suffix
Test that custom truncation suffix is applied.
tests/server/middleware/test_response_limiting.py:110
Method
test_custom_type_conversion
Test handling of custom types.
tests/resources/test_resource_template.py:296
Method
test_custom_type_return_raises_type_error
Returning custom type from read() raises TypeError - use ResourceResult.
tests/resources/test_function_resources.py:122
Method
test_custom_verifier_audience_not_overwritten
( self, valid_oidc_configuration_dict )
tests/server/auth/providers/test_auth0_mcp.py:177
Function
test_custom_verifier_keeps_provider_required_scopes
(name: str)
tests/server/auth/test_remote_auth_required_scopes.py:82
Function
test_custom_verifier_without_required_scopes_uses_verifier
(name: str)
tests/server/auth/test_remote_auth_required_scopes.py:90
Method
test_cwd_path_resolution
Test that working directory is resolved relative to config.
tests/cli/test_mcp_server_config_integration.py:196
Function
test_cyclic_composition_budget
(monkeypatch)
tests/utilities/openapi/test_composition_graphs.py:145
Function
test_cyclic_members_keep_contextual_merge_order
()
tests/utilities/openapi/test_composition_graphs.py:99
Function
test_cyclic_references_do_not_hang_projection
()
tests/server/providers/openapi/test_write_only_responses.py:319
Method
test_cycling_cursors_terminates
list_tools should stop if the server cycles through a set of cursors.
tests/server/test_pagination.py:522
Function
test_daily_history_keeps_zero_days_and_utc_boundaries
(status_module)
tests/test_maintenance_status.py:135
Method
test_dangerous_characters_encoded
(self)
tests/cli/test_goose.py:117
Method
test_data_parsed_on_terminal_result_only
`.data` deserialization runs on the resolved terminal result, never on the intermediate InputRequiredResult.
tests/client/client/test_input_required_driver.py:121
Method
test_data_uri_icon
Test using data URIs for icons.
tests/server/test_icons.py:298
Method
test_data_uri_icons
Test that data URI icons are extracted correctly.
tests/utilities/test_inspect_icons.py:240
Method
test_dataclass_return_annotation
(self)
tests/tools/tool/test_output_schema.py:203
Method
test_dataclass_return_creates_structured_content_without_schema
Test that dataclass returns automatically create structured content even without output schema.
tests/tools/tool/test_content.py:267
Method
test_dataclass_union_string_works
Test that union of dataclass and string works correctly.
tests/tools/tool/test_results.py:226
Method
test_date_invalid
(self, date_format)
tests/utilities/json_schema_type/test_formats.py:147
Method
test_date_time_string_is_accepted
(self)
tests/client/test_elicitation.py:1008
Method
test_date_type
(self)
tests/server/providers/local_provider_tools/test_parameters.py:358
Method
test_date_type_parse_string
(self)
tests/server/providers/local_provider_tools/test_parameters.py:370
Method
test_date_valid
(self, date_format)
tests/utilities/json_schema_type/test_formats.py:141
Method
test_date_versions
Works with date-based versions like '2025-01-15'.
tests/server/versioning/test_filtering.py:190
Method
test_datetime
(self)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:98
Method
test_datetime_invalid
(self, datetime_format)
tests/utilities/json_schema_type/test_formats.py:83
Method
test_datetime_type
(self)
tests/server/providers/local_provider_tools/test_parameters.py:324
Method
test_datetime_type_error
(self)
tests/server/providers/local_provider_tools/test_parameters.py:346
Method
test_datetime_type_parse_string
(self)
tests/server/providers/local_provider_tools/test_parameters.py:336
Method
test_datetime_valid
(self, datetime_format)
tests/utilities/json_schema_type/test_formats.py:78
Function
test_day_counts_match_the_floors_buckets
()
tests/test_triage_floor_feed.py:204
Function
test_day_record_adds_this_runs_moves_to_the_days
(monkeypatch)
tests/test_triage_floor_feed.py:236
Function
test_days_carry_every_line_and_a_total
(downloads)
tests/test_pypi_downloads.py:20
Method
test_dcr_adds_jwt_bearer_when_enabled
(self, config: IdentityAssertion)
tests/server/auth/oauth_proxy/test_identity_assertion.py:985
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:1000
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:1015
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:1595
Method
test_declared_private_use_redirect_reaches_consent
( self, oauth_proxy, declare_client, redirect_uri )
tests/server/auth/oauth_proxy/test_authorization.py:314
Function
test_declared_reserved_names_do_not_override_extra_field_validation
()
tests/utilities/json_schema_type/test_typed_extra_fields.py:97
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_declined_content_is_not_validated
(self)
tests/client/test_elicitation.py:1018
Method
test_declined_elicitation_is_not_an_accepted_answer
A handler's decline or cancel reaches the resolver as a refusal, whether it returns FastMCP's `ElicitResult` or the SDK's own.
tests/client/client/test_input_required_driver.py:158
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
Function
test_deep_composition_chain_retains_leaf_members
()
tests/utilities/openapi/test_composition_graphs.py:14
Method
test_deep_nesting
(self)
tests/utilities/test_json_schema.py:1366
Method
test_deep_object_explode_true_uses_bracket_notation
(self, director)
tests/utilities/openapi/test_director.py:945
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_def_to_def_escaped_reference_keeps_both_defs
(self)
tests/utilities/test_json_schema.py:1005
Method
test_default_absent_still_renders_blank_form
Sanity: omitting `default` keeps the existing blank-form behavior.
tests/apps/test_form.py:174
Method
test_default_allows_dcr_compatible_redirects
None preserves broad DCR compatibility for ordinary redirect URIs.
tests/server/auth/test_redirect_validation.py:542
Method
test_default_allows_untrusted_host_for_compatibility
(self)
tests/server/http/test_http_auth_middleware.py:273
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_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
Method
test_default_cache_hints_are_none
Unset ttl_ms and cache_scope are None and not in model_fields_set.
tests/resources/test_resources.py:275
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:629
Method
test_default_constants
Verify the default expiry constants are set correctly.
tests/server/auth/oauth_proxy/test_tokens.py:568
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:470
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
← previous
next →
9,801–9,900 of 17,519, ranked by callers