MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_default_scopes
Test that default required scopes are openid, email, profile.
tests/server/auth/providers/test_clerk.py:95
Methodtest_default_session_class_is_client_session
(self)
tests/client/client/test_session.py:221
Methodtest_default_session_id_is_none
(self)
tests/client/transports/test_transports.py:31
Methodtest_default_sets_renderer_uri
(self)
tests/test_apps.py:683
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:183
Methodtest_default_storage_is_memory
Test that EventStore defaults to in-memory storage.
tests/server/test_event_store.py:247
Methodtest_default_task_config_is_forbidden
Base component defaults to task_config mode='forbidden'.
tests/tasks/server/test_custom_subclass_tasks.py:222
Methodtest_default_task_inherits_server_default
Default task value should inherit from server default.
tests/tasks/server/test_task_config.py:122
Methodtest_default_threadpool_permits_concurrency
Sanity check: the default path does not block the loop.
tests/tools/test_tool_run_in_thread.py:172
Methodtest_default_token_endpoint_auth_method
(self)
tests/client/auth/test_client_credentials.py:167
Functiontest_default_ttl_when_unspecified
The server applies Docket's default TTL when none is configured.
tests/tasks/server/test_task_ttl.py:64
Methodtest_default_uses_exact_registered_external_redirect_uri
Default DCR clients require exact matches for non-loopback callbacks.
tests/server/auth/test_oauth_proxy_redirect_validation.py:61
Methodtest_default_uses_registered_redirect_uris_with_loopback_port_flexibility
Default DCR clients allow registered loopback callbacks to vary ports.
tests/server/auth/test_oauth_proxy_redirect_validation.py:36
Methodtest_default_validator_accepts_non_empty_tokens
(self)
tests/server/auth/providers/test_debug.py:7
Methodtest_defaults
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:199
Methodtest_defaults_scopes_when_userinfo_has_no_scope
( self, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_huggingface.py:173
Methodtest_defaults_to_required_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:589
Methodtest_deferred_binding
(self)
tests/client/auth/test_client_credentials.py:128
Methodtest_del_tolerates_a_transport_that_never_finished_init
The exact shape a failed subclass __init__ leaves behind.
tests/client/test_stdio.py:138
Methodtest_delegate_span_is_child_of_server_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_provider_tracing.py:109
Functiontest_delegation_preserves_programmatic_calls_from_child_middleware
()
tests/server/test_provider_extensions.py:771
Functiontest_delegation_preserves_programmatic_child_calls
()
tests/server/test_provider_extensions.py:700
Functiontest_delete_file
(mcp: FastMCP, test_dir: Path)
tests/server/test_file_server.py:125
Functiontest_delete_file_and_check_resources
(mcp: FastMCP, test_dir: Path)
tests/server/test_file_server.py:135
Methodtest_delete_missing_key_is_a_noop
(self)
tests/server/test_sessions.py:125
Methodtest_delete_removes_entry
(self)
tests/client/client/test_kv_response_cache.py:85
Methodtest_delete_state_removes_from_both_stores
delete_state clears both request-scoped and session-scoped values.
tests/server/test_context.py:284
Methodtest_denied_consumes_do_not_freeze_clock
Regression for #4056: a client that retries quickly after being denied must not be able to bypass the configured refill rate. last_re
tests/server/middleware/test_rate_limiting.py:86
Methodtest_denies_when_claim_absent_or_malformed
A token without the claim is an ordinary denial, not a broken check.
tests/server/auth/test_authorization.py:142
Methodtest_denies_when_one_role_missing
(self)
tests/server/auth/test_authorization.py:129
Methodtest_denies_without_token
(self)
tests/server/auth/test_authorization.py:134
Methodtest_deny_does_not_redirect_to_unsafe_stored_uri
Consent denial must not redirect to an unsafe stored callback URI.
tests/server/auth/test_oauth_consent_page.py:474
Methodtest_deny_redirect_does_not_duplicate_iss_already_in_redirect_uri
RFC 9207 P2 regression: a registered redirect_uri may already carry its own `iss` query parameter. Explicit consent denial must not ap
tests/server/auth/test_oauth_consent_flow.py:951
Methodtest_deny_redirect_issuer_matches_path_base_url_metadata
Consent-denial `iss` must match the discovery document exactly. Regression test for a base_url with a path and no trailing slash (`ht
tests/server/auth/test_oauth_consent_flow.py:990
Methodtest_deny_sets_cookie_and_redirects_with_error
Verify denying consent in 'remember' mode sets signed cookie and redirects with error.
tests/server/auth/test_oauth_consent_flow.py:917
Methodtest_deny_tool_call_with_tool_error
Test that middleware can deny tool calls by raising ToolError.
tests/server/middleware/test_middleware_nested.py:511
Functiontest_dependencies_excluded_from_schema
Test that dependency parameters don't appear in the tool schema.
tests/server/test_dependencies.py:128
Functiontest_dependency_aenter_returns_fresh_instances
Dependency.__aenter__ returns independent per-invocation objects, not the shared default.
tests/tasks/server/test_concurrent_dependencies.py:142
Functiontest_dependency_caching
Test that dependencies are cached within a single tool call.
tests/server/test_dependencies.py:210
Methodtest_dependency_class_exists
Test Dependency and Depends are importable from fastmcp.
tests/server/test_dependencies.py:866
Functiontest_dependency_context_managers_cleaned_up_in_background
Context-manager dependencies are cleaned up after a background task.
tests/tasks/server/test_task_dependencies.py:164
Functiontest_dependency_errors_propagate_to_task_failure
If dependency resolution fails, the background task should fail.
tests/tasks/server/test_task_dependencies.py:195
Methodtest_depends_import_from_fastmcp
Test that Depends can be imported from fastmcp.dependencies.
tests/server/test_dependencies.py:886
Functiontest_depends_with_async_context_manager
Test that Depends works with async context managers for resource management.
tests/server/test_dependencies.py:79
Functiontest_depends_with_async_function
Test that Depends works with async dependency functions.
tests/server/test_dependencies.py:64
Functiontest_depends_with_sync_function
Test that Depends works with sync dependency functions.
tests/server/test_dependencies.py:45
Methodtest_depends_works
Test Depends() creates proper dependency wrapper.
tests/server/test_dependencies.py:873
Methodtest_deployment_config_fields
Test all Deployment fields.
tests/cli/test_config.py:135
Functiontest_deprecation_warning_is_same_from_public_imports
()
tests/test_compat.py:34
Methodtest_dereference_false_preserves_refs
(self)
tests/utilities/test_json_schema.py:859
Methodtest_dereference_schemas_false_preserves_refs
With dereference_schemas=False, $ref and $defs are preserved.
tests/server/middleware/test_dereference.py:41
Methodtest_dereference_schemas_true_inlines_refs
With dereference_schemas=True (default), tool schemas have $ref inlined.
tests/server/middleware/test_dereference.py:24
Methodtest_dereference_true_inlines_refs
(self)
tests/utilities/test_json_schema.py:854
Methodtest_dereferences_nested_refs
Test that nested $refs are dereferenced.
tests/utilities/test_json_schema.py:115
Methodtest_dereferences_simple_ref
Test that simple $ref is dereferenced.
tests/utilities/test_json_schema.py:98
Methodtest_derive_jwt_key_is_deterministic
Test that same inputs always produce same key.
tests/server/auth/test_jwt_issuer.py:55
Methodtest_derive_jwt_key_produces_32_bytes
Test that JWT key derivation produces 32-byte key.
tests/server/auth/test_jwt_issuer.py:17
Methodtest_derive_jwt_key_with_different_salts_produces_different_keys
Test that different salts produce different keys.
tests/server/auth/test_jwt_issuer.py:45
Methodtest_derive_jwt_key_with_different_secrets_produces_different_keys
Test that different secrets produce different keys.
tests/server/auth/test_jwt_issuer.py:35
Methodtest_derived_title_follows_name_override
The derived title should reflect a `name` override, not the original name.
tests/tools/tool/test_title.py:60
Methodtest_derived_titles_are_still_pruned
(self)
tests/tools/tool/test_title.py:192
Methodtest_description_in_docstring
(self)
tests/cli/test_generate_cli.py:240
Methodtest_description_is_summary_only
(self)
tests/utilities/test_docstring_parsing.py:304
Methodtest_description_survives_namespaced_mount
The contract names no specific tool, so it stays correct when a mount renames the lifecycle tool under a namespace — the description must not
tests/server/test_session_provider.py:542
Methodtest_description_with_quotes
(self)
tests/cli/test_generate_cli.py:252
Functiontest_detailed_schema_enum_union_rules
()
tests/experimental/transforms/test_code_mode.py:1228
Functiontest_detailed_schema_includes_single_value_literals
()
tests/experimental/transforms/test_code_mode.py:1248
Methodtest_detailed_timing_middleware_per_operation
Test that detailed timing middleware provides operation-specific timing.
tests/server/middleware/test_timing.py:229
Methodtest_detect_prefixed_fastmcp_json
Test detection of prefixed fastmcp.json files.
tests/cli/test_mcp_server_config_integration.py:67
Methodtest_detect_standard_fastmcp_json
Test detection of standard fastmcp.json file.
tests/cli/test_mcp_server_config_integration.py:58
Methodtest_detect_test_fastmcp_json
Test detection of test_fastmcp.json file.
tests/cli/test_mcp_server_config_integration.py:75
Methodtest_detects_plain_parameter
(self)
tests/server/test_sessions.py:232
Methodtest_deterministic_hash
(self)
tests/utilities/json_schema_type/test_advanced.py:334
Methodtest_dev_inspector_command_parsing
Test that dev inspector command can be parsed with various options.
tests/cli/test_cli.py:108
Methodtest_dev_inspector_command_parsing_with_new_options
Test dev inspector command parsing with new uv options.
tests/cli/test_cli.py:133
Functiontest_device_authorization_uses_the_oauth_form_contract
()
tests/cli/deploy/test_horizon_client.py:27
Functiontest_device_token_exchange_keeps_the_api_key_secret
()
tests/cli/deploy/test_horizon_client.py:105
Functiontest_device_token_exchange_rejects_empty_access_tokens
( access_token: str, )
tests/cli/deploy/test_horizon_client.py:90
Functiontest_device_token_exchange_returns_expected_poll_errors
(error: str)
tests/cli/deploy/test_horizon_client.py:73
Functiontest_dict_based_titled_single_select
Test dict-based titled single-select enum.
tests/client/test_elicitation_enums.py:152
Methodtest_dict_config
(self)
tests/cli/test_discovery.py:725
Methodtest_dict_only_accepts_any_data
Test that pure dict accepts arbitrary key-value pairs
tests/utilities/json_schema_type/test_advanced.py:698
Methodtest_dict_only_returns_dict_type
Test that schema with no properties + additionalProperties=True returns dict[str, Any]
tests/utilities/json_schema_type/test_advanced.py:692
Methodtest_dict_passthrough
(self)
tests/cli/test_generate_cli.py:137
Methodtest_dict_return_auto_serializes
Returning dict from read() auto-serializes to JSON.
tests/resources/test_function_resources.py:69
Methodtest_dict_return_creates_structured_content_without_schema
Test that dict returns automatically create structured content even without output schema.
tests/tools/tool/test_content.py:251
Methodtest_dict_return_does_not_include_wrap_result_meta
A tool returning dict should NOT set wrap_result in meta.
tests/tools/tool/test_output_schema.py:609
Methodtest_dict_serialized_to_json
Dict input is JSON-serialized with application/json mime type.
tests/resources/test_resources.py:139
Methodtest_dict_source_minimal
Test that dict source is converted to FileSystemSource.
tests/cli/test_config.py:21
Methodtest_dict_source_with_entrypoint
Test dict source with entrypoint field.
tests/cli/test_config.py:30
Methodtest_dict_types_are_generated_correctly
(self, input_type, expected_type)
tests/utilities/json_schema_type/test_containers.py:138
Methodtest_dictionary_defaults_are_kept_as_field_data
(self)
tests/utilities/json_schema_type/test_generated_classes.py:384
Methodtest_dictionary_defaults_in_elicitation_schemas
(self, case: str)
tests/utilities/json_schema_type/test_generated_classes.py:419
Methodtest_dictionary_defaults_in_tool_results
(self, case: str)
tests/utilities/json_schema_type/test_generated_classes.py:402
Methodtest_dictionary_defaults_leave_class_annotations_unchanged
(self)
tests/utilities/json_schema_type/test_generated_classes.py:394
Methodtest_different_app_names_different_hash
(self)
tests/server/providers/test_addressing.py:26
Methodtest_different_names_different_classes
(self)
tests/utilities/json_schema_type/test_advanced.py:303
Methodtest_different_schemas_different_hashes
(self)
tests/utilities/json_schema_type/test_advanced.py:342
Methodtest_different_tokens_are_cached_separately
Test that different tokens have separate cache entries.
tests/server/auth/providers/test_introspection.py:756
Methodtest_different_tokens_cached_separately
(self, cache: TokenCache)
tests/utilities/test_token_cache.py:86
← previousnext →7,501–7,600 of 13,374, ranked by callers