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_middleware_with_scope_check
(self)
tests/server/auth/test_authorization.py:585
Method
test_migrated_tools_still_work
(self, pair)
tests/docs/test_upgrade_guide_equivalence.py:170
Method
test_mime_type_from_format
Format aliases map to the same MIME type as the matching file extension.
tests/utilities/test_types.py:178
Method
test_mime_type_from_format
Test MIME type normalization from audio format.
tests/utilities/test_types.py:303
Method
test_mime_type_from_format
Text format aliases map to their canonical text/* MIME types.
tests/utilities/test_types.py:493
Function
test_min_clamp_raises_record_to_min_level
( caplog: pytest.LogCaptureFixture, clamped_logger: logging.Logger )
tests/utilities/test_logging.py:167
Method
test_min_items_accepts_valid
(self, min_items_array)
tests/utilities/json_schema_type/test_containers.py:56
Method
test_min_items_rejects_too_few
(self, min_items_array)
tests/utilities/json_schema_type/test_containers.py:60
Method
test_min_length_accepts_valid
(self, min_length_string)
tests/utilities/json_schema_type/test_constraints.py:37
Method
test_min_length_rejects_short
(self, min_length_string)
tests/utilities/json_schema_type/test_constraints.py:41
Method
test_minimal_config
Test creating a config with only required fields.
tests/cli/test_config.py:249
Method
test_minimal_output
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:18
Method
test_minimal_token_has_no_user_identity
Test that minimal tokens contain no user identity or custom claims.
tests/server/auth/test_jwt_issuer.py:105
Method
test_minimum_accepts_equal
(self, min_number)
tests/utilities/json_schema_type/test_constraints.py:107
Method
test_minimum_rejects_less
(self, min_number)
tests/utilities/json_schema_type/test_constraints.py:111
Method
test_minted_token_iss_claim_is_base_url
(self)
tests/server/auth/test_issuer_url_identity.py:250
Method
test_minted_token_iss_claim_is_issuer_url
(self)
tests/server/auth/test_issuer_url_identity.py:141
Method
test_miss_for_unknown_token
(self, cache: TokenCache)
tests/utilities/test_token_cache.py:81
Function
test_missing_annotation
Test that missing annotations don't cause errors
tests/utilities/test_typeadapter.py:148
Method
test_missing_api_key_fails_at_construction
(self, monkeypatch)
tests/experimental/transforms/test_jev_search.py:407
Method
test_missing_aud_returns_none
A 200 response without 'aud' is rejected.
tests/server/auth/providers/test_google.py:346
Method
test_missing_auth_challenge_includes_supported_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:775
Method
test_missing_auth_challenge_uses_required_scope_with_empty_catalog
(self)
tests/server/auth/test_enhanced_error_responses.py:811
Method
test_missing_auth_no_error_attribute
Test that missing auth returns 401 without error attribute (RFC 6750 §3.1).
tests/server/auth/test_enhanced_error_responses.py:713
Function
test_missing_baseline_stays_unknown_while_discussion_is_retained
( triage, monkeypatch )
tests/test_public_triage.py:341
Method
test_missing_bool_with_default_gets_backfilled
(self)
tests/apps/test_form.py:204
Function
test_missing_capability
Requires the client to have declared the sampling capability (SEP-2575). A stateless server may not rely on a capability the client did not decla
tests/conformance/server.py:375
Function
test_missing_capability_code_is_the_protocol_value
The code must track the SDK, not an early SEP-2663 draft. It shipped hardcoded as -32003, which no client recognizes: SEP-2575 assigns -32021
tests/tasks/server/test_extension.py:416
Method
test_missing_cimd_document_raises
validate_private_key_jwt raises ValueError if client has no cimd_document.
tests/server/auth/test_cimd_validators.py:656
Method
test_missing_colon_after_args_keyword
Malformed: 'Args' without colon is not a valid section.
tests/utilities/test_docstring_parsing.py:247
Method
test_missing_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:235
Method
test_missing_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:527
Method
test_missing_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:679
Method
test_missing_data_and_path_raises_error
Test that error is raised when neither path nor data is provided.
tests/utilities/test_types.py:184
Method
test_missing_data_and_path_raises_error
Test that error is raised when neither path nor data is provided.
tests/utilities/test_types.py:323
Method
test_missing_data_and_path_raises_error
Test that error is raised when neither path nor data is provided.
tests/utilities/test_types.py:511
Method
test_missing_file
(self, tmp_path: Path)
tests/cli/test_discovery.py:120
Method
test_missing_file
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:410
Method
test_missing_file_error
Test error when file doesn't exist.
tests/resources/test_file_resources.py:93
Method
test_missing_host_rejected
URLs without host should be rejected.
tests/server/auth/test_ssrf_protection.py:165
Method
test_missing_nested_segment_returns_false
(self)
tests/server/providers/local_provider_tools/test_output_schema.py:431
Function
test_missing_noninteractive_credential_is_explicit
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:209
Function
test_missing_path_filtered_checks_are_not_reported
(status_module, monkeypatch)
tests/test_maintenance_status.py:118
Function
test_missing_path_parameter_is_not_sent_as_placeholder
( arguments: dict[str, str | None], )
tests/utilities/openapi/test_path_values.py:192
Function
test_missing_prompt_argument_preserves_invalid_params
( mode: Literal["auto", "legacy"], mask_error_details: bool, transform_errors: bool )
tests/server/middleware/test_error_handling.py:761
Method
test_missing_query_param_uses_default
Test that missing query parameters fall back to defaults.
tests/resources/test_resource_template_query_params.py:179
Method
test_missing_redirect_uris_rejected
Test that redirect_uris is required for CIMD.
tests/server/auth/test_cimd.py:95
Method
test_missing_required_argument
(self)
tests/tools/tool/test_argument_validation.py:52
Method
test_missing_required_field_error
Test error message for missing required fields.
tests/server/test_input_validation.py:435
Method
test_missing_required_scope_rejected
(self, idp_key: RSAKeyPair)
tests/server/auth/oauth_proxy/test_identity_assertion.py:520
Method
test_missing_required_scope_returns_none
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:188
Function
test_missing_root_serves_nothing
(tmp_path: Path)
tests/skills/test_directory_provider.py:122
Method
test_missing_sdk_is_a_clear_error
(self, monkeypatch)
tests/experimental/transforms/test_jev_search.py:416
Method
test_missing_snapshot_fails_the_task
Fail closed extends to a snapshot that is gone, not just unreadable. A missing snapshot is reachable in production through TTL expiry, and
tests/tasks/server/test_snapshot_encryption.py:292
Method
test_missing_source_rejected
Test that config without source is rejected.
tests/cli/test_mcp_server_config_integration.py:271
Method
test_missing_sub_returns_none
Token with no 'sub' in introspection or userinfo is rejected.
tests/server/auth/providers/test_clerk.py:301
Method
test_missing_sub_returns_none
A 200 response without 'sub' is rejected.
tests/server/auth/providers/test_google.py:417
Method
test_missing_sub_returns_none
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:215
Method
test_missing_token_is_not_insufficient_scope
(self)
tests/server/auth/test_authorization.py:1251
Method
test_missing_type
(self)
tests/cli/test_generate_cli.py:810
Method
test_mixed_boolean_numeric_enums_preserve_value_types
( self, values: list[int | float | bool] )
tests/utilities/json_schema_type/test_json_schema_type.py:303
Method
test_mixed_defaults_and_required
Test that fields with defaults are not in required list.
tests/client/test_elicitation_enums.py:602
Method
test_mixed_formats_object
(self, mixed_formats_object)
tests/utilities/json_schema_type/test_formats.py:129
Function
test_mixed_hidden_args_with_custom_function
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:221
Method
test_mixed_nullable_and_non_nullable
Test mix of nullable and non-nullable fields.
tests/utilities/openapi/test_nullable_fields.py:63
Method
test_mixed_params_with_direct_array
Test route with both URL parameters and direct array request body.
tests/utilities/openapi/test_direct_array_schemas.py:89
Method
test_mixed_raw_and_encoded_rejected
(self)
tests/server/auth/test_redirect_validation.py:540
Method
test_mixed_required_and_optional
(self)
tests/cli/test_client_commands.py:352
Method
test_mixed_string_and_typed_args
Test mixing string args (no conversion) with typed args (conversion needed).
tests/prompts/test_prompt.py:351
Method
test_mixed_sync_and_async_checks
A mix of sync and async checks should all be evaluated.
tests/server/auth/test_authorization.py:398
Method
test_mixed_type_array
(self)
tests/utilities/json_schema_type/test_advanced.py:1075
Method
test_mixed_unserializable_return_annotation
(self)
tests/tools/tool/test_output_schema.py:242
Method
test_mixed_versioned_and_unversioned
(self)
tests/server/transforms/test_catalog.py:166
Method
test_mixing_unversioned_after_versioned_rejected
Cannot add unversioned tool when versioned exists.
tests/server/versioning/test_versioning.py:305
Method
test_mixing_versioned_and_unversioned_rejected
Cannot mix versioned and unversioned tools with the same name.
tests/server/versioning/test_versioning.py:288
Method
test_model_copy_deep_parameter
Test that model_copy respects the deep parameter.
tests/utilities/test_components.py:424
Method
test_model_copy_preserves_all_attributes
Test that model_copy preserves all component attributes.
tests/utilities/test_components.py:374
Method
test_model_copy_with_update
Test that model_copy works with update dict.
tests/utilities/test_components.py:392
Method
test_model_in_typed_mapping_respects_config
A typed mapping's schema and result use the model's field names.
tests/tools/tool/test_results.py:393
Method
test_model_reconstruction
Test reconstructing models from serialized data.
tests/utilities/openapi/test_models.py:441
Method
test_model_visible_tool_findable
@app.tool(model=True) has app visibility and IS findable.
tests/test_fastmcp_app.py:411
Method
test_model_visible_tool_in_list_tools
@app.tool(model=True) (visibility=["app","model"]) appears in list_tools.
tests/test_fastmcp_app.py:658
Method
test_modern_front_mirrors_modern_backend
A modern front through a proxy with NO explicit mode gets a modern backend session, so a guard tool round-trips end-to-end.
tests/server/test_mrtr_guards.py:554
Method
test_modern_front_reaches_modern_backends
A modern front reaches each real backend on a modern session, and a backend guard tool round-trips end to end across both proxy hops.
tests/server/test_mrtr_guards.py:654
Method
test_modern_union_syntax_works
Test that modern | union syntax works with future annotations.
tests/tools/test_tool_future_annotations.py:136
Method
test_modified_message_reaches_sdk_dispatch
A ``logging/setLevel`` carrying an invalid level fails params validation inside ``call_next``. Middleware that rewrites the message to
tests/server/middleware/test_message_visibility.py:238
Function
test_monty_provider_applies_default_limits
()
tests/experimental/transforms/test_code_mode.py:917
Function
test_monty_provider_cancels_future_when_task_cancelled
Cancelling the awaiting task must cancel the underlying sandbox future. Otherwise the Monty worker keeps running to completion after a client
tests/experimental/transforms/test_code_mode.py:1056
Function
test_monty_provider_default_limits_are_not_shared_between_instances
Each default provider must own its limits dict. `limits` is a mutable public attribute; if instances shared the module-level baseline, mutati
tests/experimental/transforms/test_code_mode.py:937
Function
test_monty_provider_explicit_limits_override_defaults
()
tests/experimental/transforms/test_code_mode.py:932
Function
test_monty_provider_explicit_none_disables_limits
()
tests/experimental/transforms/test_code_mode.py:925
Function
test_monty_provider_forwards_inputs
()
tests/experimental/transforms/test_code_mode.py:909
Function
test_monty_provider_forwards_limits
(limits: dict[str, float])
tests/experimental/transforms/test_code_mode.py:888
Function
test_monty_provider_joins_callbacks_on_cancellation
( anyio_cancellation: bool, )
tests/experimental/transforms/test_monty_callback_lifecycle.py:56
Function
test_monty_provider_raises_informative_error_when_missing
( monkeypatch: pytest.MonkeyPatch, )
tests/experimental/transforms/test_code_mode.py:864
Function
test_monty_provider_rejects_callbacks_queued_after_exit
()
tests/experimental/transforms/test_monty_callback_lifecycle.py:95
Function
test_monty_provider_rejects_unsupported_limits
(key: str)
tests/experimental/transforms/test_code_mode.py:899
Function
test_monty_provider_waits_for_unawaited_callback_cleanup
( raises: bool, )
tests/experimental/transforms/test_monty_callback_lifecycle.py:19
Method
test_mount_as_proxy_kwarg_removed
(self)
tests/test_upgrade_from_v3.py:293
Method
test_mount_multiple_servers
Test mounting multiple servers with different prefixes.
tests/server/mount/test_mount.py:195
← previous
next →
11,301–11,400 of 15,974, ranked by callers