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_default_storage_is_memory
Test that EventStore defaults to in-memory storage.
tests/server/test_event_store.py:254
Function
test_default_storage_persists_across_calls
(clock: list[float])
tests/apps/test_file_upload_retention.py:105
Method
test_default_task_config_is_forbidden
Base component defaults to task_config mode='forbidden'.
tests/tasks/server/test_custom_subclass_tasks.py:222
Method
test_default_task_inherits_server_default
Default task value should inherit from server default.
tests/tasks/server/test_task_config.py:122
Method
test_default_threadpool_permits_concurrency
Sanity check: the default path does not block the loop.
tests/tools/test_tool_run_in_thread.py:172
Function
test_default_timeout_frees_session_capacity
(use_http_app: bool, monkeypatch)
tests/server/http/test_session_idle_timeout.py:114
Function
test_default_timeout_reaches_session_manager
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:46
Function
test_default_timeout_supports_stateless_app
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:85
Method
test_default_token_endpoint_auth_method
(self)
tests/client/auth/test_client_credentials.py:168
Function
test_default_ttl_when_unspecified
The server applies Docket's default TTL when none is configured.
tests/tasks/server/test_task_ttl.py:65
Method
test_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
Function
test_default_uses_introspection_decision
(claim: Any, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_introspection_audience.py:56
Method
test_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
Method
test_default_validator_accepts_non_empty_tokens
(self)
tests/server/auth/providers/test_debug.py:7
Method
test_defaults
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:199
Method
test_defaults_scopes_when_userinfo_has_no_scope
( self, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_huggingface.py:173
Method
test_defaults_to_required_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:617
Method
test_deferred_binding
(self)
tests/client/auth/test_client_credentials.py:129
Method
test_del_tolerates_a_transport_that_never_finished_init
The exact shape a failed subclass __init__ leaves behind.
tests/client/test_stdio.py:146
Method
test_delegate_span_is_child_of_server_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_provider_tracing.py:110
Function
test_delegation_preserves_programmatic_calls_from_child_middleware
()
tests/server/test_provider_extensions.py:771
Function
test_delegation_preserves_programmatic_child_calls
()
tests/server/test_provider_extensions.py:700
Function
test_delete_file
(mcp: FastMCP, test_dir: Path)
tests/server/test_file_server.py:125
Function
test_delete_file_and_check_resources
(mcp: FastMCP, test_dir: Path)
tests/server/test_file_server.py:135
Method
test_delete_missing_key_is_a_noop
(self)
tests/server/test_sessions.py:125
Method
test_delete_removes_entry
(self)
tests/client/client/test_kv_response_cache.py:85
Method
test_delete_state_removes_from_both_stores
delete_state clears both request-scoped and session-scoped values.
tests/server/test_context.py:313
Method
test_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:102
Function
test_denied_file_hides_skill
(denied: str)
tests/skills/test_provider.py:154
Function
test_denied_file_hides_skill_without_reading_it
()
tests/server/providers/proxy/test_skills.py:251
Method
test_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:159
Method
test_denies_when_one_role_missing
(self)
tests/server/auth/test_authorization.py:146
Method
test_denies_without_token
(self)
tests/server/auth/test_authorization.py:151
Method
test_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:636
Method
test_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
Method
test_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
Method
test_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
Method
test_deny_tool_call_with_tool_error
Test that middleware can deny tool calls by raising ToolError.
tests/server/middleware/test_middleware_nested.py:511
Function
test_dependencies_excluded_from_schema
Test that dependency parameters don't appear in the tool schema.
tests/server/test_dependencies.py:128
Function
test_dependency_aenter_returns_fresh_instances
Dependency.__aenter__ returns independent per-invocation objects, not the shared default.
tests/tasks/server/test_concurrent_dependencies.py:142
Function
test_dependency_caching
Test that dependencies are cached within a single tool call.
tests/server/test_dependencies.py:210
Method
test_dependency_class_exists
Test Dependency and Depends are importable from fastmcp.
tests/server/test_dependencies.py:866
Function
test_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
Function
test_dependency_errors_propagate_to_task_failure
If dependency resolution fails, the background task should fail.
tests/tasks/server/test_task_dependencies.py:195
Function
test_dependency_owned_argument_reaches_prompts
(mcp: FastMCP)
tests/server/test_call_arguments.py:235
Function
test_dependency_owned_argument_without_default_is_required
(mcp: FastMCP)
tests/server/test_call_arguments.py:219
Function
test_dependency_owns_an_undeclared_argument
A CallArgument naming a parameter the tool lacks joins the tool's schema.
tests/server/test_call_arguments.py:192
Function
test_dependent_schemas_refs_are_rewritten
()
tests/utilities/openapi/test_subschema_keyword_refs.py:34
Method
test_depends_import_from_fastmcp
Test that Depends can be imported from fastmcp.dependencies.
tests/server/test_dependencies.py:886
Function
test_depends_with_async_context_manager
Test that Depends works with async context managers for resource management.
tests/server/test_dependencies.py:79
Function
test_depends_with_async_function
Test that Depends works with async dependency functions.
tests/server/test_dependencies.py:64
Function
test_depends_with_sync_function
Test that Depends works with sync dependency functions.
tests/server/test_dependencies.py:45
Method
test_depends_works
Test Depends() creates proper dependency wrapper.
tests/server/test_dependencies.py:873
Method
test_deployment_config_fields
Test all Deployment fields.
tests/cli/test_config.py:135
Method
test_deployment_port_is_not_the_proxy_port
The MCP server's HTTP port is unrelated to the Inspector proxy port.
tests/cli/test_run.py:1369
Function
test_deprecation_warning_is_same_from_public_imports
()
tests/test_compat.py:34
Method
test_dereference_false_preserves_refs
(self)
tests/utilities/test_json_schema.py:1054
Method
test_dereference_schemas_false_preserves_refs
With dereference_schemas=False, $ref and $defs are preserved.
tests/server/middleware/test_dereference.py:41
Method
test_dereference_schemas_true_inlines_refs
With dereference_schemas=True (default), tool schemas have $ref inlined.
tests/server/middleware/test_dereference.py:24
Method
test_dereference_true_inlines_refs
(self)
tests/utilities/test_json_schema.py:1049
Method
test_dereferences_nested_refs
Test that nested $refs are dereferenced.
tests/utilities/test_json_schema.py:116
Method
test_dereferences_simple_ref
Test that simple $ref is dereferenced.
tests/utilities/test_json_schema.py:99
Method
test_derive_jwt_key_is_deterministic
Test that same inputs always produce same key.
tests/server/auth/test_jwt_issuer.py:55
Method
test_derive_jwt_key_produces_32_bytes
Test that JWT key derivation produces 32-byte key.
tests/server/auth/test_jwt_issuer.py:17
Method
test_derive_jwt_key_with_different_salts_produces_different_keys
Test that different salts produce different keys.
tests/server/auth/test_jwt_issuer.py:45
Method
test_derive_jwt_key_with_different_secrets_produces_different_keys
Test that different secrets produce different keys.
tests/server/auth/test_jwt_issuer.py:35
Method
test_derived_title_follows_name_override
The derived title should reflect a `name` override, not the original name.
tests/tools/tool/test_title.py:60
Method
test_derived_titles_are_still_pruned
(self)
tests/tools/tool/test_title.py:192
Method
test_description_cannot_plant_a_code_block
(self)
tests/cli/test_generate_cli.py:1014
Method
test_description_in_docstring
(self)
tests/cli/test_generate_cli.py:243
Method
test_description_is_summary_only
(self)
tests/utilities/test_docstring_parsing.py:415
Method
test_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:595
Method
test_description_with_quotes
(self)
tests/cli/test_generate_cli.py:255
Function
test_detailed_schema_enum_union_rules
()
tests/experimental/transforms/test_code_mode.py:1287
Function
test_detailed_schema_includes_single_value_literals
()
tests/experimental/transforms/test_code_mode.py:1307
Method
test_detailed_timing_middleware_per_operation
Test that detailed timing middleware provides operation-specific timing.
tests/server/middleware/test_timing.py:229
Method
test_detect_prefixed_fastmcp_json
Test detection of prefixed fastmcp.json files.
tests/cli/test_mcp_server_config_integration.py:68
Method
test_detect_standard_fastmcp_json
Test detection of standard fastmcp.json file.
tests/cli/test_mcp_server_config_integration.py:59
Method
test_detect_test_fastmcp_json
Test detection of test_fastmcp.json file.
tests/cli/test_mcp_server_config_integration.py:76
Method
test_detects_plain_parameter
(self)
tests/server/test_sessions.py:232
Method
test_deterministic_hash
(self)
tests/utilities/json_schema_type/test_advanced.py:881
Method
test_dev_inspector_command_parsing
Test that dev inspector command can be parsed with various options.
tests/cli/test_cli.py:110
Method
test_dev_inspector_command_parsing_with_new_options
Test dev inspector command parsing with new uv options.
tests/cli/test_cli.py:135
Function
test_device_authorization_uses_the_oauth_form_contract
()
tests/cli/deploy/test_horizon_client.py:27
Function
test_device_token_exchange_keeps_the_api_key_secret
()
tests/cli/deploy/test_horizon_client.py:105
Function
test_device_token_exchange_rejects_empty_access_tokens
( access_token: str, )
tests/cli/deploy/test_horizon_client.py:90
Function
test_device_token_exchange_returns_expected_poll_errors
(error: str)
tests/cli/deploy/test_horizon_client.py:73
Function
test_dict_based_titled_single_select
Test dict-based titled single-select enum.
tests/client/test_elicitation_enums.py:218
Method
test_dict_config
(self)
tests/cli/test_discovery.py:853
Method
test_dict_only_accepts_any_data
Test that pure dict accepts arbitrary key-value pairs
tests/utilities/json_schema_type/test_advanced.py:1245
Method
test_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:1239
Method
test_dict_passthrough
(self)
tests/cli/test_generate_cli.py:139
Method
test_dict_return_auto_serializes
Returning dict from read() auto-serializes to JSON.
tests/resources/test_function_resources.py:69
Method
test_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
Method
test_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
Method
test_dict_serialized_to_json
Dict input is JSON-serialized with application/json mime type.
tests/resources/test_resources.py:139
Method
test_dict_source_minimal
Test that dict source is converted to FileSystemSource.
tests/cli/test_config.py:21
Method
test_dict_source_with_entrypoint
Test dict source with entrypoint field.
tests/cli/test_config.py:30
Method
test_dict_types_are_generated_correctly
(self, input_type, expected_type)
tests/utilities/json_schema_type/test_containers.py:296
Method
test_dictionary_defaults_are_kept_as_field_data
(self)
tests/utilities/json_schema_type/test_generated_classes.py:384
← previous
next →
8,901–9,000 of 15,974, ranked by callers