MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_default_storage_is_memory
Test that EventStore defaults to in-memory storage.
tests/server/test_event_store.py:254
Functiontest_default_storage_persists_across_calls
(clock: list[float])
tests/apps/test_file_upload_retention.py:105
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
Functiontest_default_timeout_frees_session_capacity
(use_http_app: bool, monkeypatch)
tests/server/http/test_session_idle_timeout.py:114
Functiontest_default_timeout_reaches_session_manager
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:46
Functiontest_default_timeout_supports_stateless_app
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:85
Methodtest_default_token_endpoint_auth_method
(self)
tests/client/auth/test_client_credentials.py:168
Functiontest_default_ttl_when_unspecified
The server applies Docket's default TTL when none is configured.
tests/tasks/server/test_task_ttl.py:65
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
Functiontest_default_uses_introspection_decision
(claim: Any, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_introspection_audience.py:56
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:617
Methodtest_deferred_binding
(self)
tests/client/auth/test_client_credentials.py:129
Methodtest_del_tolerates_a_transport_that_never_finished_init
The exact shape a failed subclass __init__ leaves behind.
tests/client/test_stdio.py:146
Methodtest_delegate_span_is_child_of_server_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_provider_tracing.py:110
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:313
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:102
Functiontest_denied_file_hides_skill
(denied: str)
tests/skills/test_provider.py:154
Functiontest_denied_file_hides_skill_without_reading_it
()
tests/server/providers/proxy/test_skills.py:251
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:159
Methodtest_denies_when_one_role_missing
(self)
tests/server/auth/test_authorization.py:146
Methodtest_denies_without_token
(self)
tests/server/auth/test_authorization.py:151
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:636
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
Functiontest_dependency_owned_argument_reaches_prompts
(mcp: FastMCP)
tests/server/test_call_arguments.py:235
Functiontest_dependency_owned_argument_without_default_is_required
(mcp: FastMCP)
tests/server/test_call_arguments.py:219
Functiontest_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
Functiontest_dependent_schemas_refs_are_rewritten
()
tests/utilities/openapi/test_subschema_keyword_refs.py:34
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
Methodtest_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
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:1054
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:1049
Methodtest_dereferences_nested_refs
Test that nested $refs are dereferenced.
tests/utilities/test_json_schema.py:116
Methodtest_dereferences_simple_ref
Test that simple $ref is dereferenced.
tests/utilities/test_json_schema.py:99
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_cannot_plant_a_code_block
(self)
tests/cli/test_generate_cli.py:1014
Methodtest_description_in_docstring
(self)
tests/cli/test_generate_cli.py:243
Methodtest_description_is_summary_only
(self)
tests/utilities/test_docstring_parsing.py:415
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:595
Methodtest_description_with_quotes
(self)
tests/cli/test_generate_cli.py:255
Functiontest_detailed_schema_enum_union_rules
()
tests/experimental/transforms/test_code_mode.py:1287
Functiontest_detailed_schema_includes_single_value_literals
()
tests/experimental/transforms/test_code_mode.py:1307
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:68
Methodtest_detect_standard_fastmcp_json
Test detection of standard fastmcp.json file.
tests/cli/test_mcp_server_config_integration.py:59
Methodtest_detect_test_fastmcp_json
Test detection of test_fastmcp.json file.
tests/cli/test_mcp_server_config_integration.py:76
Methodtest_detects_plain_parameter
(self)
tests/server/test_sessions.py:232
Methodtest_deterministic_hash
(self)
tests/utilities/json_schema_type/test_advanced.py:881
Methodtest_dev_inspector_command_parsing
Test that dev inspector command can be parsed with various options.
tests/cli/test_cli.py:110
Methodtest_dev_inspector_command_parsing_with_new_options
Test dev inspector command parsing with new uv options.
tests/cli/test_cli.py:135
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:218
Methodtest_dict_config
(self)
tests/cli/test_discovery.py:853
Methodtest_dict_only_accepts_any_data
Test that pure dict accepts arbitrary key-value pairs
tests/utilities/json_schema_type/test_advanced.py:1245
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:1239
Methodtest_dict_passthrough
(self)
tests/cli/test_generate_cli.py:139
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:296
Methodtest_dictionary_defaults_are_kept_as_field_data
(self)
tests/utilities/json_schema_type/test_generated_classes.py:384
← previousnext →8,901–9,000 of 15,974, ranked by callers