MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

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_dependencies_execute_once_per_generation
( tmp_path: Path, package: bool, monkeypatch: pytest.MonkeyPatch )
tests/fs/test_reload_generations.py:107
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:248
Functiontest_dependency_errors_propagate_to_task_failure
If dependency resolution fails, the background task should fail.
tests/tasks/server/test_task_dependencies.py:279
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:1055
Functiontest_dereference_preserves_validation
(schema, instances)
tests/pbt/test_json_schema.py:277
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:1050
Methodtest_dereferences_nested_refs
Test that nested $refs are dereferenced.
tests/utilities/test_json_schema.py:117
Methodtest_dereferences_simple_ref
Test that simple $ref is dereferenced.
tests/utilities/test_json_schema.py:100
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:1019
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:957
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:1321
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:1315
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:641
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
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:926
Functiontest_different_resource_metadata_stays_distinct
(config)
tests/server/providers/test_prefab_sharing.py:42
Methodtest_different_schemas_different_hashes
(self)
tests/utilities/json_schema_type/test_advanced.py:965
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
Methodtest_different_tokens_different_hashes
(self)
tests/utilities/test_token_cache.py:257
Methodtest_different_tool_names_different_hash
(self)
tests/server/providers/test_addressing.py:31
Methodtest_differing_options_do_not_disturb_a_session_in_use
Tearing down a live session would break the client already on it.
tests/client/client/test_session.py:399
Methodtest_differing_options_rebuild_an_idle_session
(self, monkeypatch)
tests/client/client/test_session.py:389
Methodtest_digit_prefix
(self)
tests/cli/test_generate_cli.py:773
Functiontest_dir
Create a temporary directory with test files.
tests/server/test_file_server.py:12
Methodtest_direct_array_no_title
Test direct array schema without title.
tests/utilities/openapi/test_direct_array_schemas.py:139
Methodtest_direct_array_optional
Test direct array schema that's not required.
tests/utilities/openapi/test_direct_array_schemas.py:196
Methodtest_direct_array_title_sanitization
Test that titles with special characters are sanitized.
tests/utilities/openapi/test_direct_array_schemas.py:222
Methodtest_direct_array_title_starting_with_number
Test that titles starting with numbers are handled.
tests/utilities/openapi/test_direct_array_schemas.py:247
Functiontest_direct_call_owns_temporary_shared_scope
()
tests/server/test_shared_context.py:51
Methodtest_direct_client_still_enforces_the_schema
The behavior change is scoped to proxies, not clients generally.
tests/server/providers/proxy/test_proxy_server.py:1348
Methodtest_direct_lookup
FastMCPApp.get_app_tool finds tools by app name + tool name.
tests/test_fastmcp_app.py:326
Methodtest_direct_multi_server_client_drives_modern_guard_round_trips
The config-based client itself stays modern through every backend leg.
tests/server/test_mrtr_guards.py:638
Methodtest_direct_primitive_schema
Test direct primitive (non-array) request body schema.
tests/utilities/openapi/test_direct_array_schemas.py:169
Functiontest_direct_tool_annotations_in_client_api
Test direct ToolAnnotations object is correctly accessible via client API.
tests/server/test_tool_annotations.py:140
Functiontest_direct_tool_annotations_in_tool_manager
Test direct ToolAnnotations object is correctly stored in tool manager.
tests/server/test_tool_annotations.py:112
Methodtest_directly_referenced_subtype_keeps_only_its_own_fields
A subtype composes the unflattened parent, not its siblings' fields.
tests/server/providers/openapi/test_openapi_discriminator.py:360
Methodtest_director_initialization
Test RequestDirector initialization.
tests/utilities/openapi/test_director.py:156
Functiontest_directory_discovers_skill_folders_linked_from_elsewhere
( tmp_path: Path, )
tests/server/providers/test_skill_main_files.py:119
Methodtest_directory_exits
Directories should not be treated as file paths.
tests/cli/test_client_commands.py:434
Functiontest_directory_keeps_other_skills_when_a_main_file_is_outside
( tmp_path: Path, )
tests/server/providers/test_skill_main_files.py:52
Functiontest_directory_keeps_valid_skills_when_a_link_cannot_resolve
( tmp_path: Path, )
tests/server/providers/test_skill_main_files.py:133
Functiontest_directory_links_within_root_remain_discoverable
(tmp_path: Path)
tests/server/providers/test_skill_main_files.py:106
Methodtest_disable_all
match_all=True disables all components.
tests/server/transforms/test_visibility.py:132
Methodtest_disable_components_is_rejected
(self)
tests/server/test_session_scope.py:87
← previousnext →10,001–10,100 of 17,519, ranked by callers