MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

Methodtest_fastmcp_works_with_abstract_types
Test that abstract types work end-to-end with a client.
tests/server/test_server.py:265
Methodtest_fetch_304_without_cache_headers_preserves_policy
304 responses without cache headers should not reset cached policy.
tests/server/auth/test_cimd.py:464
Methodtest_fetch_304_without_cache_headers_refreshes_cached_freshness
A header-less 304 should renew freshness using cached lifetime.
tests/server/auth/test_cimd.py:505
Methodtest_fetch_cache_control_max_age
Cache-Control max-age should prevent refetch before expiry.
tests/server/auth/test_cimd.py:308
Methodtest_fetch_cache_control_no_cache
Cache-Control no-cache should force revalidation on each fetch.
tests/server/auth/test_cimd.py:427
Methodtest_fetch_cache_control_no_store
Cache-Control no-store should prevent storing CIMD documents.
tests/server/auth/test_cimd.py:401
Methodtest_fetch_cache_evicts_oldest_document
Distinct client URLs cannot grow the document cache without bound.
tests/server/auth/test_cimd.py:283
Methodtest_fetch_client_id_mismatch
Test that client_id mismatch is rejected.
tests/server/auth/test_cimd.py:545
Methodtest_fetch_error
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:188
Methodtest_fetch_etag_revalidation_304
Expired cache should revalidate with ETag and accept 304.
tests/server/auth/test_cimd.py:330
Methodtest_fetch_http_error
Test handling of HTTP errors.
tests/server/auth/test_cimd.py:564
Methodtest_fetch_invalid_document
Test handling of invalid CIMD document.
tests/server/auth/test_cimd.py:585
Methodtest_fetch_invalid_json
Test handling of invalid JSON response.
tests/server/auth/test_cimd.py:573
Methodtest_fetch_invalid_response
Invalid response returns None.
tests/utilities/test_version_check.py:139
Methodtest_fetch_invalid_url
Invalid URL errors during client setup return None (#5638).
tests/utilities/test_version_check.py:134
Methodtest_fetch_last_modified_revalidation_304
Expired cache should revalidate with Last-Modified and accept 304.
tests/server/auth/test_cimd.py:367
Methodtest_fetch_network_error
Network error returns None.
tests/utilities/test_version_check.py:128
Methodtest_fetch_prereleases
Fetching with prereleases returns highest version.
tests/utilities/test_version_check.py:148
Methodtest_fetch_prereleases_stable_is_highest
Prerelease mode still returns stable if it's highest.
tests/utilities/test_version_check.py:165
Methodtest_fetch_preserves_request_headers_but_drops_host
Caller headers pass through, but a caller-supplied Host is dropped.
tests/server/auth/test_ssrf_protection.py:798
Methodtest_fetch_refuses_end_to_end_when_no_proxy_configured
The refusal surfaces through ssrf_safe_fetch: no client is ever built. The whole point of the hard failure is that the *fetch* cannot proceed
tests/server/auth/test_ssrf_protection.py:690
Methodtest_fetch_size_limit_preserved
Proxy mode still enforces the response size limit during streaming.
tests/server/auth/test_ssrf_protection.py:818
Methodtest_fetch_status_check_preserved
Proxy mode still rejects non-allowed status codes.
tests/server/auth/test_ssrf_protection.py:831
Methodtest_fetch_success
Successful fetch returns highest stable version.
tests/utilities/test_version_check.py:112
Methodtest_fetch_success
Test successful CIMD document fetch.
tests/server/auth/test_cimd.py:240
Methodtest_fetch_ttl_cache
Test that fetched documents are cached and served from cache within TTL.
tests/server/auth/test_cimd.py:263
Methodtest_fetches_if_cache_stale
Fetches from PyPI if cache is stale.
tests/utilities/test_version_check.py:203
Methodtest_field_alias_for_path_parameter
(self)
tests/resources/test_resource_template.py:1373
Methodtest_field_alias_for_query_parameter
(self)
tests/resources/test_resource_template.py:1386
Methodtest_field_defaults_with_type_conversion
Test Field() defaults work with type conversion for non-string types.
tests/prompts/test_prompt.py:1088
Methodtest_field_description_takes_precedence
(self)
tests/utilities/test_docstring_parsing.py:476
Methodtest_field_metadata_on_none_default_parameter
Annotated metadata stays on the property itself, not a nested branch. Python 3.10's `get_type_hints` wraps `None`-defaulted hints in
tests/tools/tool/test_tool.py:276
Methodtest_field_prompt_is_printed_verbatim
( self, field_name: str, field_type: str, capsys: pytest.CaptureFixture[str] )
tests/cli/test_client_commands.py:1198
Methodtest_field_with_default
Test that Field(default=...) correctly provides default values in resource templates.
tests/resources/test_resource_template_query_params.py:430
Methodtest_field_with_default
Test that Field(default=...) correctly provides default values.
tests/prompts/test_prompt.py:1026
Methodtest_field_with_default_accepts_explicit_value
Test that fields with defaults accept explicit values.
tests/utilities/json_schema_type/test_advanced.py:1570
Methodtest_field_with_default_not_nullable
Test that fields with defaults are not made nullable.
tests/utilities/json_schema_type/test_advanced.py:1545
Methodtest_field_with_default_preserves_type
Test that fields with defaults preserve their original type.
tests/utilities/json_schema_type/test_advanced.py:1533
Methodtest_field_with_default_uses_default
Test that fields with defaults use their default values.
tests/utilities/json_schema_type/test_advanced.py:1558
Methodtest_file
(self, tmp_path: Path)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:149
Methodtest_file_initialization_with_data
Test initialization with data and format.
tests/utilities/test_types.py:466
Methodtest_file_initialization_with_format
Test file initialization with a specific format.
tests/utilities/test_types.py:476
Methodtest_file_initialization_with_name
Test file initialization with a custom name.
tests/utilities/test_types.py:506
Methodtest_file_initialization_with_path
Test file initialization with a path.
tests/utilities/test_types.py:440
Methodtest_file_is_executable
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:661
Methodtest_file_path
(self)
tests/cli/test_client_commands.py:543
Methodtest_file_path_expansion_with_env_var
Test that environment variables are expanded.
tests/utilities/test_types.py:455
Methodtest_file_path_expansion_with_tilde
Test that ~ is expanded to the user's home directory.
tests/utilities/test_types.py:448
Methodtest_file_ref_not_fetched
(self)
tests/utilities/test_json_schema.py:1400
Methodtest_file_resource_creation
Test creating a FileResource.
tests/resources/test_file_resources.py:33
Methodtest_file_resource_read_allows_nested_path
(self, skill_with_secret: Path)
tests/server/providers/test_skills_provider.py:1118
Methodtest_file_resource_read_rejects_escape
( self, skill_with_secret: Path, attack: str )
tests/server/providers/test_skills_provider.py:1090
Methodtest_file_resource_str_path_conversion
Test FileResource handles string paths.
tests/resources/test_file_resources.py:48
Functiontest_file_served_by_another_provider_hides_skill
()
tests/server/providers/proxy/test_skills.py:351
Functiontest_files_behind_a_backend_template_are_checked_without_reads
()
tests/server/providers/proxy/test_skills.py:84
Methodtest_files_have_size_and_hash
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:207
Methodtest_filesystem_provider_forwards_timeout
Filesystem discovery forwards `timeout` from ToolMeta. Previously dropped, which let sync tools discovered via the filesystem bypass
tests/tools/test_tool_run_in_thread.py:251
Methodtest_filesystem_provider_respects_run_in_thread
Tools discovered by FileSystemProvider honor run_in_thread=False. FileSystemProvider extends LocalProvider and registers filesystem-
tests/tools/test_tool_run_in_thread.py:226
Methodtest_filesystem_source_entrypoint
Test FileSystemSource entrypoint format.
tests/cli/test_config.py:39
Methodtest_filesystem_source_prepare_by_default
Test that FileSystemSource is prepared when using direct file spec.
tests/cli/test_run.py:772
Methodtest_filesystem_source_skip_prepare_with_flag
Test that FileSystemSource.prepare() is skipped with skip_source flag.
tests/cli/test_run.py:801
Functiontest_filtered_attributes_are_not_restored
Regression: a sampler that intentionally supplies only its own attributes (e.g. to strip component names or resource URIs for privacy or cardi
tests/telemetry/test_span_attributes.py:373
Methodtest_filtering_pattern
Common pattern: filter list with is_enabled.
tests/server/transforms/test_visibility.py:169
Methodtest_filters_non_skill_resources
(self)
tests/utilities/test_skills.py:164
Functiontest_final_answer_keeps_task_parked_until_next_leg_is_durable
The last answer must not retire its outstanding marker early. Outstanding requests are what make a completed-but-parked leg read as `input_re
tests/tasks/server/test_guard_reentrant.py:388
Functiontest_find_available_port_returns_bindable_loopback_port
()
tests/utilities/test_http.py:8
Methodtest_find_config_in_current_dir
Test finding config in current directory.
tests/cli/test_config.py:401
Methodtest_find_config_in_specified_dir
Test finding config in the specified directory.
tests/cli/test_config.py:426
Methodtest_find_config_not_found
Test when config is not found.
tests/cli/test_config.py:435
Methodtest_find_config_not_in_parent_dir
Test that config is NOT found in parent directory.
tests/cli/test_config.py:414
Methodtest_finds_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:216
Methodtest_finds_config
(self, tmp_path: Path)
tests/cli/test_discovery.py:473
Methodtest_finds_config_in_cwd
(self, tmp_path: Path)
tests/cli/test_discovery.py:435
Methodtest_finds_config_in_parent
(self, tmp_path: Path)
tests/cli/test_discovery.py:442
Methodtest_finds_stdio_extensions
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:646
Functiontest_finished_ci_on_a_pr_is_a_checks_event
(receiver)
tests/test_floor_receiver.py:203
Methodtest_finite_structured_content_round_trips
(self)
tests/tools/tool/test_nonfinite_serialization.py:90
Methodtest_finite_values_pass_through
(self)
tests/tools/tool/test_nonfinite_serialization.py:137
Functiontest_first_delay_is_the_floor
()
tests/tasks/client/test_poll_interval.py:58
Methodtest_first_page_no_cursor
First page should start from beginning.
tests/server/test_pagination.py:75
Functiontest_first_poll_starts_from_now
()
tests/events/test_extension.py:139
Functiontest_first_root_wins
(tmp_path: Path)
tests/skills/test_directory_provider.py:100
Methodtest_first_server_wins_prompts_no_prefix
Test that first mounted server wins for prompts when no prefix is used.
tests/server/mount/test_mount.py:570
Methodtest_first_server_wins_prompts_same_prefix
Test that first mounted server wins for prompts when same prefix is used.
tests/server/mount/test_mount.py:599
Methodtest_first_server_wins_resource_templates_no_prefix
Test that first mounted server wins for resource templates when no prefix is used.
tests/server/mount/test_mount.py:516
Methodtest_first_server_wins_resource_templates_same_prefix
Test that first mounted server wins for resource templates when same prefix is used.
tests/server/mount/test_mount.py:543
Methodtest_first_server_wins_resources_no_prefix
Test that first mounted server wins for resources when no prefix is used.
tests/server/mount/test_mount.py:462
Methodtest_first_server_wins_resources_same_prefix
Test that first mounted server wins for resources when same prefix is used.
tests/server/mount/test_mount.py:489
Methodtest_first_server_wins_tools_no_prefix
Test that first mounted server wins for tools when no prefix is used.
tests/server/mount/test_mount.py:408
Methodtest_first_server_wins_tools_same_prefix
Test that first mounted server wins for tools when same prefix is used.
tests/server/mount/test_mount.py:435
Methodtest_fixed_length_positional_array_hydrates_each_position
( self, fixed_length_positional_array )
tests/utilities/json_schema_type/test_containers.py:420
Methodtest_fixed_length_positional_array_preserves_uniqueness
(self)
tests/utilities/json_schema_type/test_containers.py:450
Methodtest_fixed_length_positional_array_rejects_wrong_length
( self, fixed_length_positional_array )
tests/utilities/json_schema_type/test_containers.py:428
Methodtest_fixed_length_positional_array_rejects_wrong_position_type
( self, fixed_length_positional_array )
tests/utilities/json_schema_type/test_containers.py:435
Methodtest_fixed_length_tuple_result_keeps_positions
(self)
tests/client/test_result_hydration.py:250
Methodtest_flag_defaults_to_false
The trust-proxy flag must be off by default (no silent weakening).
tests/server/auth/test_ssrf_protection.py:641
Methodtest_float_coercion
Test float type coercion for query parameters.
tests/resources/test_resource_template_query_params.py:118
Methodtest_float_count_does_not_poison_a_later_int_count
(self)
tests/utilities/json_schema_type/test_constraints.py:311
Functiontest_flow_counts_moves_between_stages
()
tests/test_triage_floor_feed.py:226
Methodtest_fn_returns_assistant_message
(self)
tests/prompts/test_prompt.py:124
← previousnext →10,801–10,900 of 17,519, ranked by callers